You are on page 1of 2

I.T.

Skills – 2 Practical
Assignment-2

1. Create a new database and name it


“company”

2. Create a table “employee” in company database with the following


data:

Id Emp_Name E_City Company C_city manager Salary

1 Aman Gupta Jaipur HDFC Jaipur Ajeet 15000

2 Himanshu Jain Delhi ICICI Jaipur Rahul 11000

3 Suraj Delhi HDFC Delhi Hariom 8000

4 Amit kumar Banglore HDFC Mumbai Steve 10000

5 Sudesh Udaipur ICICI Jodhpur Praveen 11000

3. Find the name of all employees who works for


HDFC.

4. Find the name and cities of residence of all employees who works for
ICICI.

5. Find the name, street and cities of residence of all employees who work for HDFC and earn
more

than 10000/-.

6. Find all employees in the database who live in the same cities as the companies for which they
work.

7. Find all employees in the database who do not work for


HDFC.

8. Modify the table as so that sudesh now lives in


Jodhpur.

9. Make another table “E_ICICI” for all records related to ICICI.


10. Delete all record related to ICICI from “employee”
table.

You might also like