Rdbms

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 25

Sample Question Paper

Information Technology (Code 802)


1. Collection of possible values from which the type of data for a column is derived is called as
_____________
a) Relation
b) Domain
c) Tuple
d) Attribute
2. ___________________ a two-dimensional representation of data using rows and columns
a) Relation
b) Domain
c) Tuple
d) Attribute
3. The horizontal subset of the table and a collection of data about a particular entity such as
person, place or thing is called ________________
a) Relation
b) Domain
c) Tuple
d) Attribute
4. _________________ is the vertical subset of the table and has a unique name and the content
within it must be of the same type of data.
a) Relation
b) Domain
c) Tuple
d) Attribute
5. One or more columns which can be used to identify one or more rows in a table is called
_______________
a) Foreign Key
b) Lock
c) Key and Lock
d) Key
6. ________________ is one or more columns used to uniquely identify each row of a table
a) Primary Key
b) Foreign Key
c) Key and Lock
d) Key
7. In a table, there may be more than one field that uniquely identifies a record. All such fields
are called _______________.
a) Primary Key
b) Alternate Key
c) Candidate Key
d) Foreign Key
8. A candidate key of a table which is not selected as the primary key is called _______________
a) Primary Key
b) Alternate Key
c) Candidate Key
d) Foreign Key
9. A table may have more than one _______________ but definitely has one and only one
________________
a) Candidate Key, Primary Key
b) Primary Key, Candidate Key
c) Primary Key, Primary Key
d) Candidate Key, Candidate Key
10. When primary key of a one table used in other table, then it is called as ________________ of
other table
a) Primary Key
b) Alternate Key
c) Candidate Key
d) Foreign Key
11. Select correct SQL Statement to create database called School
a) Create Database School;
b) Show Databases School;
c) Use School;
d) Select Database();
12. Select correct SQL statement to view list of databases that currently exist in server
a) Create Database;
b) Show Databases;
c) Use School;
d) Select Database();
13. Select correct SQL statement to open the database School to work
a) Create Database School;
b) Show Databases School;
c) Use School;
d) Select Database();
14 Select correct SQL statement to view the current database we are currently working
a) Create Database;
b) Show Databases;
c) Use Database;
d) Select Database();
15. Select correct SQL statement to remove a database school
a) Remove Database School;
b) Delete Database School;
c) Drop Database School;
d) Drop School;
16. Select correct SQL statement to create table Teacher shown below:
a) Create teacher(teacher_id integer, first_name varchar(20), salary decimal(10,2));
b) Create table teacher(teacher_id integer, first_name varchar(20), salary
decimal(10,2));
c) Create table teacher(teacher_id integer, first_name char(1), salary decimal(10,2));
d) Create table teacher(teacher_id decimal(10,2), salary integer, first_name
varchar(20));
17. Select correct SQL statement to extract all details of table Teacher shown below:

a) Select teacher_id, rst_name from teacher;


b) Show * from teacher;
c) Select * from teacher;
d) View * from teacher;
18. Select correct SQL statement to add new teacher details into table Teacher shown below:

a) Insert into teacher(Salary,First_name,Teacher_id) values(6500.00,'Srijit',1005)


b) Insert into teacher values(1005,'Srijit',6500.00)
c) Insert into teacher values(1005,'Srijit',null)
d) All of above
19. Select correct SQL statement to delete teacher Revathy details from table Teacher shown
below:

a) Erase from teacher where teacher_id=1003;


b) Remove from teacher where rst_name='Revathy';
c) Drop table teacher;
d) Delete from teacher where teacher_id=1003;
20. Select correct SQL statement to delete table Teacher shown below
a) Drop database Teacher;
b) Drop table Teacher;
c) Delete from Teacher;
d) All of above
21. Insert into student values(1,’ABC’,’10 Hari Nagar’) is a type of which command :
a) DML
b) DDL
c) TCL
d) DCL
22. Which of the following sub languages of SQL is used to query information from the database
and to insert tuples into, delete tuples from and modify tuples in the database?
a) DML
b) DDL
c) Query
d) Relational Scheme
23. The ……… clause of SELECT query allows us to select only those rows in the result that satisfied
a specified condition.
a) WHERE
b) FROM
c) HAVING
d) LIKE
24. Which of the following keywords will you use in the following query to display all the records
of students whose name start with S? SELECT * from student where name “S%”
a) WHERE
b) FROM
c) HAVING
d) LIKE
25. Write the command to delete all the data of the table ‘activity’ retaining only structure
a) Alter
b) Update
c) Delete
d) Drop
26. Alter command in MySql is part of ___________________
a) DML
b) DDL
c) TCL
d) DCL
27. What will be the most suitable data type for the grade column in given table?

