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. Hash (#)
B. Percentage sign (%)
C. Ampersand (&)
D. Underscore (_)
Answer: Option B
Solution (By JKExamLibrary)
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.

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

Discuss this Question (0)

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

Practice More Database Management System (DBMS) Questions

Question #1 Report Error
Which type of JOIN combines all rows from the left table and all rows from the right table, filling in NULLs wherever a match is missing on either side?
A. Natural Join
B. Inner Join
C. Cross Join
D. Full Outer Join

Correct Answer: Option D


Explanation:
A Full Outer Join combines the behavior of both Left and Right Outer Joins, returning all rows from both tables and applying NULL values where matches do not exist.

This question belongs to: Computer Database Management System (DBMS)
Question #2 Report Error
To be in Second Normal Form (2NF), a relation must already satisfy First Normal Form (1NF) and must completely eliminate what type of dependency?
A. Multivalued Dependency
B. Partial Dependency
C. Transitive Dependency
D. Functional Dependency

Correct Answer: Option B


Explanation:
Second Normal Form (2NF) requires that the table is in 1NF and that no non-prime attribute is partially dependent on any candidate key (meaning no partial dependency exists).

This question belongs to: Computer Database Management System (DBMS)
Question #3 Report Error
What is the purpose of the SQL 'DEFAULT' constraint?
A. To set a foreign key
B. To enforce uniqueness
C. To provide a default value for a column when no value is supplied
D. To define a primary key

Correct Answer: Option C


Explanation:
DEFAULT assigns a default value to a column if an INSERT statement does not specify a value.

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