Escolar Documentos
Profissional Documentos
Cultura Documentos
use EmployeeProMangt
deptno integer,
dept_name varchar(20),
cityid integer,
cityname varchar(20),
statename varchar(20),
country varchar(20),
project_no integer,
project_name varchar(20),
complete_status varchar(20),
location_id integer,
location_name varchar(20),
address1 varchar(20),
address2 varchar(20),
pin integer,
cityid integer,
emp_no integer,
emp_firstname varchar(20),
emp_lastname varchar(20),
hiredate date,
job varchar(20),
mgr_no integer,
currentprojectno integer,
sal integer,
comm varchar(20),
deptno integer,
comp_locationid integer,
empno integer,
projectno integer,
startdate date,
enddate date
/*1. Select employee detail who are all join on 2008 year*/
select * from tblEmployee where extract(year from hiredate)='2018'
/*2. who are all not yet allocated into the project display empNo,FullName.*/
/*7.display how much we are spending for each project(Only for salary)*/
/*9.In BFS/spamdetection Project Who are woking And their experience detail*/
/*11. The employee who do not live in Chennai display employeeid and name*/
/*12. To get list of employee Who where hired after 12-may-2012(you can give ur own date)*/
/*13. The employee who live in Chennai and bangalore, hyderabad display employeeName and id*/
/*
14. The employee who do not live in Chennai and bangalore, hyderabad display employeeName and
id
*/
select emp_no,concat(emp_firstname,emp_lastname) "NAME" from tblEmployee temp
/*15. Whose name does not start with m And v display the employee name and id with ascending
order*/
/**16. Who has more than 5years experience give 10000 commition*/
/*17. Select history of project for each employee name and id and Projectname */
select emp_no,concat(emp_firstname,emp_lastname)
"NAME",tcl.location_id,tcl.location_name,tcl.address1,tcl.address2,tcl.pin,tcl.cityid from tblEmployee
temp
/*19. Find the name of all employee whose commision is greater than the averge commision*/
select concat(emp_firstname,emp_lastname) "NAME" from tblEmployee where comm >(select
avg(comm) from tblEmployee)
/*20. Display the all employee name who are not working in siruseri/chennai*/