a) Integer
b) Decimal
c) Varchar
d) Char
28. What will be the most suitable data type for the Rollno column in given table?

a) Integer
b) Decimal
c) Varchar
d) Char
29. In SQL, NULL value means:
a) 0 value
b) 1 value
c) None value
d) None of the above
30. Write the name of the clause used with SELECT command to search for a specific pattern in
the strings.
a) Like
b) IN
c) Search
d) Where
31. ___________ is a collection of raw facts which have not been processed
a) Data
b) Information
c) Knowledge
d) Wisdom
32. Select the correct full form of DBMS
a) Direct Base Management System
b) Database Management System
c) Database Managerial System
d) None of above
33 Same information stored in more than one file is called as _________________
a) Data Inconsistency
b) Data Redundancy
c) Data Integration
d) None of above
34. Data type of values in each column is called as ________________
a) Domain
b) Degree
c) Cardinality
d) Relation
35. Number of attributes in a relation is called as ________________
a) Domain
b) Degree
c) Cardinality
d) Relation
36. Number of rows in a relation is called as ___________________
a) Domain
b) Degree
c) Cardinality
d) Relation
37. Which of following is one of commonly used RDBMS?
a) Dbase
b) Python
c) MYSQL
d) Java
38. Which SQL Statement extracts data from table?
a) Select
b) Extract
c) Display
d) Show
39. Which of the following is DML Statements?
a) Create table
b) Alter Table
c) Select
d) Drop table
40. Which statement is used to delete all records from table student?
a) Drop from student;
b) Remove from student;
c) Delete from student;
d) All of above
41. Which statement is used to insert new records into table?
a) Add into
b) Insert into
c) Update into
d) All of above
42. _______________ is uses to store fixed length character string
a) Char
b) Varchar
c) String
d) All of above
43. Select the correct SQL statement to delete a database.
a) Remove database;
b) Drop database;
c) Delete database;
d) All of above
44. Select the correct syntax to assign primary key constraint to teacher_id field while creating
table.
a) teacher_id primary key integer
b) teacher_id integer is primary key
c) teacher_id integer primary key
d) All of above
45. Select the correct syntax to assign not null constraint to first_name field while creating table.
a) first_name char(20) not null
b) first_name varchar(20) not null
c) first_name varchar(20) <> null
d) All of above
46. Select the correct syntax to assign default constraint to salary field while creating table.
a) salary decimal(10,2) default 40000
b) salary decimal(10,2) default is 40000
c) salary decimal(10,2) 40000 default
d) All of above
47. Select the correct syntax to assign check constraint to dept_no field while creating table.
a) dept_no integer check <=110
b) dept_no integer check(dept_no <=110)
c) dept_no integer dept_no:check<=110
d) All of above
48. The ............. command is used to see the structure of the table.
a) Desc
b) Show
c) Display
d) Use
49. Write MySql command that will be used to open an already existing database CONTACTS
a) Open Contacts
b) Use Contacts
c) Show Contacts
d) Desc Contacts
50. A table “Transport” in a database has degree 3 and cardinality 8. How many rows and
columns it has?
a) 8 Rows and 3 Columns
b) 3 Rows and 8 Columns
c) 24 Rows and 24 Columns
d) 3 Rows and 3 Columns
51. Write a query to display names and salaries of those employees whose salary are greater
than 20000.

a) select * from employee where salary>=20000;


b) select name,salary from employee where salary>=20000;
c) select name, salary from employee where salary>20000;
d) All of above
52. Write a query to display details of employees who are not getting any
bonus.

salary are greater than 20000.

a) select * from employee where bonus is null;


b) select * from employee where bonus like null;
c) select * from employee where bonus is not null;
d) All of above
53. Write a query to display the names of employees whose name contains “a” as the last
alphabet.

a) select employee_name from employee where employee_name like '*a';


b) select employee_name from employee where employee_name like '_a';
c) select employee_name from employee where employee_name like '%a';
d) All of above
54. Write a query to display the name and Job title of those employees aged between 26 years
and 30 years (both inclusive)

a) select * from employee where age>26 or age<30;


