Reference no: EM131585590
Assignment- SQL Exercises

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.
Contracts and property law
: Conduct a case analysis covering Contracts and Property Law surrounding the company Apple.
|
Write a program to compute personal income tax
: write a program to compute personal income tax. Your program should prompt the user to enter the filing status and taxable income and compute the tax
|
Did the authors display the data
: Did the authors display the data?Does the results table stand-alone (i.e., are you able to interpret the study from it?) Why or why not?
|
Given a calculation of both npv
: Given a calculation of both NPV (a dollar amount) and IRR (a % return on investment), which do you think is better and why?
|
Create a basic query that will extract information from book
: Create a basic query that will extract the following information from the books, title id, title, publisher, pubdate, edition and cost. Order by publisher.
|
How many nodes are left in the tree of partial solutions
: How many different binary search trees can be made with three pieces of data? What about with four pieces of data?
|
Problem related to edge crossing
: Try to draw K4 twice, once with at least two edges crossing and once with no edges crossing. Can you do it?
|
Drawing on the information
: Drawing on the information we covered this semester what would you tell her?
|
Define sociocultural theory in your own words
: Individuals do not exist in a vacuum. We are constantly influenced by our surroundings which shape our attitudes, character, and identity.
|