Oracle databases use structured query language (SQL) for writing and querying data. Consider the Table 1...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Oracle databases use structured query language (SQL) for writing and querying data. Consider the Table 1 below: sname Init Job Table 1: Employees dept HR Sales eid dob 2001 Stones S Admin 3-12-1980 2002 Johnson K Salesrep 12-4-1991 2003 Nkosi F Manager Accounting 4-6-1978 2004 Dludla H Trainer Training 20-6-1985 2005 Dlamini J Manager HR 7-9-1976 2006 Pale K Admin HR 16-3-1997 2007 Peter M Trainer Training 14-4-1969 Office location JHB Midrand Pretoria JHB Pretoria Midrand JHB Use the above information and write SQL queries to answer the following questions 1.1 Print a list of all workers, ordered by job and then by age (from young to old). 1.2 Except for Peter M., display all the workers' names and initials. 1.4 Determine all the employees that does not work for the department of sales. (3 Marks) 1.3 Determine the number of workers born before 1990, as well as their job and dates of birth. (3 Marks) 1.5 Determine all the employees that have people working under them. (3 Marks) (3 Marks) (3 Marks) [Sub Total 15 Marks] Oracle databases use structured query language (SQL) for writing and querying data. Consider the Table 1 below: sname Init Job Table 1: Employees dept HR Sales eid dob 2001 Stones S Admin 3-12-1980 2002 Johnson K Salesrep 12-4-1991 2003 Nkosi F Manager Accounting 4-6-1978 2004 Dludla H Trainer Training 20-6-1985 2005 Dlamini J Manager HR 7-9-1976 2006 Pale K Admin HR 16-3-1997 2007 Peter M Trainer Training 14-4-1969 Office location JHB Midrand Pretoria JHB Pretoria Midrand JHB Use the above information and write SQL queries to answer the following questions 1.1 Print a list of all workers, ordered by job and then by age (from young to old). 1.2 Except for Peter M., display all the workers' names and initials. 1.4 Determine all the employees that does not work for the department of sales. (3 Marks) 1.3 Determine the number of workers born before 1990, as well as their job and dates of birth. (3 Marks) 1.5 Determine all the employees that have people working under them. (3 Marks) (3 Marks) (3 Marks) [Sub Total 15 Marks]
Expert Answer:
Answer rating: 100% (QA)
The answer provided below has been developed in a clear step by step manner Step 1 We have created a... View the full answer
Related Book For
Accounting Information Systems
ISBN: 978-0078025495
1st edition
Authors: Vernon Richardson, Chengyee Chang
Posted Date:
Students also viewed these databases questions
-
Petz, an Irish pet food and accessories retailer, is considering expanding into the UK. The initial expansion would be into a Birmingham, a mid-sized city in the UK. Due to the high set-up costs and...
-
Use the tables (Courses and Lessons) below and the employees table in question Write SQL to answer the following questions. 1 Provide the course code and description for any courses having a four-day...
-
What the Act requires of licensees in reapect of the availability of food in newzealand?
-
Consider the following (unoptimized) MIPS assembler program: 2 3 4 5 6 6 - 7 BA 8 0 9 10 10 .text .globl main #int procB (int a, int b) # { # # # # # # } int = 0; c = a + b return C; 44 11 procB: 12...
-
Using data found in Appendix B, estimate the modulus of resilience (in MPa) of cold-rolled 17-7PH stainless steel?
-
It is a hot day, and Bert is thirsty. Here is the value he places on a bottle of water: Value of first bottle..... $7 Value of second bottle.....5 Value of third bottle.....3 Vale of fourth...
-
What particular issues have affected Muslim and Hispanic immigrants?
-
In 1983 Ogle was the owner of two adjoining lots numbered 6 and 7 fronting at the north on a city street. In that year, she laid out and built a concrete driveway along and two feet in front of what...
-
John is currently a class 2 real estate agent. He has become concerned that the agency may not be up-to-date with the Code of Conduct for agents and conflicts of interest. He suspects that the agency...
-
A machine was purchased on 2nd July 2016 for $1,200,000. It was traded in for new one whose price was $1,000,000 on 2nd June 2020 and the company paid $300,000 for this exchange. The policy of the...
-
structure of the major organic product isolated from the reaction of 1-hexyne with Hydrogen chloride (1 mol)
-
Suppose the corporate tax rate is 35%, and investors pay a tax rate of 25% on income from dividends or capital gains and a tax rate of 32.4% on interest income. Your firm decides to add debt so it...
-
Rally, Inc., is an all-equity firm with assets worth $22 billion and six billion shares outstanding. Rally plans to borrow $7 billion and use funds to repurchase shares. The firms corporate tax rate...
-
Kurz Manufacturing is currently an all-equity firm with 27 million shares outstanding and a stock price of $15 per share. Although investors currently expect Kurz to remain an all-equity firm, Kurz...
-
Each of the following examples involves a market researchers need to measure some construct. Devise an appropriate scale for each one. Defend the scale in terms of its scaling assumptions, number of...
-
Revtek, Inc., has an equity cost of capital of 12.6% and a debt cost of capital of 6.3%. Revtek maintains a constant debt-equity ratio of 0.5, and its tax rate is 34%. a. What is Revteks WACC given...
-
ABC Company acquires all of XYZ Company's outstanding shares on January 1, 2021, by paying P340,000 cash, and immediately prepares a consolidated balance sheet. The separate balance sheets of the two...
-
Flicker, Inc., a closely held corporation, acquired a passive activity this year. Gross income from operations of the activity was $160,000. Operating expenses, not including depreciation, were...
-
Both COBIT and ISO 27000 series are security frameworks. Are there significant differences between the two frameworks?
-
Why is XBRL needed in the financial community? In your opinion, why did the Securities and Exchange Commission mandate its usage? What does it provide that was not available before XBRL?
-
An enterprise system is a centralized database that collects and distributes information throughout the firm. What type of financial information would be useful for both the marketing and...
-
You are the senior partner of a large, local audit firm. In reviewing the work of a junior staff member on a compilation engagement for Greasemonkey's Delight Inc., a local autoparts store (in which...
-
The chapter discussed three issues to consider when obtaining evidence using a sample-based audit procedure: a. The number of transactions or items to examine b. The actual transactions or items to...
-
Compare and contrast statistical and non-statistical (judgmental) sampling. Include in your discussion conditions that might make one approach to sampling more desirable than the other.
Study smarter with the SolutionInn App