Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
9 views

SQL MCQ

Uploaded by

Tariq Ahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

SQL MCQ

Uploaded by

Tariq Ahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

SQL MCQs (eClerx Digital)

Name *

Tariq Ahmad

Email Address *

amazingtariq9@gmail.com

What does SQL stand for? *

Structured Query List

Structured Query Language

Simple Query Language

None of the above

Which SQL statement is used to extract data from a database? *

OPEN

EXTRACT

SELECT

GET

Which SQL statement is used to update data in a database? *

MODIFY

UPDATE

ALTER

CHANGE
Which clause is used to filter the results of a query? *

FILTER

WHERE

HAVING

SELECT

How do you select all the columns from a table named "Customers"? *

SELECT [all] FROM Customers

SELECT * FROM Customers

SELECT Customers

ALL SELECT FROM Customers

Which SQL statement is used to delete data from a database? *

REMOVE

DELETE

DROP

CLEAR

Which function is used to count rows in a SQL query? *

COUNT()

SUM()

TOTAL()

NUMBER()
Which SQL keyword is used to sort the result-set? *

SORT BY

ALIGN BY

ORDER BY

GROUP BY

How can you insert a new row into the table "Customers"? *

INSERT INTO Customers VALUES

ADD INTO Customers VALUES (...)

INSERT Customers (...)

NEW ROW IN Customers (...)

Which SQL statement is used to return only different values? *

SELECT UNIQUE

SELECT DISTINCT

SELECT DIFFERENT

SELECT VARIOUS

What is the default sort order of the ORDER BY clause? *

Descending

Ascending

Alphabetical

Numerical
Which keyword is used to specify a condition in a SQL statement? *

CONDITION

WHERE

HAVING

FILTER

How do you select a column named "FirstName" from a table named *


"Employees"?

SELECT Employees.FirstName

SELECT FirstName FROM Employees

GET FirstName FROM Employees

EXTRACT FirstName FROM Employees

Which SQL statement is used to create a table? *

CREATE TABLE

MAKE TABLE

BUILD TABLE

SET UP TABLE

What is the correct SQL statement to return the number of rows in the "Orders" *
table?

SELECT COUNT(*) FROM Orders

COUNT(SELECT * FROM Orders)

SELECT COUNT(Orders)

COUNT(Orders)
Which type of JOIN returns all rows from the left table, and the matched rows *
from the right table?

LEFT JOIN

RIGHT JOIN

FULL JOIN

INNER JOIN

To return all rows from both tables, matched and unmatched, you would use? *

FULL OUTER JOIN

INNER JOIN

LEFT JOIN

CROSS JOIN

Which JOIN type returns only the rows that have a match in both tables? *

OUTER JOIN

LEFT JOIN

RIGHT JOIN

INNER JOIN

What does an INNER JOIN do? *

Combines rows from both tables where there is a match

Returns all rows, even if there are no matches

Returns rows from the first table only

Returns rows from the second table only.


To join a table to itself, what type of join would you use? *

SELF JOIN

DIRECT JOIN

SIMPLE JOIN

DOUBLE JOIN

This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Privacy Policy

Forms

You might also like