Reference no: EM13921786
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 below.
2. Add three additional columns to the Books table. The attributes are book ISBN, book secondary desc, and purchase price. Provide SQL statement below.
3. Create a query to select all data from the customers table Provide the SQL statement below:
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 below:
5. Find all find all customer orders placed between January 2014 and June 2014. Provide the SQL statement below:
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 below:
7. Update the new fields added to the book table for title id 123. Please provide the SQL statement below:
8. Delete all orders placed before January 2011. Provide the SQL statement below.
What is difference between demand function and demand curve
: What is the difference between a demand function and a demand curve? How will each of the following affect the position of the demand curve for DVD players?
|
Distinguish between normal and inferior goods
: Distinguish between normal and inferior goods. Is it true that a normal good must have an income elasticity that is more than one? Explain.
|
Is product b a substitute or complement for product a
: Calculate the arc cross elasticity between Product B and Product A. Is B a substitute or complement for A? Explain. Does Product A follow the "law of demand"? Explain.
|
At what price is their demand the same
: Assuming that demand does not change from month to month, plot the annual market demand for potatoes. Draw Tracey's and Darren's demand curves for potatoes on one diagram.
|
Customers table provide the sql statement below
: 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. Pleas..
|
Quantity and quality of the companys financial resources
: Your report should be grounded in relevant theory - use the core and recommended reading - at the same time you should consider exploring a new/ innovative idea/venture.
|
How would the court system be different
: It has been estimated that 90 percent of all jury trials in the world take place in the United States. What if the United States did not have the right to trial by jury? How would the court system be different
|
Current state of the organization
: Write a four to six (4-6) page project introduction that documents the current state of the organization, expands upon the information given above, and includes the following:
|
The new corina watch has an expected selling price
: The new Corina watch has an expected selling price per watch of $42, the projected variable cost per unit is $24, and estimated fixed costs per month are $24,120
|