100% found this document useful (1 vote)
114 views

SQL MCQ

The document discusses different SQL concepts: 1) The best datatype to store true/false values in SQL is Bit, as it provides minimum storage. 2) The Like operator is used for character string comparisons with pattern matching. 3) The Truncate operator removes all rows from a table without logging individual deletions.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
114 views

SQL MCQ

The document discusses different SQL concepts: 1) The best datatype to store true/false values in SQL is Bit, as it provides minimum storage. 2) The Like operator is used for character string comparisons with pattern matching. 3) The Truncate operator removes all rows from a table without logging individual deletions.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

c  If I want to store true or fase(yes/no) in SQL fetching values from my frontend which datatype should I use at the

best level in terms of minimum storage?


A) Int
B) Char
C) Bit
D) Varchar

 c) Bit

c which operator is used in character string comparisons with pattern matching?

A) Like
B) Between.. And
C) Equal operator
D) Set operator
E)
 A ± Like

c_______ removes all rows from a table without logging the individual row deletions.

A) drop
B) delete
C) Truncate
D) Alter
E) Update
C ± Truncate

cAn attribute or attributes that uniquely identify each row in a relation is called a(n)

A) field pointer
B) column.
C) primary key.
D) foreign key
 C ± Primary Key

c A foreign key is a field (or fields) that points to the primary key of another table.

A) True
B) False

A ± True

You might also like