Presentation is loading. Please wait.

Presentation is loading. Please wait.

DML – INSERT COMMAND TABLE - EMPLOYEE ID NAME PLACE DOB SALARY 1 ARUN

Similar presentations


Presentation on theme: "DML – INSERT COMMAND TABLE - EMPLOYEE ID NAME PLACE DOB SALARY 1 ARUN"— Presentation transcript:

1 DML – INSERT COMMAND TABLE - EMPLOYEE ID NAME PLACE DOB SALARY 1 ARUN DUBAI 6000 2 VARUN SHARJAH 8000 3 ALI 9000 Write a command to insert the following values in a table employee. 6, govind,dubai, ,7000. INSERT INTO employee values (6, ‘govind’, ’dubai’, ’ ’,7000);

2 DML – INSERT COMMAND TABLE - EMPLOYEE ID NAME PLACE DOB SALARY 1 ARUN DUBAI 6000 2 VARUN SHARJAH 8000 3 ALI 9000 Write a command to insert the following values in a table employee. 6, govind,dubai. INSERT INTO employee(id,name,place) values (6, ‘govind’, ’dubai’ ) ;

3 DML – UPDATE COMMAND TABLE - EMPLOYEE ID NAME PLACE DOB SALARY 1 ARUN DUBAI 6000 2 VARUN SHARJAH 8000 3 ALI 9000 1 ) Write a command to change the salary of Arun to 9000. UPDATE employee SET salary =9000 WHERE name =‘arun’;

4 DML – UPDATE COMMAND TABLE - EMPLOYEE ID NAME PLACE DOB SALARY 1 ARUN DUBAI 6000 2 VARUN SHARJAH 8000 3 ALI 9000 2 ) Write a command to increment the salary of all the employees by 500. UPDATE employee SET salary =salary +500 ;

5 DML – UPDATE COMMAND TABLE - EMPLOYEE ID NAME PLACE Deptid SALARY 1 ARUN DUBAI 6000 2 VARUN SHARJAH 8000 3 ALI 9000 3 ) Write a command to change the salary to and deptid to 3 of the employees who are staying in dubai. UPDATE employee SET salary = , deptid =3 where place =‘dubai’;

6 DML – UPDATE COMMAND TABLE - EMPLOYEE ID NAME PLACE Deptid SALARY 1 ARUN DUBAI 6000 2 VARUN SHARJAH 8000 3 ALI 9000 4 ) Write a command to change the place to Abudhabi. UPDATE employee SET place = ‘Abudhabi’;

7 DML – DELETE COMMAND TABLE - EMPLOYEE ID NAME PLACE DOB SALARY 1 ARUN DUBAI 6000 2 VARUN SHARJAH 8000 3 ALI 9000 1 ) Write a command to delete all the records of the table employee. DELETE from employee ;

8 DML – DELETE COMMAND TABLE - EMPLOYEE ID NAME PLACE DOB SALARY 1 ARUN DUBAI 6000 2 VARUN SHARJAH 8000 3 ALI 9000 2) Write a command to delete the records of employees staying in dubai. DELETE FROM employee WHERE place =‘dubai’;


Download ppt "DML – INSERT COMMAND TABLE - EMPLOYEE ID NAME PLACE DOB SALARY 1 ARUN"

Similar presentations


Ads by Google