Quote:
1) Name the required parts for any SELECT statement.
2) In the WHERE clause, are single quotation marks required for all the data?
3) Under what part of the SQL Language does the SELECT statment (database query) fall?
4) Can multiple conditions be used in the WHERE clause?
Look over the following SELECT statements. Determine whether the syntax is correct. If the syntax is incorrect, what would correct it? A table called employee_tbl is used here:
a. SELECT employee_id, last_name, first_name,
FROM EMPLOYEE_TBL;
b. SELECT EMPLOYEE_ID, LAST_NAME
ORDER BY EMPLOYEE_TBL
FROM EMPLOYEE_TBL;
c. SELECT EMPLOYEE_ID, LAST_NAME, FIRST_NAME
FROM EMPLOYEE_TBL
WHERE EMPLOYEE_ID = '333333333'
ORDER BY EMPLOYEE_ID;
d. SELECT EMPLOYEE_ID, LAST_NAME, FIRST_NAME
FROM EMPLOYEE_TBL
WHERE EMPLOYEE_ID = '333333333'
ORDER BY 3, 1, 2;