DBMS-Microsoft SQL Server Questions and Answers
Practice ModeShowing 10 of 49 questions
Q41
Which function combines two or more strings into one?
Answer: Option D
Explanation: CONCAT() function joins two or more string values together.
Q42
Which transaction control language command saves transactions?
Answer: Option B
Explanation: COMMIT permanently saves all transactions to the database.
Q43
Which constraint uniquely identifies each record in a table?
Answer: Option B
Explanation: PRIMARY KEY constraint uniquely identifies each record in a table.
Q44
Which clause groups rows that have the same values?
Answer: Option A
Explanation: GROUP BY clause groups rows that have same values into summary rows.
Q45
Which function returns the current date and time?
Answer: Option C
Explanation: GETDATE() returns current database system timestamp in SQL Server.
Q46
Which statement is used to remove privileges from a user?
Answer: Option C
Explanation: REVOKE statement removes previously granted privileges from users.
Q47
Which type of index reorders the physical storage of data?
Answer: Option B
Explanation: Clustered index determines the physical order of data in a table.
Q48
Which operator returns TRUE if all subquery values meet the condition?
Answer: Option C
Explanation: ALL operator returns TRUE if all values in subquery meet the condition.
Q49
Which statement is used to create a stored procedure?
Answer: Option B
Explanation: CREATE PROCEDURE statement creates a stored procedure in database.