b) select employee_name, job_title from employee where age between 26 and 30;
c) select employee_name,tob_title from employee where age in(26,30);
d) All of above
55. Which one of the following is used as a comparison operator in SQL?
a) Double equal sign (= =)
b) Like
c) Between
d) Single equal sign (=)
56. Write SQL Query to print TID, NAME, SALARY from TEACHERS where salary between 20000
and 30000.

a) Select tid,name,salary from teachers where salary in(20000,30000);


b) Select tid,name,salary from teachers where salary in between 20000 and 30000;
c) Select tid,name,salary from teachers where salary between 20000 and 30000;
d) All of above
57. Write SQL Query to print the names of all Male teachers whose age is less than 40

a) Select name from teachers where sex=’M’ and age<40;


b) Select name from teachers where sex=’M’ or age<=40;
c) Select * from teachers where sex=’M’ or age<=40;
d) All of above
58. Which operator is used in SQL to compare a value with a specific list of values?
a) BETWEEN
b) ANY
c) ALL
d) IN
59. Which of the following expressions in SQL should Mr. X write to display all records from
table STUDENT where marks column is empty?
a) SELECT * FROM STUDENT WHERE MARKS EMPTY;
b) SELECT * FROM STUDENT WHERE MARKS IS NULL;
c) SELECT * FROM STUDENT WHERE NULL (MARKS);
d) SELECT * FROM STUDENT WHERE MARKS = NULL;
60. Which of the following is called as Not Equal To operator in MySQL?
a) <>
b) !=
c) Both a and b
d) None of above
61. Write a query to update the salary of 'Amyra' to 40000

a) Update employee set salary=40000 where employee_name='Amyra'


b) Alter employee set salary=40000 where employee_name='Amyra'
c) Update table employee set salary=40000 where employee_name='Amyra'
d) Alter table employee set salary=40000 where employee_name='Amyra'
62. To add a new column date_of_birth in the table. Select correct SQL statement

a) Alter table teachers modify date_of_birth date;


b) Alter table teachers join date_of_birth date;
c) Alter table teachers add date_of_birth date;
d) Update table teachers add date_of_birth date;
63. Which of the following command can be used to makes changes in the structure of a table
in SQL
a) Select
b) Insert
c) Alter
d) Update
64. The statement in SQL which allows to change the definition of a table is
a) Select
b) Insert
c) Alter
d) Update
65. The ____________command can be used to makes changes in the rows of a table in SQL
a) UPDATE
b) ALTER
c) INSERT
d) SELECT
66. ________________command is used to modify the base table definition
a) Create Table
b) Alter Table
c) Update Table
d) Modify Table
67. _____________ command is used to modify the value of attribute of one or more tuple in a
table
a) Update
b) Modify
c) Alter
d) Create
68. Sagun is creating a table SALESMAN with fields Salesman number, name, Total Sales. She
doesn’t want the Total Sales column to be remain unfilled i.e. she wants to make entry in
this field mandatory. Which constraint she should use at the time of creating SALESMAN
table:
a) Check
b) Default
c) Not null
d) Primary key
69. Ranjana wants to delete the records where name starts with A from the table CUSTOMER
having fields Name, Amount, Discount. Identify the correct command:
a) Delete CUSTOMER where name like “A%”;
b) Delete from CUSTOMER where name like “A%”;
c) Delete CUSTOMER where name = “A%”;
d) Delete from CUSTOMER where name = “A%”;
70. The ______________command is used to modify the structure of the table STUDENT in
MySQL
a) Modify table STUDENT
b) Alter table STUDENT
c) Alter STUDENT
d) Modify STUDENT
71. Create table Teacher as shown below:

