Web49. Display the various jobs along with total sal for each of the jobs where total sal is greater than 40000. select job, sum(sal) from emp group by job having sum(sal)>40000; 50. Display the various jobs along with total number of employees in each job. The output should contain only those jobs with more than three employees. WebFeb 6, 2024 · Display department name of the employees who earn maximum salary and have no reporting manager. SELECT DNAME FROM DEPT WHERE DEPTNO IN (SELECT DEPTNO FROM EMP WHERE SAL= (SELECT MAX (SAL) FROM EMP WHERE MGR IS NULL)); ----------------------------------------------------------------------------------------------------
DBMS : Lab Assignment No. 2 Q&A - Blogger
WebQ:40) Display the name of employees along with their annual salary(sal*12). the name of the employee earning highest annual salary should appear first? Ans:select ename,sal,sal*12 "Annual Salary" from emp order by "Annual Salary" desc; Q:41) Display name,salary,Hra,pf,da,TotalSalary for each employee. The out put should be in the order … WebMar 2, 2024 · Display max(sal) and sum(sal) in single select statement. User_X9S6M Mar 2 2024. Name Salary Dname John 40,000 IT Sam 50,000 CS John 30,000 IT. I need a … boat parts nokomis fl
cs-work/sql-problems.sql at master · jcowgill/cs-work · GitHub
WebSQL Macros improve code reuse by factoring out common expressions and statements into reusable components. SQL Macros for scalar and table expressions were introduced in the Oracle database 20c preview release, and were made generally available in Oracle 21c. SQL Macros for table expressions were backport ported to 19c in the 19.6 release update. WebJul 23, 2024 · 59. Write a Query to display the details of emps whose Sal is same as of a) Employee Sal of EMP1 table. b) ¾ Sal of any Mgr of EMP2 table. c) The sal of any … http://oracle-sqlserver.over-blog.com/sql-queries.html boat parts norge