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

  To determine if the application is calculation properly

Make sure the number of units for each package is numeric, and is not negative.

  Write sql statement to create stored procedure

Write SQL statement which creates stored procedure with one int input parameter. The stored procedure selects the supplierId field and the total of all Count field values for each group of supplierId's from the Part table.

  Create simple reports in an oracle database

laboratory provides practice in the use of SQL commands to create simple reports in an Oracle database

  Database in sql server

Postings from students in online courses. The database should include info on Students, Courses, Semesters, Topics, and Postings. Topics are created by an instructor and are specific to a particular class.

  Create program to enter first and second number

Create a program that enters first and a second number. The first and second number that will be entered should be computed in halves, quarter, double, and square.

  Create the tables department employee computer and vehicle

Create the tables DEPARTMENT, EMPLOYEE, COMPUTER, and VEHICLE. Add the primary key field(s) and at least 2 non-key fields to each table that are relevant to that table (ie. PhoneNumber would be valid for EMPLOYEE).

  Find the most classes taken by students

Find the students by student ID who have taken the most class (counted by enrolled students) and not counting where an ‘F' was the grade - Find the facility by facility id who teach math class.

  Create a view named productsummary

Create a view named ProductSummary that uses the view you created in exercise 4. This view should return some summary information about each product.

  Produce a diagram showing schema

Produce a diagram showing schema and the partial and transitive dependencies in your 1NF. b. Produce a diagram showing table schema and any transitive dependencies in your 2NF

  Name the restored database northwind

Perform a restore of the Northwind database from [YourName]_WinBackup_EM

  Use the data modeler tool to map your entity relationship

Comment on any changes you made to the Relational diagram before mapping the final DDL script. Discuss why you had to make these changes (1 page maximum).

  Write queries in sql if employee works on every project

Write the following queries in SQL: If an employee works on every project located in Houston, then list the employees social security number and name.

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