Create new table that will be use to track employee location

Assignment Help PL-SQL Programming
Reference no: EM131870712

Assignment: SQL Exercises

1116_Data-Model.jpg
Use the data model shown above and create the following SQL statements:

SQL Exercises

1. Create a new table that will be used to track employee location. The attributes associated with the table: employee id, location id, location description, street address, city, state, zipcode. Create a new table the attributes listed above. Please identify the primary key. It has a relationship with employees. Provide SQL statement.

2. Add three additional columns to the Books table. The attributes are book ISBN, book secondary desc, and purchase price. Provide SQL statement.

3. Create a query to select all data from the customers table Provide the SQL statement:

4. Create a basic query that will extract the following information from the books, title id, title, publisher, pubdate, edition and cost. Order by publisher. Provide the SQL statement:

5. Find all find all customer orders placed between January 2014 and June 2014. Provide the SQL statement:

6. Create a new query to display all authors with last name of "Smith" and all books by this author. Show author id, author first name, author last name, title id, and title. Group data by title id. Provide the SQL statement:

7. Update the new fields added to the book table for title id 123. Please provide the SQL statement:

8. Delete all orders placed before January 2011. Provide the SQL statement.

Reference no: EM131870712

Questions Cloud

What is the probability that more than 10 parts : What is the probability that more than 10 parts will be defective? Answer to at least four decimal places.
What is the probability that 5 or fewer parts : What is the probability that 5 or fewer parts will be defective? Answer to at least four decimal places.
Individual added unit of capacity : Why do individual unit cost improvements decrease for each individual added unit of capacity?
What specific information should wage rate be broken down : With respect to the wage rates, what specific information should the wage rate be broken down into?
Create new table that will be use to track employee location : Create a new table that will be used to track employee location. The attributes associated with the table: employee id, location id and location description.
What is the overhead application rate for the fabrication : Using machine hours as the base and the step method of allocation, what is the overhead application rate for the Fabrication Department
Demand function for good x : Suppose the demand function for good X is given by Qdx = 15-0.5Px-0.8Py where Qdx is the quantity demanded of good X, Px is the price of good X
Develop a balanced scorecard for levi strauss : Develop a Balanced Scorecard for Levi Strauss - integrating the approach recommended in Why Business Matters to God: And What Still Needs to be Fixed
Behavioral economics impact rational choice : How does behavioral economics impact rational choice? Give an example from your work life.

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