Questions
What does SQL stand for?
- Strong Question Language
- Structured Question Language
- Structured Query Language
Which SQL statement is used to extract data from a database?
- GET
- OPEN
- EXTRACT
- SELECT
- QUERY
Which SQL statement is used to update data in a database?
- UPDATE
- SAVE AS
- MODIFY
- SAVE
Which SQL statement is used to delete data from a database?
- TRUNCATE
- DELETE
- REMOVE
Which SQL statement is used to insert new data in a database?
- ADD RECORD
- ADD INTO
- INSERT
- ADD NEW
With SQL, how do you select a column named "FirstName" from a table named "Persons"?
- EXTRACT FirstName FROM Persons
- SELECT FirstName FROM Persons
- SELECT Persons.FirstName
With SQL, how do you select all the columns from a table named "Persons"?
- SELECT [all] FROM Persons
- SELECT All Persons
- SELECT *.Persons
- SELECT * FROM Persons
With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" is "Peter"?
- SELECT [all] FROM Persons WHERE FirstName='Peter'
- SELECT * FROM Persons WHERE FirstName LIKE 'Peter'
- SELECT [all] FROM Persons WHERE FirstName LIKE 'Peter'
- SELECT * FROM Persons WHERE FirstName='Peter'
With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" starts with an "a"?
- SELECT * FROM Persons WHERE FirstName='%a%'
- SELECT * FROM Persons WHERE FirstName LIKE '%a'
- SELECT * FROM Persons WHERE FirstName='a'
- SELECT * FROM Persons WHERE FirstName LIKE 'a%'
- SELECT * FROM Persons WHERE FirstName='a'"
The OR operator displays a record if ANY conditions listed are true. The AND operator displays a record if ALL of the conditions listed are true
- True
- False
Given an employees table as follows: empid name managerid a1 bob NULL b1 jim a1 B2 tom a1 What value will select count(*) from employees return?
- 1
- 2
- 3
- none of the above
The result of a SELECT statement can contain duplicate rows.
- True
- False
Sometimes the expression "select count(*)" will return fewer rows than the expression "select count(value)".
- True
- False
What type of lock will deny users any access to a table?
- EXPLICIT
- IMPLICIT
- EXCLUSIVE
- SHARED
- READ ONLY
Which of the following is the correct SQL statement to use to remove rows from a table?
- DROP
- REMOVE ROW
- DELETE
- DELETE ROW
The only way to join two tables is by using standard, ANSI syntax.
- True
- False
A NULL value is treated as a blank or 0.
- True
- False
The left outer join is one type of outer join. Another one is the.
- right
- full
- right outer
- full outer
- all of the above