Write a query using the books and publisher tables

Assignment Help Database Management System
Reference no: EM131267495

Practice Exercise

Oracle Joins and Sub Queries

This exercise uses the same tables you have been using for your labs. Sign on to Oracle using your own user id and password.

Follow these steps to complete this exercise:

Write your queries in a script file.

Debug your script file either as you go along or after you finish writing all four queries.

Create a spooled or HTML output file using your script file. Be sure to SET ECHO ON before you create your spool output.

Submit the output file, the script file, and this exercise sheet with your name on it through the Dropbox.

QUERIES

Using the traditional join method, write a query using the ORDERITEMS and BOOK tables to list the order number, book title, and retail amount of the book ordered. Format the retail amount to reflect dollars and cents using the correct function and give the retail amount column and alias of "Cost."

Rewrite the query in #1, only this time, use a NATURAL JOIN operator to create the join. Your output should be the same.

Write a query using the BOOKS and PUBLISHER tables that will show all of the publishers' names and related book titles, even those publishers who do not currently have any books listed in the BOOKS table. HINT: this will require an OUTER JOIN

Write a sub query using the BOOKS and PUBLISHER table to list the ISBN, book title, and the retail price for every book in the BOOKS table published by AMERICAN PUBLISHING. Format the book price to show a dollar sign and two decimal places by using the correct conversion function.

Write a sub query using the ORDERITEMS table that will return only the ISBN of the book that has been bought most often. This process will require you to obtain the maximum total number of books ordered (based on ISBN) and then compare that to total books ordered, grouped by ISBN. Remember that sub queries work from the bottom up so the process described here is starting with the second query, not the first (remember this exercise when doing #5 in the lab).

Reference no: EM131267495

Questions Cloud

Do you believe wal mart is engaging in predatory pricing : Do you believe Wal-Mart is engaging in predatory pricing with its $4 generic drug program?- Do you think that predatory pricing laws should be amended to exclude prescription drugs? Explain.
Plot the power spectral density of this modulated signal : Generate 5000 samples of the digital signal sequence xd (n) and compute and plot the power spectral density of this modulated signal.
Will you market your product or services locally : As you work on the Internet component of your marketing plan, you must decide how to set geographic pricing policies.
Discuss the business applications currently being used : Justify the circumstances in a business situation in which you would use GEOS, LEOS, and MEOS. Discuss the business applications currently being used to support VSAT.
Write a query using the books and publisher tables : Write a query using the BOOKS and PUBLISHER tables that will show all of the publishers' names and related book titles, even those publishers who do not currently have any books listed in the BOOKS table.
Major competitor for windows : Apple's Mac OS is a major competitor for Windows, and many people feel very strongly about choosing one over the other. For this assignment, locate articles online that discuss the differences between Windows and Mac OS.
Is your workspace ergonomically designed : Is your workspace ergonomically designed? Do some research into the field of ergonomics. As a response to this topic, report your findings to the class, be sure to cite your resources. Please do NOT make Wikipedia your primary source. You may use ..
Write a memo that is most likely to produce the results : You are the Director of the legal department of a mid-size software firm. Write a memo that is most likely to produce the results you wish
Creating a website for an organization : You are tasked with creating a website for an organization you are familiar with. Write a 1-page proposal in memo format for your website including the following website requirements:

Reviews

Write a Review

Database Management System Questions & Answers

  Explaining how a relational data solution

Write a two-page executive summary for your boss explaining how a relational data solution can be applied to a current business problem or area for improvement. Assume that your boss knows nothing about relational database theory.

  Create and populate tables within a database using ms access

Departments all have department IDs, department names, and a department description, and a department manager.

  Build the prototype as a distributed system

You should document a UML design for the proposed system. This should include a description of: architecture, requirements and functionality, detailed system design.

  Default rules for enforcing referential integrity constraint

Explain how referential integrity actions can be used to override the default referential integrity constraints.

  Implement in access database using check and unique

These comprise NOT NULL, CHECK, UNIQUE, REFERENTIAL INTEGRITY, and PRIMARY KEY constraints. Are these constraints which we are talking about easy to implement in Access Database?

  Create a database and then secure it

The goal is simple; you are to install the O/S, the Database Server and create a database and then secure it all as best you can.

  Draw an e-r diagram with all appropriate notation

At a given time, a particular species may not have any trees as members, or have one or more trees. Similarly, a given variety may or may not be represented by trees at a given time.

  Planning the implementation of a database application

Discuss the importance of planning the implementation of a database application. What are some of the pitfalls of not planning for the implementation of a database application

  What is a conceptual design process

When designing and developing a database, it is imperative that we utilize a conceptual design process. What is a conceptual design process

  When to use sequence and when to use index

What are sequences and indexes in database tables?

  Create a database using professional principles and standard

create a database using professional principles and standards.

  Design a nested menus interface for a check-in

Design a nested menus interface for a check-in and check-out hotel reservation system that can be used internationally.

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