a) Create table teacher(teacher_id integer, first_name varchar(20), dept_id


integer,foreign key(dept_id) references department(dept_no));
b) Create table teacher(teacher_id integer, first_name varchar(20), dept_id
integer,foreign key(dept_no) references primary key(dept_no));
c) Create table teacher(teacher_id integer, first_name varchar(20), dept_id
integer,department(dept_no) references foreign key(dept_no));
d) All of above
72. Foreign Key accepts only values available in ________________
a) Candidate Key
b) Primary Key
c) Alternate Key
d) All of above
73. Which of the following allows duplicate values?
a) Candidate Key
b) Primary Key
c) Foreign Key
d) All of above
74. You cannot delete values of primary key, if the same value is available in ____________
a) Candidate Key
b) Primary Key
c) Foreign Key
d) All of above
75. You cannot drop table with primary key, if there is a ___________________table
a) Candidate Key
b) Primary Key
c) Foreign Key
d) All of above
76. __________________ is table in which Foreign key of that table refers to primary key of that
same table
a) Primary Table
b) Foreign Table
c) Same Referential Table
d) Self-Referential Table
77. Which of the following is true for self-referencing table?
a) A foreign key constraint can reference columns within the same table.
b) A primary key constraint can be null.
c) You cannot delete this table
d) You cannot update or delete this table
78. Write SQL Statement snippet which creates table in such a way that if user delete or update
values in primary key in department table, then null should be set to foreign key values
a) foreign key(dept_no) references department(dept_id) on delete set null on update
set null
b) foreign key(dept_no) references department(dept_id) set null on delete set null on
update
c) foreign key(dept_no) references set null on delete set null on update
department(dept_id)
d) set null on delete set null on update foreign key(dept_no) references
department(dept_id)
79. Write SQL Statement snippet which creates table in such a way that if user delete or update
values in primary key in department table, then simultaneously foreign key values are too
deleted or updated
a) foreign key(dept_no) references department(dept_id) on delete set null on update
set null
b) foreign key(dept_no) references department(dept_id) on delete cascade on update
cascade
c) foreign key(dept_no) references cascade on delete cascade on update
department(dept_id)
d) foreign key(dept_no) references department(dept_id) on delete restrict on update
restrict
80. Write SQL Statement snippet which creates table in such a way that User cannot delete or
update values in primary key, if they are available in foreign key
a) foreign key(dept_no) references department(dept_id) on delete set null on update
set null
b) foreign key(dept_no) references department(dept_id) on delete cascade on update
cascade
c) foreign key(dept_no) references cascade on delete cascade on update
department(dept_id)
d) foreign key(dept_no) references department(dept_id) on delete restrict on update
restrict
81. Write the command to view all tables in a database
a) Show databases;
b) View tables;
c) Display tables
d) Show tables
82. Which of the following commands will delete the table from MYSQL database?
a) DELETE TABLE
b) DROP TABLE
c) REMOVE TABLE
d) ALTER TABLE
83. Consider the following table PLAYER, Identity the name of the most appropriate column
from the given table PLAYER that can be used a Primary key

a) PNO
b) NAME
c) SCORE
d) ALL OF ABOVE
84. _________ is a non-key attribute, whose values are derived from the primary key of some
other table
a) Primary Key
b) Foreign Key
c) Candidate Key
d) Alternate Key
85. ______ command is used to remove primary key from a table in SQL.
a) Update
b) Remove
c) Alter
d) Drop
86. Consider the following table PLAYER, what is the Degree of the given table PLAYER?

a) 6
b) 5
c) 4
d) 3
87. Consider the following table PLAYER, what is the Cardinality of the given table PLAYER?

a) 6
b) 5
c) 4
d) 3
88. What will be cardinality of following SQL Statement Select * from teacher, department;

a) 2
b) 3
c) 4
d) 12

89. What will be cardinality of following SQL Statement Select * from teacher,
department where department.dept_no = teacher.dept_no;

a) 2
b) 3
c) 4
d) 12
90. Consider the below tables, Seema wants to display StoreName and OwnerName of all
stores in Mumbai. Help her select the correct query from the options given below:
a) Select StoreName, OwnerName from STORE, OWNER where
Store.OwnerId=Owner.OwnerId or Location=”Mumbai”;
b) Select StoreName, OwnerName from STORE, OWNER where
store.OwnerId=Owner.OwnerId and Location=”Mumbai”;
c) Select StoreName, OwnerName from STORE, OWNER where Location=”Mumbai”;
d) Select StoreName, OwnerName from STORE, OWNER where OwnerId=OwnerId and
Location=”Mumbai”;
91. Consider a table: COACHING having fields CITY_NAME, ENROLMENTS. Shikhar wants to
display the data of the above table in ascending order of enrolments. Choose the correct
query/queries from the following:
i. Select * from coaching order by enrolments asc;
ii. Select * from coaching order by enrolments desc;
iii. Select * from coaching order by enrolments;
iv. Select * from coaching order by enrolments ascending;
a) Only (i) is correct
b) Both (i) and (ii) are correct
c) Both (i) and (iii) are correct
d) Only (iv) is correct
92. Write SQL command to display details of all items in the STOCK table in descending order of
stkdate.

a) SELECT * FROM STOCK ORDER BY STKDATE;


