6. Refer to the following tables then answer the questions that follow. EMP (Employee) table: EMPNO...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
6. Refer to the following tables then answer the questions that follow. EMP (Employee) table: EMPNO ENAME JOB 7934 MILLER CLERK 7782 CLARK MANAGER 7839 KING PRESIDENT 7369 SMITH CLERK 7876 ADAMS CLERK 7566 JONES MANAGER 7788 SCOTT ANALYST 7902 FORD ANALYST 7900 JAMES CLERK SALESMAN 7654 MARTIN 7521 WARD 7844 TURNER 7499 ALLEN 7698 BLAKE 7782 23-JAN-12 1300 7839 09-JUN-19 2450 17-NOV-11 5000 7902 7788 17-DEC-18 800 12-JAN-13 1100 7839 02-APR-14 2975 7566 09-DEC-18 3000 7566 03-DEC-18 3000 7698 03-DEC-18 950 7698 28-SEP-16 1250 1400 SALESMAN 7698 22-FEB-17 1250 500 SALESMAN 7698 08-SEP-12 1500 0 SALESMAN 7698 20-FEB-16 1600 300 MANAGER 7839 01-MAY-19 2850 DEPT (Department) table: DEPTNO DNAME MGR HIREDATE SAL COMM DEPTNO LOC 10 ACCOUNTING NEW YORK 20 RESEARCH DALLAS 30 SALES. CHICAGO 40 OPERATIONS BOSTON Code Sample 1 SELECT ename AS EMPLOYEE FROM emp e JOIN dept d ON sal AS SALARY , loc AS LOCATED IN e.deptno d.deptno AND loc IN ('NEW YORK', 'DALLAS') 10 10 IP 20 Explain the effect of the following changes to code sample 1: (1) Append a new line to the statement as follows ORDER BY loc, sal (ii) Replace JOIN with RIGHT JOIN 0 0 0 88- 20 22 20 20 ن لا لا لنا لن بنا دیا 20 30 O 0 30 - 30 O 30 Show the data that would be returned when executing the following SQL statement (code sample 1) and then briefly explain how SQL supports and processes the extraction of data from more than one table. O 30 O O 30 (8) (4) 6. Refer to the following tables then answer the questions that follow. EMP (Employee) table: EMPNO ENAME JOB 7934 MILLER CLERK 7782 CLARK MANAGER 7839 KING PRESIDENT 7369 SMITH CLERK 7876 ADAMS CLERK 7566 JONES MANAGER 7788 SCOTT ANALYST 7902 FORD ANALYST 7900 JAMES CLERK SALESMAN 7654 MARTIN 7521 WARD 7844 TURNER 7499 ALLEN 7698 BLAKE 7782 23-JAN-12 1300 7839 09-JUN-19 2450 17-NOV-11 5000 7902 7788 17-DEC-18 800 12-JAN-13 1100 7839 02-APR-14 2975 7566 09-DEC-18 3000 7566 03-DEC-18 3000 7698 03-DEC-18 950 7698 28-SEP-16 1250 1400 SALESMAN 7698 22-FEB-17 1250 500 SALESMAN 7698 08-SEP-12 1500 0 SALESMAN 7698 20-FEB-16 1600 300 MANAGER 7839 01-MAY-19 2850 DEPT (Department) table: DEPTNO DNAME MGR HIREDATE SAL COMM DEPTNO LOC 10 ACCOUNTING NEW YORK 20 RESEARCH DALLAS 30 SALES. CHICAGO 40 OPERATIONS BOSTON Code Sample 1 SELECT ename AS EMPLOYEE FROM emp e JOIN dept d ON sal AS SALARY , loc AS LOCATED IN e.deptno d.deptno AND loc IN ('NEW YORK', 'DALLAS') 10 10 IP 20 Explain the effect of the following changes to code sample 1: (1) Append a new line to the statement as follows ORDER BY loc, sal (ii) Replace JOIN with RIGHT JOIN 0 0 0 88- 20 22 20 20 ن لا لا لنا لن بنا دیا 20 30 O 0 30 - 30 O 30 Show the data that would be returned when executing the following SQL statement (code sample 1) and then briefly explain how SQL supports and processes the extraction of data from more than one table. O 30 O O 30 (8) (4)
Expert Answer:
Answer rating: 100% (QA)
Code Sample 1 SELECT ename AS EMPLOYEE sal AS SALARY loc AS LOCATED IN FROM emp JOIN dept d ON edept... View the full answer
Related Book For
Fundamentals of Financial Management
ISBN: 978-0324302691
11th edition
Authors: Eugene F. Brigham, ? Joel F. Houston
Posted Date:
Students also viewed these programming questions
-
What was the cash received for interest by the following company in 2 0 2 5 ? Use the information provided below. Type your answer using numbers only - no dollar signs and no commas. The income...
-
The next Java code needs to be converted from static to dynamic (just addd changes in same code): import java.util.Scanner; class MyIntStaticCircularQueue { int capacity = 2; int queue[] = new...
-
Simmel argued a century ago that the pace of life had quickened inexorably: the populace of the metropolis was constantly searching out new entertainments and distractions, but satisfaction was only...
-
To pick up the execution results, one can use the executeQuery() and executeUpdate() methods. The former returns an integer, and the latter returns a ResultSet.(True/False)
-
Consider an RLC circuit with R = 105 , L = 518 mH, and C = 0.200 mF. (a) At what frequency is this circuit in resonance? (b) Find the impedance of this circuit if the frequency has the value found in...
-
Consider the Leverage Unlimited, Inc., zero coupon bonds of 2020. The bonds were issued in 2002 for $100. Determine the yield-to-maturity (to the nearest of 1 percent) if the bonds are purchased at...
-
In 2006, CKX, Inc., a New York sports entertainment company, paid \($50\) million for an 80 percent ownership interest in G.O.A.T. LLC. (G.O.A.T. stands for Greatest of All Time and is a business...
-
Explain the legal basis for a cause of action against an auditor. What are the defenses available to the auditor to rebut such charges? How does adherence to the ethical standards of the accounting...
-
Because many entrepreneurs are innovators usually keep a close eye on the innovations generated by big companies
-
Using the data in the student spreadsheet file Ethan Allen Financials.xlsx (to find the student spreadsheets for Financial Analysis with Microsoft Excel, ninth edition, go to...
-
The current sections of Coronado Inc.'s balance sheets at December 31, 2019 and 2020, are presented here. Coronado's net income for 2020 was $193,000. The income statement included depreciation...
-
Consider the following Go program allowing the parallel processing of two slices of an array. Here, synchronization is achieved with a WaitGroup. Rewrite the program is performing, this time, a...
-
Consider the pseudo-code of the following sorting algorithm. 1 silly sort (ARRAY): 2 if length (ARRAY) < 2: for (i from 0 to length (ARRAY) - 1): array copy (ARRAY) 3 done 4 else: 5 6 7 8 9 10 11 12...
-
Roy Photography Supply, Inc., purchased inventory for $2,300 and paid $175 freight to have the inventory delivered. Roy Photography Supply, Inc., returned $100 of the goods to the seller and later...
-
You just viewed a scene from the film "Dances with Wolves" starring Kevin Costner. The year is 1868 and Kevin Costner's character, Lieutenant John Dunbar, is posted at an army base in the western...
-
SE Bhd manufactures two types of hair dryer. Silent design hair dryer sells for RM100.00 and the standard design hair dryer that sells for RM70.00 per unit. In 2022, the company estimates to incur...
-
Using Excel calculate the NPV, IRR and the MIRR for Projects A and B (Take answers out to the second decimal place... Example 13.45%) (22 pts.) Project A WACC 13.0% Project B WACC =13.0% = Year CF...
-
1. What is the semi-annually compounded interest rate if $200 accumulates to $318.77 in eight years? Answer in percentage with two decimal places. 2. What is the quarterly compounded interest rate if...
-
Cost of common equity The Bouchard Companys EPS was $6.50 in 2005, up from $4.42 in 2000. The company pays out 40 percent of its earnings as dividends, and its common stock sells for $36. a....
-
Smittys Home Repair Company, a regional hardware chain that specializes in do-it-yourself materials and equipment rentals, is cash rich because of several consecutive good years. One of the...
-
Click on the NEWS tab to see the recent news stories for the company. Have there been any recent events impacting the companys stock price, or have things been relatively quiet? Access the Thomson...
-
Given the following data for Scurry Company, what is the cost of goods sold? a. $500,000. c. $800,000. b. $600,000. d. $950,000. Beginning inventory of finished goods Cost of goods manufactured...
-
Boston Furniture Company manufactures several steel products. It has three production departments: Fabricating, Assembly, and Finishing. The service departments include Maintenance, Material...
-
John Sheng, cost accountant at Starlet Company, is developing departmental manufacturing overhead application rates for the companys tooling and fabricating departments. The budgeted overhead for...
Study smarter with the SolutionInn App