Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create table and execute following Query. Please send me your query (code) and output of your query. Sal DOB 9/17/1981 5000 7839 7698 Manager
Create table and execute following Query. Please send me your query (code) and output of your query. Sal DOB 9/17/1981 5000 7839 7698 Manager 7839 5/1/1981 2850 7782 Manager 7839 6/9/1981 2450 7886 Janes Manager 7839 4/2/1981 2975 2/20/1981 1250 2/8/1981 1630 3/9/1981 1500 7654 Martin Salesman 7698 7499 Allen Salesman 7698 7844 James Clerk 7698 7900 Turner Clerk 7699 7521 James Salesman 7698 3/11/1981 1250 1902 Ward Analyst 7566 3/12/1981 3/10/1981 950 300 7369 500 7888 Ford Clerk 7902 4/1/1981 Scott Analyst 7566 4/2/1981 Adams Clerk 3000 7876 7788 4/3/1981 1100 EMP NO Ename King Bike Clerk Job President MGR Comm Deptna 10 30 10 30 30 20 20 20 10 20 10 30 10 400 500 1). Find total how many rows are there? Using SQL command 2). Display all data in ascending order by salary 3). Display sal and deptno from emp table group by deptno 4). Display dept no, sum of sal and count of ename by group by dept no (in one sql statement) 5). Display common ename, Comm, sal, deptno, loc and com_name from emp and company detail tables and group by loc and order by ename
Step by Step Solution
★★★★★
3.44 Rating (151 Votes )
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started