2 QP 1
2 QP 1
SECTION A
3 2
Directions- In the question given below there are two statements marked as
Assertion (A) and Reason (R) . Read the statements and choose the correct
option.
a. Both (A) and (R) are True, and (R) is the correct explanation of (A).
b. Both (A) and (R) are True, but (R) is not the correct explanation of (A).
c. (A) is true, but (R) is false
d. (A) is false, but (R) is true
a) Assertion (A )- The SQL keyword Like only used with wildcards
Reason ( R ):- ‘_’ underscore and “%” percent are two symbols used in
wildcards .
b) Write the use of “_” and “%” symbols in SQL ?
Or
a) Assertion (A) - The qualifier DISTINCT must be used in an SQL
statement when we want to eliminate duplicate rows.
Reason ( R ) - DISTINCT only works with numeric datatype only .
b) Is Distinct and Unique keywords functionality are same ?
6 ‘All primary keys are candidate keys but all candidate keys are not primary.’ 2
State True or False and Justify your answer
7 a)_______ is the cloud based services that you are using at present . 2
i) Google drive ii) Microsoft Azure iii) i Cloud iv) All of these These
b) The process of encrypting and decrypting information :-
i) Decentralized Application ii) Cryptocurrency
iii) Block iv) Cryptography
SECTION B
8 What do you mean by Degree and Cardinality ? How is Tuple different from 3
Attribute?
Or
What do you mean datatype ? How char is different from varchar ?
9 3
Create the table salary based on the above given instance chart .
10 What do you mean by Big Data ? Mention five characteristics of Big Data ? 3
SECTION C
—----------------------------------------------------------------------------------------------
Write SQL statement for the queries (i) and (ii) and output for (iii) to (vi)
(i) To display all details of those employees whose name starts from “D”;
(ii) To insert a record in employee table with the values :
(11,sita,45000,Accounts,2000-02-19,35,F)
(iii) select department , name from employee where department not in( “HR”,
“computer”);
(iv) select age from employee order by age desc;
(v) select max(basic) from employee;
(vi)select count(distinct department) from employee;
Or