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

  What is the drawback of using end-to-end security

You will find an abundance of materials on this subject within the databases located within IEEE & ACM digital libraries. But don't forget that especially in the Networking technologies RFC's and other related standards are the most authoritative ..

  1 construct a scenario leading to the worst-case

1. construct a scenario leading to the worst-case performance of the fifo buffer replacement policy.2. is it possible

  Compare two non-sequential file structure models

Compare the two non-sequential file structure models. What advantages does the first one have over the second and what advantages does the second have over the first?

  Create an entity-relationship diagram

create an entity-relationship diagram (ERD) from the entity and attributes list for the database project you selected similar to what you did in the Discussion Board this week. Your submission should ensure the following

  Eplain how you can use a cve number to learn more about

1- when you should test web applications for known vulnerabilities? provide at least two examples using the sdlc

  Technical paper on database

This Final Project Paper must be a technical paper on Database topics that have been pre-approved in earlier weeks by your instructor, using knowledge gained in the course. A general paper written for the common IT user or general reader is NOT ac..

  Relational database concepts and applications

Relational Database Concepts and Applications

  Define the database environment chosen

The following assignment is based on the database environment chosen and discussed in the Week Two Individual Assignment. Use a Microsoft Visio diagram to create a detailed ERD using the data specificationsnoted in the Week Two Individual Assignmen..

  Define a data flow in bus information system

Name four attributes that you can use to define a data flow in the bus information system. Name four attributes that you can use to define a data store in the bus information system.

  Identify potential sales and department store transactions

Identify the potential sales and department store transactions that can be stored within the database. Design a database solution and the potential business rules that could be used to house the sales transactions of the department store

  Explain your experiences related to your setup of mysql

write a one to two 1-2 page paper in which youq1. describe your experiences related to your setup of mysql. include any

  Create a database with at least one table with ms acces

Create a database with at least one table with MS Access. Add drop-down lists (combo boxes), validation rules, and input masks as required.

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