Ansi SQL MCQ QB 2
Ansi SQL MCQ QB 2
Level
ADD Assesment_2_ANSI_SQL ANSISQL_Subqs_View_Index Medium
ADD
Assesment_2_ANSI_SQL ANSISQL_DDL_DML Easy
ADD
Assesment_2_ANSI_SQL ANSISQL_Conts_Ops Easy
ADD
Assesment_2_ANSI_SQL ANSISQL_DDL_DML Easy
ADD
Assesment_2_ANSI_SQL ANSISQL_DDL_DML Easy
ADD
Assesment_2_ANSI_SQL ANSISQL_DDL_DML Difficult
ADD
Assesment_2_ANSI_SQL ANSISQL_DDL_DML Easy
ADD
Assesment_2_ANSI_SQL ANSISQL_DDL_DML Easy
ADD
Assesment_2_ANSI_SQL ANSISQL_Joins Easy
ADD
Assesment_2_ANSI_SQL ANSISQL_Joins Easy
ADD
Assesment_2_ANSI_SQL ANSISQL_Joins Medium
ADD
Assesment_2_ANSI_SQL ANSISQL_Joins Medium
ADD
Assesment_2_ANSI_SQL ANSISQL_Conts_Ops Easy
ADD
Assesment_2_ANSI_SQL ANSISQL_Conts_Ops Easy
ADD
Assesment_2_ANSI_SQL ANSISQL_Conts_Ops Easy
ADD
Assesment_2_ANSI_SQL ANSISQL_Conts_Ops Easy
ADD
Assesment_2_ANSI_SQL ANSISQL_Conts_Ops Easy
ADD
Assesment_2_ANSI_SQL ANSISQL_Joins Easy
ADD
Assesment_2_ANSI_SQL ANSISQL_Joins Easy
ADD
Assesment_2_ANSI_SQL ANSISQL_DDL_DML Easy
ADD
Assesment_2_ANSI_SQL ANSISQL_Joins Easy
ADD
Assesment_2_ANSI_SQL ANSISQL_DDL_DML Easy
ADD
Assesment_2_ANSI_SQL ANSISQL_DDL_DML Easy
ADD
Assesment_2_ANSI_SQL ANSISQL_DDL_DML Medium
ADD
Assesment_2_ANSI_SQL ANSISQL_DDL_DML Easy
ADD
Assesment_2_ANSI_SQL ANSISQL_DDL_DML Medium
ADD
Assesment_2_ANSI_SQL ANSISQL_Subqs_View_Index Medium
ADD
Question Instructions
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Please read the question carefully and choose the most appropriate option.
Question Text Question Choice1 Choice2
Type
Statement 1: A subquery is also called an inner query or inner MCQ Only statement 1 Only statement 2
select, while the statement containing a subquery is also called an
outer query or outer select.
A query is called correlated subquery when both the inner query MCQ 1 0
and the outer query are interdependent.
Statement 1: If a subquery is not dependent on the outer query it is MCQ Only statement 1 Only statement 2
called a non-correlated subquery.
An index helps speed up SELECT queries and WHERE clauses, but it MCQ 1 0
slows down data input, with UPDATE and INSERT statements.
To remove duplicate rows from the result set of a SELECT use the MCQ NO DUPLICATE UNIQUE
following keyword:
Which of the following can add a row to a table? MCQ Add Insert
Which SQL statement is used to insert a new data in a database? MCQ INSERT INTO UPDATE
In a LIKE clause, you can could ask for any value ending in "qpt" by MCQ LIKE %qpt LIKE *ton
writing
In a LIKE clause, you can ask for any 6 letter value by writing? MCQ LIKE ?????? LIKE .{6} Answer 5:
LIKE ^.{6}$
Which of the following is not a valid aggregate function? MCQ COUNT MIN
What SQL clause is used to restrict the rows returned by a query? MCQ AND WHERE
A SELECT command without a WHERE clause returns? MCQ All the records All the records
from a table that from a table, or
match the information about
previous WHERE all the records
clause
MCQ
The AS SQL
clause is used to
change the
name of a
column in the
The AS clause result set or to
defines a assign a name to
search a derived
What is the purpose of the SQL AS clause? condition column.
MCA
SELECT
CustomerName
,
COUNT(Custom SELECT
erName) FROM CustomerName,
Orders ORDER COUNT(Custome
BY rName) FROM
Which of the following SQL statements is correct? CustomerName Orders
MCQ
create a new delete a table
table in the from the
The SQL DROP TABLE clause is used to... database database
MCQ
we are using left
we are joining and right join
We refer to a join as a self-join when? table to itself together
MCQ
UPDATE UPDATE
employees employees
SET first_name SET first_name =
Examine the structure of the EMPLOYEES table: = 'John', 'John',
EMPLOYEE_ID NUMBER Primary Key SET last_name last_name
FIRST_NAME VARCHAR2(25) ='Smith' ='Smith'
LAST_NAME VARCHAR2(25) WHERE WHERE
HIRE_DATE DATE employee_id = employee_id =
Which UPDATE statement is valid? 180; 180;
MCQ
limits the
column data limits the row
that are data are
The SQL WHERE clause: returned. returned.
MCQ
ON UPDATE CASCADE ensures which of the following? Normalization data Integrity
Which of the following is valid SQL for an Index? MCQ CREATE INDEX CHANGE INDEX
ID; ID;
Choice3 Choice4 Choice5 Grade1 Grade2 Grade3 Grade4 Grade5
None of the
listed
options
1 0
None of the
listed
options
1 0
Update Alter 0 1 0 0
1 0
1 0
MAX COMPUTE 0 0 0 1
HAVING FROM 0 1 0 0
0 1
REMOVE DISTINCT 0 1 0 0
The SQL
ALTER TABLE
The SQL ALTER TABLE clause clause is
modifies a table definition by used to
altering, adding, or deleting delete a
table columns and/or database
constraints. table 0 0 1 0
1 0
RESTRICT GROUP BY 0 1 0 0
SELECT CustomerName,
COUNT(CustomerName) FROM
Orders GROUP BY
CustomerName 0 0 1
10 15 0 1 0 0
None of the
Constraints gives programmers listed
job security options 0 1 0 0
None of the
listed
ON DELETE CASCADE options 0 0 1 0
1 0
0 1
0 1
FULL CROSS 0 0 0 1
foreign keys.
candidate keys 0 0 0 1
The ORDER
BY clause is
executed on
The sort is in descending order the client
by default side 1 1 0 0
All listed
options
0 0 1 0
WHERE lower(country_address)
IS 'france' None 1 0 0 0
UPDATE
employees
SET
first_name =
'John'
SET
last_name
UPDATE employees ='Smith'
SET first_name = 'John' WHERE
AND last_name ='Smith' employee_id
WHERE employee_id = 180; = 180; 0 1 0 0