Which wildcard character is used with the SQL LIKE operator to represent zero, one, or multiple characters? MCQ with Answer and Explanation

Which wildcard character is used with the SQL LIKE operator to represent zero, one, or multiple characters?
A. Underscore (_)
B. Hash (#)
C. Percentage sign (%)
D. Ampersand (&)
Answer: Option C
Solution (By JKSSB Mock Tests)
The percentage sign (%) is used as a wildcard character to match any sequence of zero or more characters in an SQL LIKE string comparison query.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Database Management System (DBMS) Questions

Question #1
Which type of join returns all rows from the left table and matching rows from the right table?
A. INNER JOIN
B. RIGHT JOIN
C. FULL JOIN
D. LEFT JOIN

Correct Answer: Option D


Explanation:
LEFT JOIN (or LEFT OUTER JOIN) returns all rows from the left table, with matching rows from the right table; NULLs appear when no match.

This question belongs to: Computer Database Management System (DBMS)
Question #2
Which of the following is a property of a transaction that ensures that the database remains in a valid state before and after the transaction?
A. Atomicity
B. Isolation
C. Durability
D. Consistency

Correct Answer: Option D


Explanation:
Consistency ensures that a transaction brings the database from one valid state to another, maintaining all defined rules and constraints.

This question belongs to: Computer Database Management System (DBMS)
Question #3
Which of the following is true about a surrogate key?
A. It is a foreign key
B. It is an artificial key, usually an auto-increment integer, with no business meaning
C. It is a composite key
D. It is a natural key derived from the data

Correct Answer: Option B


Explanation:
A surrogate key is a system-generated unique identifier, typically numeric, that has no business significance.

This question belongs to: Computer Database Management System (DBMS)