DBMS-Microsoft SQL Server Questions and Answers
Practice ModeShowing 10 of 49 questions
Q21
Which operator is used to search for a specified pattern in a column?
Answer: Option D
Explanation: LIKE operator searches for specified patterns using wildcards.
Q22
Which statement is used to remove a table from database?
Answer: Option C
Explanation: DROP TABLE statement completely removes a table from the database.
Q23
Which clause is used to group rows that have same values?
Answer: Option C
Explanation: GROUP BY groups rows that have same values into summary rows.
Q24
Which function returns the current date and time?
Answer: Option C
Explanation: GETDATE() returns current date and time in SQL Server.
Q25
Which constraint uniquely identifies each record in a table?
Answer: Option B
Explanation: PRIMARY KEY uniquely identifies each record in a table.
Q26
Which keyword is used to change the structure of a table?
Answer: Option C
Explanation: ALTER TABLE modifies the structure of an existing table.
Q27
Which wildcard character represents zero or more characters?
Answer: Option C
Explanation: Percent sign (%) represents zero or more characters in pattern matching.
Q28
Which function converts a value to uppercase?
Answer: Option B
Explanation: UPPER() function converts string to uppercase.
Q29
Which join returns all records from both tables?
Answer: Option D
Explanation: FULL JOIN returns all records when there is a match in either left or right table.
Q30
Which SQL statement is used to retrieve data from a database?
Answer: Option B
Explanation: SELECT statement is used to query and retrieve data from database tables.