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

  Write a script that creates and calls a stored procedure

Write a script that creates and calls a stored procedure named spInsertProduct that inserts a row into the Products table. This stored procedure should accept five parameters.

  Provide sql statements to create the database

Provide SQL statements to create the database and populate it with sample data (at least four rows per table).

  Write functions to perform the following tasks

Write a function, called ‘binarySearch', implements a binary search. This function should take three parameters.

  Write sql commands to implement profile

Write SQL commands which would implement this profile. Next, write query that would list profile, profile resource name, and limit value for the new profile.

  Database analysis and design

Implement the initial database design for the Customer Relationship Management VIEW as described below in your selected RDBMS. You need to create the Entity-Relationship model from your normalization and Database analysis, define tables, primary k..

  Find persons telephone number in shortest amount of time

Given an alphabetically sorted list of 500,000 people's names and telephone numbers, describe an algorithm that you could implement that would allow you to find a given person's telephone number in the shortest amount of time.

  Create a problem definition for williwonk

Create a problem definition for Williwonk's, as described in Problem 1. Estimate the weights of importance. Include at least one requirement and one constraint.

  Alter the employee table to establish a foreign key

Alter the Employee table to establish a foreign key between Employees and Departments.

  Implement the tables in oracles 11g relational database

Explain the security mechanisms available for a database and how the data will be protected.

  Script that creates and calls a function named

Write a script that creates and calls a function named fnDiscountPrice that calculates the discount price of an item in the OrderItems table (discount amount subtracted from item price). To do that, this function should accept one parameter for th..

  Provide four queries to answer questions asked by end users

Explain how you will go about developing this database. Provide at least four queries that answer some of the questions asked by the end users.

  Design a working prototype of the proposal

Design a working prototype of the proposal. You will be required to utilize SQLite Database - Provide a brief synopsis analyzing the detailed requirements of your prototype database design.

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