0% found this document useful (0 votes)
15 views8 pages

SQL Commands

Uploaded by

jayp59451
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views8 pages

SQL Commands

Uploaded by

jayp59451
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

SELECT * FROM CLUB WHERE JOB LIKE

‘SALESMAN’;

alter table empl add bonus decimal(8,2);


update employee set bonus=sal+sal*0.1;

Select DISTINCT sports from club;


Select * from club ORDER BY coachname DESC;

SELECT * FROM empl WHERE sal>2500;


SELECT * FROM job WHERE RETD_DATE>2017-1-
1;

Select * from club ORDER BY coachname ;


Select * from teacher,xiic where
teacher.section=student.section;

Select * from empl where ename like ‘s%’;


Insert into empl set
values(8777,’Jonas’,’Manager’,8009,’1990-12-
14’,8000,40,20);

delete from emp1 where empid=8499;


Select ename,sal,sal*0.1 as ‘BONUS’ , sal+sal*0.1
as ‘TOTAL SALARY’ from empl;

Alter table empl drop BONUS;


Select ename,job,sal from empl where sal>1500;

You might also like