Professional Documents
Culture Documents
DB Revision
DB Revision
3. In which of the following formats data is stored in the database management system?
a) Image
b) Text
c) Table
d) Graph
4. Which of the following is not an example of DBMS?
a) MySQL
b) Microsoft Access
c) IBM DB2
d) Google
9. 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
10. With SQL, how do you select all the records from a table named "Persons" where the "FirstName" is "Peter" and
the "LastName" is "Jackson"?
SELECT * FROM Persons WHERE FirstName='Peter' AND LastName='Jackson'
SELECT FirstName='Peter', LastName='Jackson' FROM Persons
SELECT * FROM Persons WHERE FirstName<>'Peter' AND LastName<>'Jackson'
11. Which SQL keyword is used to sort the result set?
SORT BY
ORDER
ORDER BY
SORT
13. With SQL, how can you return the number of records in the "Persons" table?
SELECT COUNT(*) FROM Persons
SELECT NO(*) FROM Persons
SELECT LEN(*) FROM Persons
SELECT COLUMNS(*) FROM Persons
14. With SQL, how do you select a column named "FirstName" from a table named "Persons"?
SELECT FirstName FROM Persons
SELECT * FROM Persons
SELECT Persons. FirstName
Extract FirstName FROM Persons
19. We can have more than one primary key in a table
TRUE
FALSE