A database stores data in an organised way so that it can be searched quickly. In a single-table database, each row is a record, such as one student, and each column is a field, such as a name or a date of birth. Each field has a data type, and the primary key is a field that is unique for every record. SQL is the language used to ask questions of a database. A query such as SELECT name FROM students WHERE age > 15; picks out the records you need. ORDER BY sorts them, and SUM and COUNT give totals.
SELECT Runner FROM Race ________ Seconds ASC;?Seconds < 60. SORT is not an SQL keyword in this syllabus. FROM names a table and has already been used.Log in to join the discussion.
Loading…