You are on page 1of 5

Q.No.

Question Choice 1 Choice 2


Which of the following are advantages of using Sharing data
1 RDBMS? is possible Reduces redundancy of data

If every column in the table contains Sometimes it is good to keep data in


2 denormalize
atomic value then the table is in 1NF form to improve the performance of statement
Which of the following statements are true for
normalization?

Table :
EMP(EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COM
M,DEPTNO) Update emp set job=’MANAGER’
3 Update emp set job=’MANAGER’;
Which of the following UPDATE command will set job where ename = SMITH;
to ‘Manager for ‘SMITH’?

Which group function will operate on group of


rows excluding rows with NULLS?
4 (Assume 'sal' is a column name.) SUM(sal) AVG(sal)

Which of the following will display different


5 manage number from employee table if column select mgr from emp; select unique mgr from emp;
name is mgr?

6 ______function will display month in month monthname


characters in MySQL
The component of SQL that is used for inserting
7 DDL DML
rows in tables is known as ………………..
The value of INSTR(‘CALIFORNIA’, ’A’) is
8 2 1
__________.

9 In a LIKE clause, you can ask for any 6 letter LIKE ?????? LIKE.{6}
value by writing:

In which join all the rows from the left table appear
10 in the output irrespective of the content of the other RIGHT JOIN LEFT JOIN
table?

To combine multiple retrievals, we write several


11 SELECT statements and put the keyword between COMBINE CONCAT
them. What is the keyword?

Which of the following is the syntax for


12 Createv view as “query name”; Create “query expression” as view;
views where v is view name ?

Which of the syntax is correct for insert statement?


i) insert into <table_name> values <list of values>
13 ii) insert into <table_name> (column list) values <list i-only ii-only
of values>

……………..specifies a search condition for


14 a group or an aggregate. GROUP BY Clause HAVING Clause

Which key declares that an index in one table


15 is related to that in another? primary secondary

Which statement is used to select a default


16 use Create
database?

Deletion of an employee from table also deletes


17 that employee from another table. transparent
This kind of delete is called ____________
concrete
18 What is joining a table to itself called? COMPLETE SELF

19 Which of the following clauses is used to display LIKE WHERE


information that match a given pattern?

In order to add a new column to an existing


20 MODIFY TABLE EDIT TABLE
table in SQL, we can use the command

21 A view is which of the following? Virtual table that can be accessed virtual table that cannot be
via SQL commands accessed via SQL commands

22 The value of Primary key can be duplicated can be null


How below mentioned statement will work?
23 Ifnull(comm,0)(comm is a column name) if value of comm is NULL will return 0 if value of comm is NOT NULL will
return value of comm

24 ………………… is preferred method for enforcing constraints stored procedure


data integrity
The main task carried out in the …………… is to
25 remove 1NF 2NF
repeating attribute to separate tables.
26
27
28
29
30
Choice 3 Choice 4 Correct Answer
Maintains integrity and
correctness of data All of the above Choice 4

Normalization helps us to reduce


All of the above Choice 4
redundancy of data

Update emp set job=’MANAGER’


None of the above Choice 3
where ename = ‘SMITH’;

count(sal) count(*) Choice 3

select distinct mgr fom emp; None of the above Choice 3

dmonth None of the above Choice 2

DCL DQL Choice 2

19 10 Choice 1

LIKE …… (that’s six dots) LIKE ______ (that’s six underscore Choice 4
characters)

INNER JOIN OUTER JOIN Choice 2

JOIN UNION Choice 4

Create view v as “query expression”; Create view “query expression”; Choice 3

Both of 1 and 2 None of them Choice 3

FROM Clause WHERE Clause Choice 2

foreign cross Choice 3

drop schema Choice 1

elaborate cascaded Choice 4

CROSS None of the above Choice 2

IS SAME Choice 1

ALTER TABLE ALTER COLUMNS Choice 3

base that can not be


base table that can be accessed via SQL commands Choice 1
accessed via SQL commands

UNIQUE and NOTNULL None of the above Choice 3

Both 1 and 2 None of the above Choice 3

Triggers cursors Choice 1


3NF 4NF Choice 4
Choice 1
Choice 2
Choice 3
Choice 4

You might also like