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

  Describe an algorithm you could use that would output each

Given a list containing Province, CustomerName and SalesValue (sorted by Province and CustomerName), describe an algorithm you could use that would output each CustomerName and SalesValue with the total SalesValue per Province.

  Trigger named products_update

Create a trigger named Products_UPDATE. This trigger should insert the old data about the product into the ProductsAudit table after the row is updated. Then, test this trigger with an appropriate UPDATE statement.

  Boutique sold a total of ten gift certificates

The only gift certificates that the boutique sold yesterday were worth either $10 each or $100 each. If the boutique sold a total of ten gift certificates yesterday, how many gift certificates worth $10 did the boutique sell yesterday?

  Describe importance of using sub queries in database system

Describe the importance of using sub queries in a database system. Provide at least two business case scenarios to support your response.

  Create a risk information sheet for five potential risks

Using the sample shown below, create a Risk Information Sheet for at least five potential risks that might be encountered during the conversion. At least three of the five risks you choose should be project management related.

  Prepared statements in php

One of the method of preventing SQL injection is by using prepared Statements in PHP. Using that concept write a snippet you would use to add users to a MySQL database from a web-form.

  In this problem we will consider a movie database with

in this problem we will consider a movie database with three tablesmoviedirectortitle director yearmoviecasttitle actor

  Create a form for the table customer

Create a form for the table CUSTOMER with all fields except Postcode. Choose ‘Tabular' layout - Write an UPDATE Query and increase the prices of products

  Implementation of batch file to create and populate database

You must write a batch file which creates and populates a database of between 4 and 6 tables. The database must be of your own making and should be of an area of interest to you or related to your work. The database must be stored in a folder whic..

  Find the sum of all credits that history major have

Find the most classes taken by students and Find the facility by facility id who teach math class and display the student's ID for all students enrolled in math course by Byrne.

  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.

  Create stored procedures to support retrieval of the data

Create stored procedures to support retrieval of the data from the database, using SELECT statements to accomplish the Aggregate (group) functions.

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