Database 6
Database 6
6 : Execute
SQL Queries using Arithmetic,
Comparison , Logical set, Between and
Like operators,
Table created.
1 row(s) inserted.
insert into emp6 values(12,'ajay',12,'ce',12,30000,'12-sep-2013')
1 row(s) inserted.
insert into emp6 values(13,'ahish',13,'me',13,40000,'13-sep-2013')
1 row(s) inserted.
insert into emp6 values(14,'vijay',14,'ej',14,50000,'14-sep-2013')
1 row(s) inserted.
insert into emp6 values(15,'ranvijay',15,'ee',15,60000,'15-sep-2013')
1 row(s) inserted.
EMP_NAME INCREMENTED_SALARY
jay 4000
ajay 6000
ajay 6000
ahish 8000
vijay 10000
ranvijay 12000
CSV Export
b) select empno , emp_name from emp6 where salary<=50000 and salary>=25000
EMPNO EMP_NAME
13 ahish
14 vijay
12 ajay
c) select*from emp6 where salary >(select salary from emp6 where emp_name='ahish')
CSV Export
1 row(s) inserted.
insert into emp6 values(12,'ajay',12,'ce',12,30000,'12-sep-2013')
1 row(s) inserted.
insert into emp6 values(13,'ahish',13,'me',13,40000,'13-sep-2013')
1 row(s) inserted.
insert into emp6 values(14,'vijay',14,'ej',14,50000,'14-sep-2013')
1 row(s) inserted.
insert into emp6 values(15,'ranvijay',15,'ee',15,60000,'15-sep-2013')
1 row(s) inserted.
Table created.
c) select*from dept6
EMP_NAME DEPT_NO LOCATION JOB_ID
jay 11 katraj 11
ajay 12 mcroad 12
ahish 17 kkmarket 17
shreyas 18 padmavati 18
ranvijay 19 ambegaon 19
5 rows returned in 0.00 seconds CSV Export