Which SQL keyword is used within a SELECT query to filter records matching a specified pattern using wildcards? MCQ with Answer and Explanation

Which SQL keyword is used within a SELECT query to filter records matching a specified pattern using wildcards?
A. LIKE
B. IN
C. BETWEEN
D. EXISTS
Answer: Option A
Solution (By JKSSB Mock Tests)
The LIKE operator is specifically used in a WHERE clause to perform pattern matching on string columns using wildcards (% and _).

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1
Which normal form addresses partial dependencies, i.e., non-prime attributes dependent on part of a composite primary key?
A. 2NF
B. 3NF
C. BCNF
D. 1NF

Correct Answer: Option A


Explanation:
Second Normal Form (2NF) eliminates partial dependencies by ensuring all non-key attributes are fully functionally dependent on the entire primary key.

This question belongs to: Computer Database Management System (DBMS)
Question #2
In SQL, which statement is used to change a user's password?
A. MODIFY USER
B. CHANGE USER
C. UPDATE USER
D. ALTER USER

Correct Answer: Option D


Explanation:
ALTER USER is used in many DBMS to change user attributes, including password. The exact syntax varies by DBMS.

This question belongs to: Computer Database Management System (DBMS)
Question #3
Which SQL command is used to reverse or undo all modifications made during the current transaction that have not yet been committed?
A. SAVEPOINT
B. ROLLBACK
C. REVERT
D. UNDO

Correct Answer: Option B


Explanation:
The ROLLBACK command is a TCL statement used to undo transactions, restoring the database to its last committed or safe state.

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