Write sql queries using between, like and union

Assignment Help PL-SQL Programming
Reference no: EM13930456

Using the database and tables in Week Two, write SQL queries using Between, Like and Union:

· Write a SQL query that joins two tables in the example database and uses BETWEEN to restrict record selection. (Use salary to

restrict the data.)

· Write a SQL query that joins two tables in the example database and uses BETWEEN to restrict record selection. (Use hire

dates to restrict the data.)

· Write a SQL query that joins two tables in the example database and uses LIKE to restrict record selection. (Use telephone

area codes to restrict data.)

· Write a SQL query that joins two tables in the example database and uses LIKE to restrict record selection. (Use age to

restrict data.)

· Write a SQL query that uses UNION of the two tables to produce a third table.

· Print out each query and its results along with storing them on a removable disk to use for a presentation in class. Be

prepared to demonstrate your queries in class.

Using the updated database, write the following queries using the SQL GROUP statement:

· Group employees by job classification: Select the employees' last names and group them by EEO-1 Classification.

· Group employees by salary: Select the employees' last names and group them by salary.

· Group employees by salary within their job classification: Select the employees' last names and group them by salary within

their EEO-1 Classification.

· Select the employees' last names and group them by salary within job titles that are grouped into exempt and non-exempt.

· Finally, print out the SQL statements and the results. Be prepared to demonstrate your results in class.

Using the database and tables from Week Three, write queries using the SQL SELECT statement.

Note: Select all of the data from both of your tables before you perform the following.

· Choose an EEO-1 Classification: Increase all employees' salaries that have: the selected EEO-1 classification by 10%.

· Increase all employees' salaries by 5%.

· Choose an employee from the employee table; delete this employee.

· Print out the SQL statements and the data from both tables in order to show how the data was affected. Be prepared to

demonstrate your results in class.

Using the database and tables from Week Three, write SQL statements to:

· Calculate the average salary for all employees.

· Calculate the maximum salary for exempt employees and the maximum salary for non-exempt employees.

· Calculate the maximum salary for all employees.

· Calculate the minimum salary for exempt employees and the maximum salary for non-exempt employees.

· Calculate the minimum salary for all employees.

· Print out the SQL statements and the results. Be prepared to demonstrate your results in class

Reference no: EM13930456

Questions Cloud

Analysis of a human resource management issue : For this assignment, you are required to provide analysis of a human resource management issue. Balanced arguments in support and in opposition of the statement should be provided.
Emerging digital technology have facilitated social network : You should provide a clear explanation of why and how the emerging digital technologies have facilitated Social Networking as we know it today
Adopt an hrm philosophy : Define the concept of HRM and elaborate on the main characteristics of a HRM approach. Also, explain why organisations should adopt an HRM philosophy
Write with reference to uk laws : Write with reference to UK laws .Do you find the fact that a CIF contract involves a lot of documents problematic or not
Write sql queries using between, like and union : write SQL queries using Between, Like and Union
Calculate sharpe ratios-capm alphas-information ratios : Newton Burt claims risk-adjustment is easy because "Once you have all the data in a spreadsheet, it is very easy to calculate Sharpe Ratios, CAPM alphas, Information Ratios, and Max DD." Is it possible that Mr. New B. is both right and wrong at th..
Are recovered memories accurate for did clients : What is your view? Are recovered memories accurate for DID clients? If DID is a true disorder does the actual accuracy of recovered memories matter in treating the condition?
Reducing total remuneration costs : Suppose you were the manager for this business and charged with reducing total remuneration costs to $24,000,000. What category or categories would you cut? Why? Need to provide the equation(s).
Describe what somatic symptom diagnosis : Describe what somatic symptom diagnosis you would consider giving to Richard. If you need more information to be sure of a diagnostic choice, list the additional questions you would ask.

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