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

KENDRIYA VIDYALAYA NTPC SHAKTINAGAR

PT2 Class XI INFORMATICS PRACTICES


Time Allowed: 90 Min Max. Marks: 40

1. Define Data and Database. 2


2. Define DBMS. Name any two DBMS. 2

DRAW A TABLE AND ANSWER QUESTIONS 3 TO 6:


3. Define Primary Key. 2
4. Define Candidate Key. 2
5. Define Alternate Key. 2
6. Define Foreign Key. 2
7. Define UNIQUE Constraint of a Table. 2
8. Define CHECK Constraint. How is it implemented in MySQL?
1+1
9. What are data models? Discuss Relational Data Model? 2
10. How can we load a database in memory in MySQL? Write the command. Also write the command
for viewing the list of tables in loaded database.
1+1
11. Create the Table Department with following descriptions: 2
SN Field Name Data Type Size Constraint( is any)
1 DEPCODE Integer 4 Primary Key
2 DEPNAME VARCHAR 20 NOT NULL
3 Budget Decimal (10,2) Default 500000
4 LOCATION VARCHAR 30
12. Answer the following queries based on EMPL table. 10x2

i. Create a query to display the name and salary of employees earning more than 2850.
ii. WAQ to display the name and department number of employees work under employee number 8698.
iii. Display the employee name, job and start date of employees hired between Feb 20, 1981 and May 1,
1981. Order the query in ascending order of start date.
iv. Display the employee name and department number for all employees in departments 10 and 30 in
alphabetical order by name.
v. List the name and salary of the employees who earn more than 1500 and are in department 10 or 30.
Label the columns Employee and Monthly Salary respectively.
vi. Display the name and hiredate of every employee who was hired in 1982.
vii. Display the name, job and salary for all employees whose job is Clerk or Analyst and their salary is not
equal to 1000, 3000 or 5000.
viii. Display name, salary and commission for all employees whose commission amount is greater than their
salary. Display also increased salary by 10%.
ix. Display the Employee number, name, salary, and salary increased by 15%. Label the column New Salary.
x. Write a query that produces the following for each employee:
<employee name>earns<salary>monthly but wants<3 times salary>.

Label the column Dream Salaries.

You might also like