Question will ask you to make an SQL statement using commands SELECT, FROM, WHERE and ORDERBY with others.
SELECT is used at the begining of the SQL statement to declare which fields are going to be used. Each one must be written as: table.fieldname
FROM is used after SELECT to state which table the fields come from.
WHERE is used after FROM to state the conditions of the command:
e.g. table1.field1 > table2.field6.
If there is a forgein field this is also declared in the WHERE statement:
e.g. table1.fieldID = table2.fieldID.
ORDERBY is used at the end of the statement to order the results.
e.g. ORDERBY fielsID (ASC/DESC)
Comments
No comments have yet been made