Class 10 DBMS Questions (1)
Class 10 DBMS Questions (1)
1.) You are tasked with designing a new employee database for your company. Based on the given
table structure. Identify the fields that would be necessary to store key information about each
employee.
2.) As a database administrator, you need to ensure each employee has a unique identifier.
Which field in the table would you choose as the primary key, and why?
3.) During a review of the employee database, you realize there could be another field apart from
the primary key that can uniquely identify a record.
Identify the field and justify why It could server as an alternate key.
4.) You are integrating the employee table with another table that stores department details.
Explain how you would use the primary key from the employee table and a foreign key in the
department table to establish a relationship between the two tables. Illustrate with an example.
Q.2.) Consider the table Product and write SQL queries for the following:-
a) How many fields and records are there in the table Employee?
b) Write the SQL queries for the following:
i) Display E_name and salary of those employees whose Salary is less than or equal to
16000.
ii) Display details of employees who are getting commission of Rs. 300 or greater.
iii) Display all the details of the employee profile ‘CLERK’.
a) How many fields and records are there in the table Employee?
b) Write the SQL queries for the following:-
i) Display E_Name and Salary of these Employees whose Salary is greater than or equal to
22000.
ii) Display details of employees those are not getting Commission.
iii) Display all the details of the employee profile ‘Salesman’.
Last Name First Name Dept. Payroll Number Salary Job Title
Shen James Finance A621 19500 Payroll Clerk
Gupta Shruti Finance M502 35000 Accountants
Bedi Reeta HR M421 18500 Secetary
Walker Tia Sales W815 24000 Sales Representative
Shafia Ahmed Factory H219 39000 Factory Manager
Mittal Chavi Purchasing M134 2000 Purchasing Card
i) How many fields and records are there in the table EmployeeSalary?
ii) Write the SQL queries for the following:-
a) List all data of table EmployeeSalary.
b) Display all the records whose salary is less than 25000.
c) Display the FirstName and Job Title of employees having Dept ‘Finance’.
Q.6) Table : SummerCamp
i) How many fields and records are there in the table SummaryCamp?
ii) Write SQL queries for the following:-
a) Display all the records of table SummaryCamp whose DOB is between 02/02/09 and
06/03/10.
b) Display all the records having Gender F.
c) Display all the records according to the First Name.
a) How many fields and records are there in the table ITEMS?
b) Write the SQL queries to :-
i) Display the details of all the items in ascending order of item name (i.e. IName)
ii) Display IName and Price of all those items whose price is in the range of 10000
and 22000.
iii) Display all the information of the items having price less than 10000.
Q.8) TABLE : APPLICANTS
i) How many records and fields are there in the table APPLICANTS.
ii) Write the SQL Queries to :
a) Display NAME, FEE, GENDER, JOINYEAR about the APPLICANTS, who have joined
before 2010.
b) Display the NAMES of all APPLICANTS in ascending order of their JOINYEAR.
c) Display the details of APPLICANTS of female.
Q.9) TABLE:PRODUCT
ID SName Area
S001 ABC Computeronics CP
S002 All Infotech Media GK II
S003 Tech Shoppe CP
S004 Geeks Tecno Soft Nehru Place
S005 Hitech Tech Store Nehru Place