You are on page 1of 5

7/7/23, 6:48 PM SQL MCQ Questions and answers Page-8 section-1

(https://www.examveda.com/)  Login
(https://www.exam
url=https%3A%2F%
mcq-question-
on-sql-
miscellaneous%2F

Home (https://www.examveda.com/) Aptitude (https://www.examveda.com/mcq-question-on-arithmetic-ability/)

English (https://www.examveda.com/mcq-question-on-competitive-english/)

Reasoning (https://www.examveda.com/mcq-question-on-competitive-reasoning/) DI (https://www.examveda.com/mcq-question-on-data-interpretation/)

GK (https://www.examveda.com/mcq-question-on-general-knowledge/) Current Affairs (https://www.examveda.com/daily-current-affairs/)

Interview (https://www.examveda.com/interview/) Computer  Programming  Engineering  Subject 

Ask Question (https://www.examveda.com/ask-question/)

SQL MCQ Questions and answers


Home (https://www.examveda.com/) / SQL (https://www.examveda.com/mcq-question-on-sql/) / Sql Miscellaneous

71. Which of the following SQL query is correct for selecting the name of staffs from 'staffinfo' table where
salary is 10,000 or 25,000?

A. SELECT name FROM staffinfo WHERE salary BETWEEN 10000 AND 25000;

B. SELECT name FROM staffinfo WHERE salary IN (10000, 25000);

C. Both A and B

D. None of the above

Answer & Solution Discuss in Board (https://www.examveda.com/which-of-the-following-sql-query-is-correct-sql-aptitude-questions-70-6155/) Save for Later

Answer & Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board (https://www.examveda.com/which-of-the-following-sql-query-is-
correct-sql-aptitude-questions-70-6155/)

72. Select the right statement to insert values to the student table.

A. INSERT student VALUES (

B. INSERT VALUES (

C. INSERT INTO student VALUES (

D. INSERT VALUES INTO student (

Answer & Solution Discuss in Board (https://www.examveda.com/select-the-right-statement-to-insert-values-to-the-student-table-sql-aptitude-questions-71-6156/) Save for Later

https://www.examveda.com/sql/practice-mcq-question-on-sql-miscellaneous/?page=8 1/5
7/7/23, 6:48 PM SQL MCQ Questions and answers Page-8 section-1

Answer & Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board (https://www.examveda.com/select-the-right-statement-to-insert-
values-to-the-student-table-sql-aptitude-questions-71-6156/)

73. ............. joins two or more tables based on a specified column value not equaling a specified column value
in another table.

A. EQUIJOIN

B. NON-EQUIJOIN

C. OUTER JOIN

D. NATURAL JOIN

Answer & Solution

Discuss in Board (https://www.examveda.com/joins-two-or-more-tables-based-on-a-specified-column-value-not-equaling-a-specified-column-value-in-another-table-sql-aptitude-questions-72-


6157/)

Save for Later

Answer & Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board (https://www.examveda.com/joins-two-or-more-tables-based-on-a-
specified-column-value-not-equaling-a-specified-column-value-in-another-table-sql-aptitude-questions-72-6157/)

74. In SQL, which command is used to change a table's storage characteristics?

A. ALTER TABLE

B. MODIFY TABLE

C. CHANGE TABLE

D. None of these

Answer & Solution Discuss in Board (https://www.examveda.com/in-sql-which-command-is-used-to-change-a-tables-storage-characteristics-sql-aptitude-questions-73-6158/)

Save for Later

Answer & Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board (https://www.examveda.com/in-sql-which-command-is-used-to-
change-a-tables-storage-characteristics-sql-aptitude-questions-73-6158/)

https://www.examveda.com/sql/practice-mcq-question-on-sql-miscellaneous/?page=8 2/5
7/7/23, 6:48 PM SQL MCQ Questions and answers Page-8 section-1

75. In SQL, which of the following is not a data definition language commands?

A. REVOKE

B. RENAME

C. UPDATE

D. GRANT

Answer & Solution Discuss in Board (https://www.examveda.com/in-sql-which-of-the-following-is-not-a-data-definition-language-commands-sql-aptitude-questions-74-6159/)

Save for Later

Answer & Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board (https://www.examveda.com/in-sql-which-of-the-following-is-not-a-
data-definition-language-commands-sql-aptitude-questions-74-6159/)

76. 'AS' clause is used in SQL for

A. Selection operation.

B. Rename operation.

C. Join operation.

D. Projection operation.

Answer & Solution Discuss in Board (https://www.examveda.com/as-clause-is-used-in-sql-for-sql-aptitude-questions-75-6160/) Save for Later

Answer & Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board (https://www.examveda.com/as-clause-is-used-in-sql-for-sql-
aptitude-questions-75-6160/)

77. Count function in SQL returns the number of

A. values.

B. distinct values.

C. groups.

D. columns.

Answer & Solution Discuss in Board (https://www.examveda.com/count-function-in-sql-returns-the-number-of-sql-aptitude-questions-76-6161/) Save for Later

https://www.examveda.com/sql/practice-mcq-question-on-sql-miscellaneous/?page=8 3/5
7/7/23, 6:48 PM SQL MCQ Questions and answers Page-8 section-1

Answer & Solution

Answer: Option A
Solution:
Count function in SQL returns the number of values.
Count function counts all the not null values in the specific column. If we want to count only distinct values then the DISTINCT keyword is also to be used.

78. Which of the following is a valid SQL type?

A. CHARACTER

B. NUMERIC

C. FLOAT

D. All of the above

Answer & Solution Discuss in Board (https://www.examveda.com/which-of-the-following-is-a-valid-sql-type-sql-aptitude-questions-77-6162/) Save for Later

Answer & Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board (https://www.examveda.com/which-of-the-following-is-a-valid-sql-
type-sql-aptitude-questions-77-6162/)

79. NULL is

A. the same as 0 for integer

B. the same as blank for character

C. the same as 0 for integer and blank for character

D. not a value

Answer & Solution Discuss in Board (https://www.examveda.com/null-is-sql-aptitude-questions-78-6163/) Save for Later

Answer & Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board (https://www.examveda.com/null-is-sql-aptitude-questions-78-
6163/)

 (https://www.examveda.com:443/sql/practice-mcq-question-on-sql-miscellaneous/?page=7)

https://www.examveda.com/sql/practice-mcq-question-on-sql-miscellaneous/?page=8 4/5
7/7/23, 6:48 PM SQL MCQ Questions and answers Page-8 section-1

1 (https://www.examveda.com:443/sql/practice-mcq-question-on-sql-miscellaneous/)

2 (https://www.examveda.com:443/sql/practice-mcq-question-on-sql-miscellaneous/?page=2)

3 (https://www.examveda.com:443/sql/practice-mcq-question-on-sql-miscellaneous/?page=3)

4 (https://www.examveda.com:443/sql/practice-mcq-question-on-sql-miscellaneous/?page=4)

5 (https://www.examveda.com:443/sql/practice-mcq-question-on-sql-miscellaneous/?page=5)

6 (https://www.examveda.com:443/sql/practice-mcq-question-on-sql-miscellaneous/?page=6)

7 (https://www.examveda.com:443/sql/practice-mcq-question-on-sql-miscellaneous/?page=7) 8

Copyright © 2023 Examveda.com (https://www.examveda.com/)   

(https://www.tw
(https://w
(http
About Us | (https://www.examveda.com/about/) Terms & Condition | (https://www.examveda.com/terms-and-condition/) Privacy Policy | (https://www.examveda.com/privacy-policy/)

Contact Us (https://www.examveda.com/contact-us/)

https://www.examveda.com/sql/practice-mcq-question-on-sql-miscellaneous/?page=8 5/5

You might also like