SQL MCQ Set-2
SQL MCQ Set-2
FINAL MOCK
Name *
Mohammed Taj
Contact Number *
9360793877
Batch Code *
A9
SQL query to find the temperature in *0/1
increasing order of all cities.
Correct answer
CHAR
NUMBER
VARCHAR
DATA
Which of the following terms *1/1
represents a COLUMN of a Database
table?
Field, Record
Attribute, Field
Tuple, Record
Tuple, Attribute
Self join
Full join
Inner join
Outer join
Which of the following constraint are *1/1
not present in SQL?
CANDIDATE KEY
UNIQUE
PRIMARY KEY
NOT NULL
False
True
False
True
If min( ) function is used on a field *1/1
with non-numerical values, the
function returns that record which is
_________
Closest to alphabet Z
Closest to alphabet A
&
Which of the following terms *1/1
represents a ROW of a Database
table?
Attribute, Field
Field, Record
Tuple, Attribute
Tuple, Record
Oracle
DBMS
RDBMS
SQL Server
Correct answer
RDBMS
It is a Database Object
Record
Database Object
Field
Row
Correct answer
Field
False
True
Select
Read
Recover
Update
ALL operator returns true if ______ * 1/1
Full join
Self join
Cartesian join
Join
What is a Record? * 0/1
A record is a column
Correct answer
Drop
Delete
Replace
Remove
Which SQL command is used to *1/1
modify data in a Database?
Update
Edit
Save
Modify
Logical operators
Relational operators
Arithmetic operators
Bitwise operators
Self joins are used to ________ * 1/1
Emp
Alias
Order by
Group by
DISTINCT clause considers NULL as *1/1
________
A space character
Zero value
A unique value
Row name
Table name
Attribute name
True
False
To insert new data into a database, *0/1
which of the following SQL command
is used?
Insert Into
Add New
Insert
New Data
Correct answer
Insert
True
False
Delete
Drop
Remove
Eliminate
Which of the following is used to *1/1
modify an existing table?
Alter
Modify
Update
Alter Table
Create
Create Table
Create New
To update all the records of a table, *1/1
which of the following clause is
omitted from an UPDATE statement?
Values
Where
Set
Modify All
Add Index
Remove Index
Change Index
True
False
HAVING clause is used in *1/1
combination with which of the
following clause(s)?
Group by
Where
Select
Order by
Only once
Twice
Thrice
Correct answer
Twice
Where
Select
From
Join
Which keyword is used in conjunction *1/1
with DISTINCT keyword?
From
Select
Where
Group By
True
False
Field, Record
Tuple, Record
Tuple, Attribute
Attribute, Field
Which of the following SQL *0/1
statement selects only unique values
from ‘section’ column of table
‘school’?
Correct answer
In
AND OR
Between
Like
Correct answer
In
Attribute, Field
Tuple, Record
Tuple, Attribute
Field, Record
RDBMS stands for _______ * 1/1
Latest date
Earliest date
If one or more columns are there in a *1/1
SELECT statement in addition to the
SUM or AVG function, these columns
need to be a part of _______
Having clause
Group By clause
Order By clause
Where clause
DBMS
RDBMS
SQL Server
Oracle
Which of the following statements is *1/1
true concerning subqueries?
Database Object
SQL Object
SQL Server
Database server
It is a Database Object
It is a Database Objectset
Column1*4
Column1 + Column2
Column1
Natural join
Outer join
Equi-join
Cartesian join
Where the specific information about *0/1
every record of a table is stored?
Field
Row
Record
Database Object
Correct answer
Field
A record is a column
Correct answer
True
False
True
False
Set
Where
Modify
SpeciYc
Correct answer
Where
Which of the following provides a *1/1
correct syntax for UPDATE
statement?
Values
Set
Where
Update
SET keyword in an UPDATE *1/1
statement is used to ______
Equi-join
Outer join
Cartesian join
Natural join
What type of join is needed when you *1/1
wish to include rows that do not have
matching values?
Outer join
Equi-join
Natural join
False
True
Correct answer
False
How many columns can be modified *0/1
using a single UPDATE statement?
One column
Correct answer
One column
Select
Copy
Where
From
Correct answer
Select
UPDATE is a _________ command. * 1/1
CLEAR
DELETE
DROP
REMOVE
Join
Start
End
A condition is referred to as *1/1
__________
Join in SQL
Join condition
None of these.
DELETE
DROP
REMOVE
TRUNCATE
Which of the following is not a valid *0/1
SQL type?
FLOAT
NUMERIC
DECIMAL
CHARACTER
Correct answer
DECIMAL
TRUNCATE
ALTER
CREATE
UPDATE
Which of the following are TCL *1/1
commands?
UPDATE TRUNCATE
TRUNCATE
DROP
DELETE
REMOVE
Depends on Database/table
Depends on no of Columns
Only 2
Only 1`
Which datatype can store *···/1
unstructured data in a column?
VARCHAR2
CHAR
None of these.
NUMERIC
No correct answers
NOT NULL
UNIQUE
PRIMARY KEY
NULL
What is the purpose of the SQL AS *1/1
clause?
MAX
COUNT
COMMIT
SUM
PRODUCT
JOIN
SELECT
PROJECT
ANY
BETWEEN
ALL
IN
What operator tests column for *0/1
absence of data
NOT Operator
NOT IN Operator
IS NULL Operator
AND Operator
Correct answer
AND Operator
DESC
ASC
A command that lets you change one *1/1
or more field in a table is:
Insert
Modify
Insert into
modify
NON-EQUI JOIN
EQUI JOIN
SELF JOIN
60
65
70
75
Correct answer
70
Forms