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

  Show a structured query language query

Show a Structured Query Language (SQL) query, and screenshot your results in a Microsoft Word document. For Part 2, provide explanations and screenshots documenting

  Select distinct cmdclient

SELECT DISTINCT CMDclient.'Client Code SCA' as GuestCode, CMDextras.ArrivalDate as arr, CMDextras.DepartureDate as dep, CMDapr.FirstName as fname, CMDapr.Surname as lname

  Create sql statements for the scenarios

Create SQL statements for the scenarios. Your response should include SQL statement, output and any other assumptions you have made to arrive at the solution.

  Create tables using sql ddl

Write the SQL DDL to create the database that contains each of the relations shown in the above ERD. You will need to provide - Your DDL code for each table that you create and a screenshot showing each table that is created.

  You have been asked to design a data model

Law Associates is a large legal practice based in Sydney. You have been asked to design a data model for the practice based upon the following specification

  Business transaction that involves multiple tables

Write a business transaction that involves multiple tables and implement it using PL/SQL. Use at least one Function or Procedure in your code. The transaction may retrieve data from the database and display the result, or it may insert/update data in..

  Draw an entity-relationship diagram

Draw an Entity-Relationship Diagram (ERD) for the data storage requirements of a business described in the case study and Data Model Transformation.

  Relational model and integrity constraints

Answer all questions with reference to the STUDENT, COURSE, and GRADE tables presented below for which the primary keys, foreign keys, and referential integrity constraints are specified.

  Decomposition for r = (a,b,c,d,e )

Give a good decomposition for R = (A,B,C,D,E ) with the following functional dependencies:

  Write sql statement to create view

Write a SQL Statement to create a View called vwEmployeeTerritories that will do the following: Return all Employees and their Territories (use INNER JOIN).

  Create qrycustomersm that selects all customers

Write the SQL below that would display all Customers whose first name begins with the letter J. Your query should display the FirstName, LastName, Phone, and MembershipStatus fields from the tblMember table.

  Suggest three ddl and three dml commands

Describe a specific scenario, situation, or application where using a foreign key would be necessary and explain your reasons, including the characteristics of the data, that necessitate the foreign key.

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