b) SELECT * FROM STOCK ORDER BY STKDATE ASC;
c) SELECT * FROM STOCK ORDER BY STKDATE DESC;
d) None of above
93. Write SQL command to list the names of those students who have obtained DIVISION as
FIRST in the ascending order of NAME for the table EXAM given below:

a) SELECT NAME FROM EXAM WHERE DIVISION= ‘FIRST’ ORDER BY NAME ;


b) SELECT NAME FROM EXAM WHERE DIVISION= ‘FIRST’ ORDER BY NAME ASC;
c) ALL OF ABOVE
d) NONE OF ABOVE
94. Aggregate Functions are used to apply certain __________ functions on group of values in a
table.
a) Mathematical
b) Text
c) Logical
d) All of above
95. The MAX() function in MySQL is an example of ..................................
a) String Function
b) Text Function
c) Date Function
d) Aggregate Function
96. Write SQL command to count the number of students who have either accounts or
informatics as subject for the table EXAM given below:

a) select count(*) from exam where subject not in('english', 'mathematics', 'history',
'geography');
b) select count(*) from exam where subject=‘accounts’ or subject=‘informatics’;
c) select count(*) from exam where subject in(‘accounts’,‘informatics’);
d) all of above
97. Select the correct output of SQL command SELECT MIN(AVERAGE) FROM EXAM WHERE
DIVISION NOT IN('SECOND','THIRD');
a) 35
b) 67
c) 55
d) None of above
98. Select the correct output of SQL command SELECT COUNT(NAME) FROM EXAM WHERE
NAME LIKE '%A%';

a) 1
b) 3
c) 6
d) None of above
99. Consider a table FACTORY given below: Reema wants to calculate the average production of
the years 2008-2012. Help her select the correct SQL command for it:

a) SELECT AVERAGE(Production) from FACTORY;


b) SELECT AVERAGE(Production) from FACTORY group by Production;
c) SELECT SUM(Production) from FACTORY;
d) SELECT AVG(Production) from FACTORY;
100. Consider the table ‘empsal’: Read the following two commands carefully:
i. select COUNT(salary) from empsal;
ii. select COUNT(*) from empsal;
Choose the correct option:

a) Both i and ii will give the same output as 3


b) The output of i is 3 and the output of ii is 4.
c) Both i and ii will give the same output as 4.
d) The output of i is 4 and the output of ii is 3
101. Which keyword is used to return only different values in a column?
a) Distinct
b) Different
c) Unique
d) All of above
102. To avoid repetition in the result of a SELECT query ______________ clause is used
a) Unique
b) Different
c) Distinct
d) All of above
103. Consider a table ‘SCORE’: Select the correct query from the options given below to display
the names of all streams only once.

a) Select distinct stream from score;


b) Select different stream from score;
c) Select unique stream from score;
d) Select stream from score where stream = distinct;
104. Select the correct output of SQL command SELECT COUNT(DISTINCT DIVISION) FROM EXAM;

a) 6
b) 3
c) 1
d) None of above
105. Select the correct output of SQL command SELECT COUNT(NAME) FROM EXAM WHERE
NAME LIKE '%A%';
a) 1
b) 3
c) 6
d) None of above
106. Select the correct output of SQL command SELECT COUNT(DISTINCTDCODE) FROM STOCK;

a) 7
b) 5
c) 3
d) 1
107. Write SQL command to display minimum unit price of items for each dealer individually as
per dealer code from the table stock.

a) SELECT DCODE,MIN(UNITPR) FROM STOCK GROUP BY DCODE;


b) SELECT DCODE,MIN(UNITPR) FROM STOCK ORDER BY DCODE;
c) SELECT UNITPR MIN(DCODE) FROM STOCK GROUP BY DCODE;
d) SELECT UNITPR MIN(DCODE) FROM STOCK ORDER BY DCODE;
108. Consider a table STAFF: Select the command which will count the number of people in each
city.

a) SELECT COUNT(City), City FROM STAFF WHERE GROUP BY City;


b) SELECT COUNT(City), City FROM STAFF GROUP BY City;
c) SELECT COUNT(City), City FROM STAFF WHERE ORDER BY City;
d) SELECT COUNT(City), City FROM STAFF ORDER BY City;
109. To apply some condition on the group of values of attribute, _________ clause is used
a) Where
b) Having
c) Distinct
d) All of above
110. Choose the correct query to display the number of employees present in Delhi and Mumbai.

a) Select SUM(noofemployee), Location from STORE group by location HAVING


