JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
SQL Server interview questions part 3
SQL Server interview questions part 3
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Backup can occur while the database is in ___________ state.
A. Online
B. Offline
C. Restoring
D. All of the mentioned
Show Correct Answer
Correct Answer is :
Online
2. Which of the following is not a type of backup ?
A. database backup
B. data backup
C. table backup
D. All of the mentioned
Show Correct Answer
Correct Answer is :
table backup
3. _________ backups represent the whole database at the time the backup finished.
A. copy-only backup
B. database backup
C. data backup
D. All of the mentioned
Show Correct Answer
Correct Answer is :
database backup
4. Which of the following backups contain transaction logs ?
A. copy-only backup
B. database backup
C. data backup
D. None of the mentioned
Show Correct Answer
Correct Answer is :
None of the mentioned
5. ____________ contains data from only some of the filegroups in a database.
A. copy-only backup
B. database backup
C. data backup
D. partial
Show Correct Answer
Correct Answer is :
partial
6. Which SQL function is used to count the number of rows in a SQL query ?
A. COUNT()
B. NUMBER()
C. SUM()
D. COUNT(*)
Show Correct Answer
Correct Answer is :
COUNT(*)
7. Which SQL keyword is used to retrieve a maximum value ?
A. MOST
B. TOP
C. MAX
D. UPPER
Show Correct Answer
Correct Answer is :
MAX
8. Which of the following SQL clauses is used to DELETE tuples from a database table ?
A. DELETE
B. REMOVE
C. DROP
D. CLEAR
Show Correct Answer
Correct Answer is :
DELETE
9. ___________removes all rows from a table without logging the individual row deletions.
A. DELETE
B. REMOVE
C. DROP
D. TRUNCATE
Show Correct Answer
Correct Answer is :
TRUNCATE
10. Which of the following is not a DDL command ?
A. UPDATE
B. TRUNCATE
C. ALTER
D. None of the Mentioned
Show Correct Answer
Correct Answer is :
UPDATE
11. Which of the following are TCL commands ?
A. UPDATE and TRUNCATE
B. SELECT and INSERT
C. GRANT and REVOKE
D. ROLLBACK and SAVEPOINT
Show Correct Answer
Correct Answer is :
ROLLBACK and SAVEPOINT
12. ________________ is not a category of SQL command.
A. TCL
B. SCL
C. DCL
D. DDL
Show Correct Answer
Correct Answer is :
SCL
13. If you don’t specify ASC or DESC after a SQL ORDER BY clause, the following is used by default
A. ASC
B. DESC
C. There is no default value
D. None of the mentioned
Show Correct Answer
Correct Answer is :
ASC
14. Which of the following statement is true ?
A. DELETE does not free the space containing the table and TRUNCATE free the space containing the table
B. Both DELETE and TRUNCATE free the space containing the table
C. Both DELETE and TRUNCATE does not free the space containing the table
D. DELETE free the space containing the table and TRUNCATE does not free the space containing the table
Show Correct Answer
Correct Answer is :
DELETE does not free the space containing the table and TRUNCATE free the space containing the table
15. What is the purpose of the SQL AS clause ?
A. The AS SQL clause is used change the name of a column in the result set or to assign a name to a derived column
B. The AS clause is used with the JOIN clause only
C. The AS clause defines a search condition
D. All of the mentioned
Show Correct Answer
Correct Answer is :
The AS SQL clause is used change the name of a column in the result set or to assign a name to a derived column
16. What does DML stand for ?
A. Different Mode Level
B. Data Model Language
C. Data Mode Lane
D. Data Manipulation language
Show Correct Answer
Correct Answer is :
Data Manipulation language
17. With SQL, how do you select all the records from a table named “Persons” where the value of the column “FirstName” ends with an “a” ?
A. SELECT * FROM Persons WHERE FirstName=’a’
B. SELECT * FROM Persons WHERE FirstName LIKE ‘a%’
C. SELECT * FROM Persons WHERE FirstName LIKE ‘%a’
D. SELECT * FROM Persons WHERE FirstName=’%a%’
Show Correct Answer
Correct Answer is :
SELECT * FROM Persons WHERE FirstName LIKE ‘%a’
18. With SQL, how can you return all the records from a table named “Persons” sorted descending by “FirstName” ?
A. SELECT * FROM Persons SORT BY ‘FirstName’ DESC
B. SELECT * FROM Persons ORDER FirstName DESC
C. SELECT * FROM Persons SORT ‘FirstName’ DESC
D. SELECT * FROM Persons ORDER BY FirstName DESC
Show Correct Answer
Correct Answer is :
SELECT * FROM Persons ORDER BY FirstName DESC
19. With SQL, how can you return the number of not null records in the “Persons” table ?
A. SELECT COUNT() FROM Persons
B. SELECT COLUMNS() FROM Persons
C. SELECT COLUMNS(*) FROM Persons
D. SELECT COUNT(*) FROM Persons
Show Correct Answer
Correct Answer is :
SELECT COUNT() FROM Persons
20. What does the ALTER TABLE clause do ?
A. The SQL ALTER TABLE clause modifies a table definition by altering, adding, or deleting table columns and/or constraints
B. The SQL ALTER TABLE clause is used to insert data into database table
C. THE SQL ALTER TABLE deletes data from database table
D. The SQL ALTER TABLE clause is used to delete a database table
Show Correct Answer
Correct Answer is :
The SQL ALTER TABLE clause modifies a table definition by altering, adding, or deleting table columns and/or constraints
Similar Interview Questions
Search for latest jobs
Find Jobs