0% found this document useful (0 votes)
10 views

Assignment SQL Basics 14

Uploaded by

vasu18ch
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Assignment SQL Basics 14

Uploaded by

vasu18ch
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

SQL Assignments-1

EmpID Ename DOJ City Salary Comm Deptno


1011 Shivam 2012-05-26 Delhi 34000 10
1012 Kartik 2014-01-31 Mumbai 48000 30
1013 Dhruv 2010-07-22 Kolkata 45000 2400 20
1014 Shreya 2015-10-20 Delhi 29000 1200 20
1015 Mansi 2014-02-05 Chennai 36000 10
1016 Manoj 2016-12-01 Kolkata 51000 0 30
1017 Shilpa 2012-04-12 Mumbai 25000 30
1018 Rohit 2016-11-15 Delhi 47000 1400 10
1019 Paul 2014-06-08 Chennai 42000 20
1020 Gloria 2015-03-18 Delhi 60000 0 10

1. Create the above table emp


2. Insert records in the above table
3. Add a new column Status with suitable data type
4. Change Salary of Paul to 44000
5. Delete the records of Empid 1012 and 1016
6. Increase the Salary of all employees by 20%
7. Display the details of those employees who joined in the year 2014
8. Display the details of those employees who are getting commission
9. Display the name and salary of those employees who have i as second
last character in their name
10.Display the different cities present in the table
11.Display the details of employees who are working in department no 10
and 30
12.Display the details of those employees who are working Delhi and get
salary above 40000
13.Display the name and city of those employees who do not work in
Mumbai
14.Display the details in ascending order of date of join
15.Delete the column deptno

You might also like