location in (“Delhi”,”Mumbai”);
b) Select SUM(noofemployee), Location from STORE group by location WHERE location
in (“Delhi”,”Mumbai”);
c) Select SUM(noofemployee), Location from STORE group by location HAVING
location =“Delhi” and location=”Mumbai”;
d) Select SUM(noofemployee), Location from STORE group by location WHERE location
=“Delhi” or location=”Mumbai”;
Marking Scheme
Class: XI Session: 2022-23
Information Technology (Code 802)

1. b. Domain
2. a. Relation
3. c. Tuple
4. d. Attribute
5. d. Key
6. a. Primary Key
7. c. Candidate Key
8. b. Alternate Key
9. a. Candidate Key, Primary Key
10. d. Foreign Key
11. a. Create Database School;
12. b. Show Databases;
13. c. Use School;
14. d. Select Database();
15. c. Drop Database School;
16. b. Create table teacher(teacher_id integer, first_name varchar(20), salary decimal(10,2));
17. c. Select * from teacher;
18. b. Insert into teacher values(1005,'Srijit',6500.00)
19. d. Delete from teacher where teacher_id=1003;
20. b. Drop table Teacher;
21. a. DML
22. a. DML
23. a. WHERE
24. d. LIKE
25. c. Delete
26. b. DDL
27. d. Char
28. d. Char
29. c. None value
30. a. Like
31. a. Data
32. b. Database Management System
33. b. Data Redundancy
34. a. Domain
35. b. Degree
36. c. Cardinality
37. c. MYSQL
38. a. Select
39. c. Select
40. c. Delete from student;
41. b. Insert into
42. a. Char
43. b. Drop database;
44. c. teacher_id integer primary key
45. b. first_name varchar(20) not null
46. a. salary decimal(10,2) default 40000
47. b. dept_no integer check(dept_no<=110)
48. a. DESC
49. b. Use Contacts
50. a. 8 Rows and 3 Columns
51. c. select name, salary from employee where salary>20000;
52. a. select * from employee where bonus is null;
53. c. select employee_name from employee where employee_name like '%a';
54. b. select employee_name, job_title from employee where age between 26 and 30;
55. d. Single equal sign (=)
56. c. Select tid,name,salary from teachers where salary between 20000 and 30000;
57. a. Select name from teachers where sex=’M’ and age<40;
58. d. IN
59. b. SELECT * FROM STUDENT WHERE MARKS IS NULL;
60. c. Both a and b
61. a. Update employee set salary=40000 where employee_name='Amyra'
62. c. Alter table teachers add date_of_birth date;
63. c. Alter
64. c. Alter
65. a. UPDATE
66. b. Alter Table
67. a. Update
68. c. Not null
69. b. Delete from CUSTOMER where name like “A%”;
70. b. Alter table STUDENT
71. a. Create table teacher(teacher_id integer, first_name varchar(20), dept_id integer,
foreign key(dept_id) references department(dept_no));
72. b. Primary Key
73. c. Foreign Key
74. c. Foreign Key
75. c. Foreign Key
76. d. Self-Referential Table
77. a. A foreign key constraint can reference columns within the same table
78. a. foreign key(dept_no) references department(dept_id) on delete set null on update set null
79. b. foreign key(dept_no) references department(dept_id) on delete cascade on update
cascade
80. d. foreign key(dept_no) references department(dept_id) on delete restrict on update restrict
81. d. Show tables
82. b. DROP TABLE
83. a. PNO
84. b. Foreign Key
85. c. Alter
86. d. 3
87. b. 5
88. d. 12
89. c. 4
90. b. Select StoreName, OwnerName from STORE, OWNER where store.OwnerId =
Owner.OwnerId and Location=”Mumbai”;
91. c. Both (i) and (iii) are correct
92. c. SELECT * FROM STOCK ORDER BY STKDATE DESC;
93. c. ALL OF ABOVE
94. a. Mathematical
95. d. Aggregate Function
96. d. all of above
97. b. 67
98. c. 6
99. d. SELECT AVG(Production) from FACTORY;
100. b. The output of i is 3 and the output of ii is 4.
101. a. Distinct
102. c. Distinct
103. a. Select distinct stream from score;
104. b. 3
105. c. 6
106. c. 3
107. a. SELECT DCODE,MIN(UNITPR) FROM STOCK GROUP BY DCODE;
108. b. SELECT COUNT(City), City FROM STAFF GROUP BY City;
109. b. Having
110. a. Select SUM(noofemployee), Location from STORE group by location HAVING location in
(“Delhi”,”Mumbai”);

You might also like