Create Table EMP_DATA707(
first_name varchar(50),
last_name varchar(50),
gender char(2),
full_name varchar(50),
emp_id varchar(50),
department varchar(50),
basic_sal number(8,2),
da number(8,2),
hra number(8,2),
gross_sal number(8,2),
tax number(8,2),
total_sal number(8,2)
);
Insert into EMP_DATA707
Values('Mohini','Kumar','F',NULL,'1214811','Python',56984,0,0,0,0,0);
Insert into EMP_DATA707
Values('Trupti','Fargade','F',NULL,'1214993','Python',40000,0,0,0,0,0);
Insert into EMP_DATA707
Values('Akshat','Pandey','M',NULL,'1214574','Java',78560,0,0,0,0,0);
Insert into EMP_DATA707
Values('Gaurav','Tiwari','M',NULL,'1214497','Python',56484,0,0,0,0,0);
Insert into EMP_DATA707
Values('Naveen','Viswanath','M',NULL,'1214817','Oracle',25000,0,0,0,0,0);
Insert into EMP_DATA707
Values('Prabhu','Harsha','M',NULL,'1214507','Oracle',27000,0,0,0,0,0);
Insert into EMP_DATA707 Values('Janaki
Ram','Yandapalli','M',NULL,'1214568','Python',22500,0,0,0,0,0);
Insert into EMP_DATA707
Values('Shashank','Kodam','M',NULL,'1214875','DotNet',25000,0,0,0,0,0);
Insert into EMP_DATA707 Values('Raja
Pandi','Kannan','M',NULL,'1214751','Java',55000,0,0,0,0,0);
Insert into EMP_DATA707
Values('Sadiya','Ahamed','F',NULL,'1214822','Oracle',65000,0,0,0,0,0);
Insert into EMP_DATA707
Values('Basavesh','Tadalgi','M',NULL,'1214799','DotNet',21000,0,0,0,0,0);
Insert into EMP_DATA707
Values('Rajat','Raut','M',NULL,'1215176','Java',50000,0,0,0,0,0);
Insert into EMP_DATA707
Values('Vinitha','Bakre','F',NULL,'1214510','DotNet',25000,0,0,0,0,0);
Insert into EMP_DATA707
Values('Tanmay','Wankhede','M',NULL,'1214806','Oracle',60000,0,0,0,0,0);
Insert into EMP_DATA707 Values('Venkata
Siva','Kovuri','M',NULL,'1214764','JAVA',50000,0,0,0,0,0);
Insert into EMP_DATA707
Values('Shireesha','Medisetti','F',NULL,'1215314','JAVA',49000,0,0,0,0,0);
SELECT * FROM EMP_DATA707;
UPDATE EMP_DATA707 SET da =basic_sal*0.1, hra = basic_sal*0.15, gross_sal =
basic_sal+hra+da
UPDATE EMP_DATA707 SET tax = 0.1*gross_sal,total_sal = gross_sal-tax;
UPDATE EMP_DATA707 SET FULL_NAME = 'MR.'||' '|| FIRST_NAME ||' '|| LAST_NAME WHERE
GENDER = 'M';
UPDATE EMP_DATA707 SET FULL_NAME = 'MS.'||' '|| FIRST_NAME ||' ' || LAST_NAME WHERE
GENDER = 'F';
SELECT * FROM EMP_DATA707;
SELECT full_name, SUM(total_sal) FROM EMP_DATA707 GROUP BY full_name HAVING
SUM(total_sal) >=(SELECT(AVG( total_sal) FROM EMP_DATA707;
SELECT * FROM EMP_DATA707;;
SELECT * FROM EMP_DATA707;