Provide user friendly decent column names using aliases

Assignment Help PL-SQL Programming
Reference no: EM131344151

Assignment: MS SQL

1. Provide id and last name of employees whose second last character of the last name is ‘e', ‘f', ‘n' or ‘t' in the ascending order of the last name.

There are two tables here:

Table Name: MIDTERM.EMPSUP

eid lname fname salary supervisorID deptid

101 smith john 200000.00 NULL 100

102 wang john 80000.00 101 100

103 johnson nancy 70000.00 101 100

104 johnsen nancy 60000.00 102 200

105 bush paul 150000.00 103 200

106 clinton bob 40000.00 NULL 300

107 clinton steve 500000.00 NULL 300

108 bush judy 600000.00 104 400

109 cook tim 700000.00 108 400

110 zucker mark 800000.00 NULL NULL

Table Name: MIDTERM.DEPENDENT

EmpID DependentID Gender DoB LName FName

101 1 M 1991-10-01 Smith Tom

101 2 F 1994-09-12 Smith Nancy

101 3 F 1998-01-13 Smith Mary

102 1 M 1989-10-04 Johnson Steve

102 2 F 1985-05-01 Carlson Cindy

104 1 M 1996-07-06 Thompson Paul

104 2 M 1997-11-15 Thompson Marc

104 3 F 1992-03-14 Thompson Jo

104 4 M 1997-09-23 Thompson John

105 1 F 1996-02-03 Lee Nancy

2. Provide employee id, last name and department name of all employees in the ascending order of employee id. Make sure you include all employees even if some may not have the departmental information available. Provide user friendly decent column names using aliases. If you need to use the outer join operation, use left-outer join.

3. Provide the Department ID, average, maximum, and minimum of salaries paid for each department. Do not include employees without departmental affiliation. Provide descriptive column names using aliases.

Reference no: EM131344151

Questions Cloud

Present a mini research project : Write a report as well as submit a java or matlab code that can denoise a piece wise constant signal and to characterize the signal using applications that were taught throughout the course such as sample mean.
Cash flow projection for this replacement project : Meade Metals Inc is replacing an old truck with a new one. To make the change Meade will purchase a $200,000 truck that it will depreciate straight-line over ten years to a $40,000 salvage value. Develop a five-year cash flow projection for this repl..
What financial criteria should be considered : List the steps in buying a car.- What financial criteria should be considered? Discuss each briefly.
Identify a new business or new brand entered the market : Identify a new business (local or national) or new brand that has entered the market in the past 2 years. What strategic opportunities do they appear to be taking advantage of? What problems do you believe they may encounter? If you were leading ..
Provide user friendly decent column names using aliases : Provide user friendly decent column names using aliases. If you need to use outer join operation, use left-outer join. Do not include employees without departmental affiliation. Provide descriptive column names using aliases.
Construct a bond that would immunise this target liability : Construct a bond that would immunise this target liability. Compute and verify your strategy indeed immunised the liability when the market interest rates are 3%, 6% and 9%.
Analyze the changing landscape of the health care system : Analyze the changing landscape of the health care system. Differentiate the various places health care is delivered. Analyze what impact cultural demographics have on the health care market
What is the relevant range : What is the relevant range? Relevant range is the range of for which estimates and predictions are expected or likely to be accurate, simple meaning an estimate that may not be useful to level an activity for an actual cost that has not been encounte..
Analyze the effects of unusual or irregular items : Explain the use of the financial statement analysis as a method to address financial issues. Analyze the effects of unusual or irregular items on financial statements

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd