site stats

List the employees who joined after 01/01/82

WebList all employees who earn more than the average salary in their department select e.deptno,sal,ename,avgsal from emp e join (select deptno,avg (sal) avgsal from emp group by deptno) as d on e.deptno=d.deptno where sal > (select avg (sal) from emp ie where ie.deptno=e.deptno) order by d.deptno ; (or) select ename,empno,sal,deptno from emp e …

Top 30+ SQL Queries Questions Asked In Interview - NotesHacker

Web30 dec. 2024 · I want to show employees who joined in each year with a hire_date on the 23 th day of month March. However, when using below SELECT statement it shows only … Web19 aug. 2024 · SQL employee Database: Exercise-81 with Solution [ An editor is available at the bottom of the page to write and execute the scripts.] 81. From the following table, … smart city surveillance cameras https://xavierfarre.com

Software Testing: SQL INTERWIEW QUESTIONS ON SUBQUERIES

WebDISPLAY NUMBER OF EMPLOYEES WHOSE COMMISSION IS MORE THAN SALARY. LIST THE EMPLOYEES WHOSE DAILY SALARY IS GREATER THAN 1500 AND WHO … Web13.List the emps along with their Exp and Daily Sal is more than Rs.100. Ans)SELECT EMPNO,SYSDATE-HIREDATE FROM EMP WHERE SAL/30>100. 14.List the emps who are either ‘CLERK’ or ‘ANALYST’ in the Desc order. Ans) SELECT * FROM EMP WHERE LOWER(JOB) = ‘clerk’ OR LOWER(JOB) = ‘analyst’; Web19 aug. 2024 · 1. Write a query to list the name of all the employees who are working in department number 20. Click me to see the solution 2. Write a query to list the employees name and total salary of a year and yearly salary is … smart city tel aviv

SQL Practice - Employee Database SQL Queires 1-50

Category:Find name of employees hired on different joining date

Tags:List the employees who joined after 01/01/82

List the employees who joined after 01/01/82

1.Display All the Information of the EMP Table? - DocsBay

WebSQL Query Interview Questions. 1. Get all employee details from the employee table? 2. Get First_Name, Last_Name from employee table? 3. Get First_Name from employee table using alias name “Employee Name”? Web10 sep. 2011 · 1 Answer Sorted by: 7 The WHERE part goes after the FROM part. select ename, job, hiredate from emp where hiredate between '20-FEB-81' AND '01-MAY-81' Note that your date literals may not always work if the NLS settings change. It is highly recommended to use to_date () instead.

List the employees who joined after 01/01/82

Did you know?

Web23 jul. 2024 · List the employees who joined in 1981 with the job same as the most senior person of the year 1981. %% sql select * from emp e where 1981 = extract ( year from e … Web18 jan. 2016 · I want to retrieve the records of employees who were joined in first quarter or in the first month. I have tried this but am not getting the right answer... SELECT * …

Web10 apr. 2024 · List employee number and name of employee with the headings as NUMBER and NAME. 4. List the employees working in department 20. 5. List the employees of department 10 and 20. 6. List the employees who joined after 01/01/82. 7. List the employees of dept 10 who joined after 01/01/82. 8. List the salary of all the … Web27. Display empno, ename ,sal and grade from emp database where sal lies between losal and hisal ( NON-Equi Join) 28. Find the name of each employees manager. (refer self join). 29. Display empno, ename, deptno and dname, loc …

Web19 aug. 2024 · SQL employee Database: Exercise-12 with Solution [An editor is available at the bottom of the page to write and execute the scripts.] 12. From the following table, … Weblist the employees who joined after 2 years of first employee of the company and more than blake salary 31.display location of all the employees who reporting to blake select loc from dept where deptno in (select deptno from emp where mgr in (select empno from emp where ename=’blake’)); 32.list all the employees whose job is same as jones and their …

Web17 jan. 2024 · SELECT YEAR (DateofBirth) as Year, Count (1) AS NumberOfEmployees FROM Employee WHERE DateofBirth < '2000-01-01' GROUP BY YEAR (DateofBirth) …

Weblist the employees who does not directly report to president,have commission and salary more than max salary of all the clerk without using null or not null 30. list the employees who joined after 2 years of first employee of the company and more than blake salary 31. display location of all the employees who reporting to blake 32. smart city technology companiesWeb12 jul. 2024 · The best way is to use direct date comparison: select 'January', count (employee_id) from employees where hire_date >= date '2024-01-01' and hire_date < … smart city swot analysisWeb24 jan. 2014 · select * from emp where deptno=30 and hiredate<’01-JAN-1982′; 19. DISPLAY THE DETAILS OF EMP WHO EITHER REPORT TO 7698 OR EARN LESS … smart city techWeb6 feb. 2024 · List the employees who does not directly report to president, have commission and salary more than max salary of all the clerk without using null or not null. … smart city tangselWeb58.Display all the employees who are joined before the last person 59. 59.Display last but one employee record 60. 60.Find third minimum salary in the employee table 61. 61.Display all the employees who are earning more than any of the manager. 62. List employees who joined after 4 years of 1st employee of the company and less than … smart city symbolWebList the emps in the asc order of Designations of those joined after the second half of 1981. A) select * from emp where ... select * from emp where hiredate between ’01-jan-81’ and ’31-dec-81’; List the emps who are joined in the month of Aug ... List the employees who joined in 1981 with the job same as the most senior person of the ... smart city systemeWeb27 mrt. 2024 · SQL JOINS on HR Database: Exercise-13 with Solution. 13. From the following tables, write a SQL query to find all employees who joined on or after 1st … hillcrest housing association arbroath