Write a sql query that uses union of the two tables

Assignment Help PL-SQL Programming
Reference no: EM13947752

Using the database and tables write SQL queries using BETWEEN, LIKE and UNION:

1. Write a SQL query that joins two tables in the example database and uses BETWEEN to restrict record selection (use salaries to restrict the data).

2. 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).

3. 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).

4. Write a SQL query that joins two tables in the example database and uses LIKE to restrict record selection (use zip codes to restrict data).

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

Table: Employee

Social_security_number
Last_name
First_name
Address
City
State
Zip_code
Telephone_area_code
Telephone_number
Email_address
Job_title_code
Hire_date
Salary

Table: Job_title

Job_title_code
Job_title
Exempt_non_exempt_status
Minimum_salary
Maximum_salary

6. Write a SQL INSERT statement (enter ten records into the employee table) and (enter five records into the job_title table

Reference no: EM13947752

Questions Cloud

Explain how the kanban system helps reduce inventories : Explain how the Kanban system helps reduce inventories. What is a constraint? An internal constraint? An external constraint? What are loose constraints? Binding constraints?
Sketch the temperature distribution : Sketch the temperature distribution that exists in the composite under steady-state conditions. Determine the temperature T0 of the insulated surface and the temperature T2 of the cooled surface.
Implement crime prevention programs in all elementary : Disallow companies from asking about a person's criminal history on applications (thereby increasing the likelihood of being hired) -Ask policy makers to disallow capital punishment-Ask policy makers to change sentencing guidelines / "three strikes..
Computing the total thermal resistance : Confirm the above result by computing the total thermal resistance per unit length of tube for a 10-mm-diameter tube having the following insulation thicknesses: 0, 2, 5, 10, 20, and 40 mm. The insulation is composed of cellular glass, and the out..
Write a sql query that uses union of the two tables : Write a SQL query that joins two tables in the example database and uses LIKE to restrict record selection (use zip codes to restrict data).
Role of the nurse to provide health promotion : It is important to promote the professional role of the nurse to provide health promotion and disease preventive care. Collaborating with other health care professionals and consumer groups in the community in redesigning health care can help meet..
How and why the papacy in rome became the center of power : Write a 5-7 page research paper discussing how and why the papacy in Rome became the center of power as it did. What factors contributed to its dominance of Western Europe until the Reformation
Compute the total cost of balfours current inventory policy : Compute the annual ordering cost. Compute the annual carrying cost. Compute the total cost of Balfour's current inventory policy.
What amount of gain or loss would be reported : What amount of gain or loss would be reported in its translated income statement? D. $1,090

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