Professional Documents
Culture Documents
True, it use commands to use SQL queries to access the database. So,
technically, commands does access the database, albeit indirectly.
2. The following SELECT statement executes successfully:
SELECT *FROM
job_grades;
True/False
False ; table is not found
4. There are four coding errors in the following statement. Can you identify them?
SELECT column1, column2, ...
FROM table_name
WHERE condition;
SELECT column_name(s)
FROM table_name
WHERE column_name BETWEEN va
lue1 AND value2;
In Condition = Allows to specify multiple values in a WHERE clause.
SELECT column_name(s)
FROM table_name
WHERE column_name IN (SELECT
STATEMENT);
Like Condition = Used in a WHERE clause to search for a specific pattern
SELECT column1,
column2, ...
FROM table_name
WHERE column LIKE pattern;
Logical Condition = Conditions that can be combined in a WHERE clause
(AND, OR, NOT conditions).
SELECT column1, column2, ...
FROM table_name
WHERE condition1 AND conditi
on2 AND condition3 ...;
SELECT column1, column2, ...
FROM table_name
WHERE condition1 OR conditio
n2 OR condition3 ...;
SELECT column1, column2, .
..
FROM table_name
WHERE NOT condition;
DESCRIBE table_name;