DBA MCQs SecondSet
DBA MCQs SecondSet
2
Q1. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q2. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q4. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q6. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q7. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Q9. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q11. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q12. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q14. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q15. What is a clustered index?
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q16. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q17. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q19. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q21. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q22. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q24. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q26. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q27. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q29. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q31. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q32. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Q34. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q36. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q37. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q39. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q40. What is a clustered index?
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q41. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q42. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q44. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q46. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q47. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q49. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q51. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q52. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q54. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q56. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q57. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Q59. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q61. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q62. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q64. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q65. What is a clustered index?
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q66. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q67. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q69. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q71. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q72. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q74. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q76. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q77. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q79. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q81. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q82. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Q84. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q86. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q87. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q89. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q90. What is a clustered index?
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q91. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q92. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q94. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q96. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q97. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q99. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q101. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q102. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q104. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q106. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q107. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Q109. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q111. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q112. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q114. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q115. What is a clustered index?
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q116. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q117. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q119. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q121. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q122. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q124. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q126. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q127. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q129. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q131. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q132. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Q134. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q136. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q137. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q139. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q140. What is a clustered index?
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q141. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q142. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q144. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q146. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q147. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q149. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q151. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q152. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q154. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q156. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q157. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Q159. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q161. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q162. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q164. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q165. What is a clustered index?
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q166. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q167. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q169. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q171. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q172. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q174. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q176. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q177. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q179. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q181. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q182. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Q184. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q186. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q187. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q189. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q190. What is a clustered index?
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q191. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q192. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q194. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q196. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q197. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q199. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q201. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q202. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q204. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q206. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q207. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Q209. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q211. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q212. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q214. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q215. What is a clustered index?
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q216. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q217. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q219. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q221. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q222. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q224. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q226. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q227. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q229. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q231. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q232. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Q234. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q236. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q237. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q239. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q240. What is a clustered index?
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q241. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q242. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q244. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q246. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q247. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q249. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q251. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q252. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q254. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q256. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q257. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Q259. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q261. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q262. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q264. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q265. What is a clustered index?
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q266. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q267. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q269. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q271. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q272. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q274. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q276. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q277. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q279. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q281. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q282. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Q284. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q286. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q287. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q289. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q290. What is a clustered index?
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q291. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q292. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q294. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q296. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q297. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q299. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q301. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q302. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q304. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q306. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q307. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Q309. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q311. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q312. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q314. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q315. What is a clustered index?
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q316. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q317. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q319. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q321. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q322. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q324. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q326. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q327. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q329. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q331. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q332. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Q334. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q336. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q337. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q339. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q340. What is a clustered index?
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q341. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q342. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q344. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q346. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q347. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q349. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q351. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q352. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q354. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q356. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q357. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Q359. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q361. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q362. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q364. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q365. What is a clustered index?
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q366. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q367. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q369. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q371. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q372. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q374. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q376. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q377. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q379. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q381. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q382. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Q384. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q386. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q387. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q389. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q390. What is a clustered index?
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q391. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q392. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q394. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q396. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q397. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q399. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q401. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q402. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q404. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q406. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q407. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Q409. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q411. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q412. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q414. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q415. What is a clustered index?
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q416. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q417. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q419. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q421. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q422. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q424. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q426. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q427. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q429. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q431. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q432. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Q434. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q436. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q437. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q439. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q440. What is a clustered index?
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q441. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q442. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q444. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q446. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q447. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q449. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q451. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q452. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q454. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q456. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q457. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Q459. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q461. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q462. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q464. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q465. What is a clustered index?
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q466. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q467. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q469. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q471. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q472. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q474. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q476. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q477. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q479. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q481. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q482. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Q484. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q486. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q487. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q489. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Q490. What is a clustered index?
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q491. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q492. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q494. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.
Explanation: In clustered indexes, table rows are stored in the order of the index key values,
improving retrieval.
Q496. Which SQL keyword is used to combine the result of two SELECT statements and
remove duplicates?
a) UNION ALL
b) INTERSECT
c) UNION
d) JOIN
Answer: c) UNION
Explanation: UNION combines results from multiple SELECT queries and removes duplicate
rows, unlike UNION ALL.
Q497. Which of the following is used to ensure that values in a column are unique across
rows?
a) PRIMARY KEY
b) FOREIGN KEY
c) UNIQUE constraint
d) CHECK constraint
Explanation: The UNIQUE constraint ensures all values in a column are different, but unlike
PRIMARY KEY, it allows one NULL.
Q499. Which of the following indexing methods is commonly used in relational databases?
a) Hash Index
b) B-tree Index
c) Bitmap Index
d) All of the above
Explanation: Databases use B-tree, Hash, and Bitmap indexes depending on query type and
workload.