0% found this document useful (0 votes)
23 views15 pages

SQL Code Ans

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

SQL Code Ans

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

Select * From employees where name Like 'A%'

correct answer:

select * from employees where first_name


like 'A%'
Select city from employee where max(basic salary);
question:my_dict={}
key_list=[100,200,300,400]
value_list=['Bom','LHR','JFK','SIN']
select first_name from employee where dob < '1970-01-01'
select
order first_name asc;
by first_name from employee where
designation="manager" order by
first_name asc;
Recursion
select count (dept.dname)
from dept inner join emp
on dept.depno=emp.depno
where job not in ('manager');
select dept from employees
order by employees asc;
emp where dept=employees
select Ename from emp
where job = 'manager'
order by Ename;
select Ename from emp
where job = 'manager'
order by Ename;
select Dname,count(emp.empno)
from emp inner join dept
onemp.depno=dept.depno
where sales not in (1005,1006)
group by Dname
Order by Dname;
select count(*)
from department;
where department != manager

select count(*)
from department;
where department not in manager
Truncate
Repeated No
Need
No need
select ename from emp
where dob in('01-08-1999')
order by ename asc;

You might also like