Create a query using the traditional join method

Assignment Help Database Management System
Reference no: EM13771991

Step 1

Using the BOOKS and PUBLISHER tables, create a query using the traditional join method that will return a list containing the book title, publisher contact person, and publisher phone number for all publishers whose publisher name starts with an ‘R'.

STEP 2:

Using the DUAL table, create a query that will return the day of the week, hour, minutes, and seconds of the current date setting on a computer. The day should be in all upper case.

STEP 3:

Using the BOOK_CUSTOMER and BOOK_ORDER tables, create a query using the NATURAL JOIN method that will return a list containing the customer first name and last name and the order number for all orders that have been shipped. Give the customer name column an alias of "Customer Name" and order the output by the customer number in the BOOK_ORDER table in ascending order.

STEP 4:

Using the BOOK_ORDER table, create a query that will return the order number, order date, shipping address, city, state, and zip code for all orders going to Atlanta or Austin. Format the order date to display as Month DD, YYYY and give the column an alias of "Date Ordered". Be sure the month begins with a capital letter.

STEP 5:

Using the BOOK_ORDER table, create a query using the correct function to return the order number, the date ordered, the date shipped, and a column representing the number of months between the two dates for all columns where a date shipped exists. Format the number returned from the function to display only two decimals, and give the column an alias of "Months Between".
NOTE: Be sure that all of the numbers in the fourth column are positive numbers.

STEP 6:

Using the correct tables in your schema, create a query using either join operation that will list the title of each book and author name(s). Give the title column an alias of "Book Title". Sort the results by title and then by author last name.

STEP 7:

Using the BOOKS table, create a query that will return the book title, cost, and retail price for all books with a title starting with the letter ‘H'. Use the correct conversion function to format the cost and retail columns to show dollars and cents with a dollar sign (e.g., a price of $25 would display $25.00 in the result set).

STEP 8:

Using the BOOK_ORDER, ORDER_ITEMS, and BOOKS tables, create a query using an OUTER JOIN operation that will list the book title, order date, and order number for all books in the BOOKS table. Order your output in descending order by ORDER_ITEMS.BOOKID. There are three books that have never been ordered which should show up at the top of your listing.

STEP 9:

Using the correct tables, create a query using the traditional join operation that will list the customer first and last name, book title, and order date (formatted as MM/DD/YYYY with an alias of "Order Date") for all the customers who have purchased books published by 'PRINTING IS US'.

STEP 10:

Using the BOOKS and ORDER_ITEMS table, write a query using the correct Relational Set Operator that will show all of the Book IDs in the BOOKS table that have not been ordered.

STEP 11:

Using the BOOK_CUSTOMER, BOOK_ORDER, ORDER_ITEMS, and BOOKS tables, create a query using traditional join conditions based on comparisons between primary and foreign keys that will list the customer number, first and last name, and book title. Limit your listing to only those books in the ‘FITNESS' category.

STEP 12:

Using the BOOKS, ORDER_ITEMS, and BOOK_ORDER tables, create a query that will list the title, retail, quantity, and order date for all books ordered after April 30, 2009.

STEP 13:

Using the correct tables, create a query using either join operation you wish that will list the order id, order date, quantity ordered, and retail price for every book that has been ordered. Format the date as MM/DD/YYYY with an alias of "Order Date" and format the retail price column using the correct function to show dollars and cents with a dollar sign ( $ ) and a column alias of "Retail".

Reference no: EM13771991

Questions Cloud

Molecular motion in a gas : The relationship between voltage, current, and resistance in a metallic wire
What is the economic ordering quantity : 1. What is the economic ordering quantity? 2. How many orders will be placed during the year?
Should nevada implement the new method : 1. Nevada's engineers have found a way to reduce equipment manufacturing time. The new method would cost an additional $60 per unit and would allow Nevada to manufacture 20 additional units a year. Should Nevada implement the new method? Show your ca..
Research a product liability case-the hazard or damage cause : Research a product liability case and share it with the class. Discuss the issues, including the hazard or damage caused by the product, and the compensation. Please connect your discussion with the health and safety theories and practices you are..
Create a query using the traditional join method : Using the BOOKS and PUBLISHER tables, create a query using the traditional join method that will return a list containing the book title, publisher contact person, and publisher phone number for all publishers whose publisher name starts with an ‘..
Percentage return on the position : A speculator sells a stock short for $55 a share. The company pays a $2 annual cash dividend. After a year has passed, the seller covers the short position at $45. What is the percentage return on the position (excluding the impact of any interest..
Using the indirect method, compute the net cash : 1. Using the indirect method, compute the net cash provided by operating activities for Year 2.2. Prepare a statement of cash flows for Year 2.3. Compute the free cash flow for Year 2.4. Briefly explain why cash declined so sharply during the year.
London-based producer of a patented anti-microbial dental : Howorth Dental Products is a London-based producer of a patented anti-microbial dental floss. All raw material is introduced at the beginning of the production process, but considerable processing time is needed to create the anti-microbial qualities..
General principles for design of warning labels : Select a warning label. Evaluate it with respect to general principles for design of warning labels. How could you improve the design?

Reviews

Write a Review

Database Management System Questions & Answers

  Create a new test02 class

Write a toString method that will return a String containing all the relevant data for each of your objects.

  Give preliminary information on data requirements for gis

You have been requested to give preliminary information on the data requirements for a GIS which is to be used to hold inventory of continental scale vegetation maps for coarse scale land surface

  Consider the following database that contains information

consider the following database that contains information about people vacation locations and when those people visited

  List different entities-objects-logical processes-data flows

List the different entities or objects, logical processes, data flows, and data stores that are involved, starting from the time you submitted your time sheet.

  Applying data mining techniques to available data

Applying Data Mining techniques to publically available data produced by both Transpower and the National Institute of Water and Atmospheric Research (NIWA), from which a range of visualizations will be generated.

  Write a select statement that answers this problem

Write a SELECT statement that answers this problem - Which products have a list price that's greater than the average list price for all products?

  In your position of it manager for tbwi you are now tasked

in your position of it manager for tbwi you are now tasked with managing the organizations data including making it

  Sales transaction in retail clothing

Examine different sales transactions. Design a context diagram and a level-0 diagram that represent the selling system at the store.

  Design an expanded entity relationship model diagram

You are to design an Expanded Entity Relationship Model Diagram. An example of the Expanded Entity Relationship Model Diagram is seen in Figure 3.27 on page 89.

  Why might an organization select mysql over sql server

Large-scale database are available on several platforms. Among those are MySQL, SQL Server, and Oracle. Other than cost, why might an organization select MySQL over SQL Server or Oracle

  Statements for the subsequent queries of the database

Write the statements for the subsequent queries of the database - Find Beth' s home state.

  How database solve multiple concurrent data management issue

Investigate how databases solve multiple concurrent data management issues comprising lost updates, deadlocks and different kinds of lock management styles.

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