EMP may be involved. All the five tables Employees, Departments, Locations, Dept, Use table Employees for...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
EMP may be involved. All the five tables Employees, Departments, Locations, Dept, Use table Employees for this Q1. List the employee_id, last name, first name, manager (immediate supervisor) ID for those employees that their first name starts with "Alex". Use table LOCATIONS for this Q2. Sometimes, we do not know how the database stores the literals (either all upper, Initial Capital, or all lower cases). Use the function UPPER, we may make our query case insensitive. In this question, you are required to use this technique. Display the Location's location_id, street_address, postal code, city, country_id for those location(s) that city name spells as Seattle-but we do not know how the literal letters (upper case, lower, or...) stored in database. Use table LOCATIONS for this Q3. When we design tables, it is better to use small unit as a column, not same as in our daily language. For the example of ADDRESS, we usually will define the columns of street address, city, state, state, zip_code, country individually. When we output it as a composite address, we will use the concatenation operator ||, to merge some of these columns according to required format. Another similar case is the people's names defined with columns of first, middle, last names. Display the location ID, and its full address as one string. The format is "street, city, state province, postal code, country_id". Just list those locations they located in 'US' (country_id = 'US'). Use table EMP for this Q4. Display the employees' empno, name (ename), salary (sal) and department ID for those whose immediate supervisor's name (ename) is Blake. You may refer to page 13 of Notelb_Advanced SQL.docx to check the output. Use table Employees and Departments for this Q5 List the department ID, department name and the number (how many) of employees that work in that department. The output will be sorted in order of number of employees in ascending order. Exclude those departments that have no employee yet. Use table Locations and Departments for this Q6 List the department ID, department name, Address (as in question 3, you may re-use some of EMP may be involved. All the five tables Employees, Departments, Locations, Dept, Use table Employees for this Q1. List the employee_id, last name, first name, manager (immediate supervisor) ID for those employees that their first name starts with "Alex". Use table LOCATIONS for this Q2. Sometimes, we do not know how the database stores the literals (either all upper, Initial Capital, or all lower cases). Use the function UPPER, we may make our query case insensitive. In this question, you are required to use this technique. Display the Location's location_id, street_address, postal code, city, country_id for those location(s) that city name spells as Seattle-but we do not know how the literal letters (upper case, lower, or...) stored in database. Use table LOCATIONS for this Q3. When we design tables, it is better to use small unit as a column, not same as in our daily language. For the example of ADDRESS, we usually will define the columns of street address, city, state, state, zip_code, country individually. When we output it as a composite address, we will use the concatenation operator ||, to merge some of these columns according to required format. Another similar case is the people's names defined with columns of first, middle, last names. Display the location ID, and its full address as one string. The format is "street, city, state province, postal code, country_id". Just list those locations they located in 'US' (country_id = 'US'). Use table EMP for this Q4. Display the employees' empno, name (ename), salary (sal) and department ID for those whose immediate supervisor's name (ename) is Blake. You may refer to page 13 of Notelb_Advanced SQL.docx to check the output. Use table Employees and Departments for this Q5 List the department ID, department name and the number (how many) of employees that work in that department. The output will be sorted in order of number of employees in ascending order. Exclude those departments that have no employee yet. Use table Locations and Departments for this Q6 List the department ID, department name, Address (as in question 3, you may re-use some of
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these databases questions
-
List the variable costs per pair of shoes. Make sure to identify and clearly breakout all variable costs on a per pair basis. What is the total overhead per year that Cushion Clogs is currently...
-
Googles ease of use and superior search results have propelled the search engine to its num- ber one status, ousting the early dominance of competitors such as WebCrawler and Infos- eek. Even later...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
In Exercises find the second derivative of the function. f(x) = 8 (x - 2)
-
A parallel beam of Unpolarized light in air is incident at an angle of 54.5 (with respect to the normal) on a plane glass surface. The reflected beam is completely linearly polarized. (a) What is the...
-
Find the transfer function, G(s) = V o (s)/V i (s), for each operational amplifier circuit shown in Figure P2.7. 100 kQ 2 F 500 k2 2 F 100 k2 100 k2 2 F (1)'a 100 k2 2 uF (b)
-
Cotton Pricing Although the abundance and availability of data have increased rapidly due to technology advances, and computers make fancier and fancier visualizations, data visualization itself is...
-
Your audit firm has been the auditor of Cowan Industries for a number of years. The company manufactures a wide range of lawn care products and typically sells to major retailers. In recent years,...
-
2. (2 points) Determine the complexity of the following piece of code, which transposes an n x n matrix. (Give the summation and the result) for (i = 0; i < n = 1; i++) for(j=i+1; j < n; j++) { tmp...
-
The following table shows the cost of tuition at Jensen University for the years 2002-2016. Year, t Cost ($), C 2002 2004 C. 2006 2008 5000 5250 5450 5750 2010 a. Explain why the cost of tuition not...
-
Your first task is to determine whether your firm is in a competitive industry. Based on the following demand function for the firm's product, what would you answer? Q = 50,000 25*P Q is the amount...
-
A review of the accounting records of Rooney Manufacturing indicated that the company incurred the following payroll costs during the month of March. Assume the company's financial statements are...
-
Denver Inc. has an old computer system. The computer originally costs Denver $90,000 and its current book value is $35,000. Answer the following questions: Do not use the account name of book value....
-
1- Discuss the accounting principles and principles that govern accounting treatments for inventory settlements? 2. Preparing a single financial process that explains how to process inventory...
-
When Joanna selected a random sample of clients, she had to be sure the sample satisfied the key requirement so the standard procedures used in hypothesis testing could be applied. What is the key...
-
Cost profile of the Department Description Amount Fixed cost: $450,450.00 Variable cost: $110,000.00 Total cost: $560,450.00 Volume: 5,5000...
-
Read the scenario and provide responses to the questions that follow in the space provided. Your responses must be specific to this scenario not in general terms. You may refer to your Course...
-
In July 2013, cnet.com listed the battery life (in hours) and luminous intensity (i. e., screen brightness, in cd/m2) for a sample of tablet computers. We want to know if screen brightness is...
-
Ray and Maria Gomez have been married 3 years. They live at 1610 Quince Ave., McAllen, TX 78701. Ray works for Palm Oil Corporation and Maria works for the City of McAllen. Maria's Social Security...
-
During the 2012 tax year, Irma incurred the following expenses: Union dues..............................................................$275 Tax return preparation...
-
Yolanda is a cash basis taxpayer with the following transactions during the year: Cash received from sales of products........................................................................$65,000...
-
What are the differences among an onsite team, a virtual team, a task force, and a committee? What are some of the potential differences in dynamics between people in these different groups?
-
What are the benefits of implementing programs to address cultural competence within a health care organization? What are the costs of not implementing such programs?
-
Over the past month, every member of the Intravenous (IV) Therapy Team has complained to you about the IV Team supervisor. Her direct reports, all RNs, agree that she is technically superb. However,...
Study smarter with the SolutionInn App