Perform an inner join on tables books and sources.

Assignment Help Database Management System
Reference no: EM13949861

Use the attached WEEK2_ACCESS2000.mdb database

I just need the SQL code, which can be cut and pasted into a word document.

1. Perform an inner join between the BOOKS table and the ORDER_LINES table. Show the titles from the BOOK table and quantity column from the ORDER_LINES table

2. Perform an inner join between tables CUSTOMERS and ORDERS (on the customer_numb column), joining on the customer_numb column. Find the customer first and last name where the order_date is between 11/1/1999 and 1/1/2000.

Order by the order_date.

NOTE: Don't forget to surround the dates with # signs. For example ...WHERE orders.order_date Between #11/1/1999# And #1/1/2000#

HINT: Basically, fill in the blanks below to answer the question.

SELECT ____, _____ (if you'd like, you can select more than just the customer first and last names)
FROM ________ INNER JOIN ___________ ON ____. ____ = ____. _____

WHERE _______ between ______ and _______

ORDER BY _____;

3. Perform an inner join on tables BOOKS and SOURCES. Find the source cities for publisher_name "Random House" using the LIKE command to restrict record selection. I'm purposely not telling you which field to do the JOIN on, but its obviously got to be the same field in each table (there's only one field that meets that criteria. You can click on TOOLS and then RELATIONSHIPS in Access to get a visual look at how the two tables are related (the line connecting the tables shows how the primary and foreign key relate between the two tables & the columns that the line connects are obviously the columns you'd want to do your JOIN on)

4. Perform a Left Outer Join using tables BOOKS and ORDER_LINES. Show all the ISBNs in the BOOKS table and any associated ISBNs in the ORDER_LINES table.

5. Perform a Left Outer Join using tables BOOKS and ORDER_LINES. Show the titles from the BOOKS table that don't have ISBNs that appear in the ORDER_LINES table.

6. Perform a UNION of two tables, customers and sources, selecting customer_state and source_state into one column.

Attachment:- WEEK2_ACCESS2000.zip

Reference no: EM13949861

Questions Cloud

Review the balance sheet and income statement : Stockholder's Equity - what type of stock does your company issue (par value, no par, etc.)? Does it issue Preferred Stock? Does it hold any Treasury Stock?
Metabolic rate during surgery : In induced hypothermia, the temperature of a particular organ, such as the heart, is lowered to reduce the metabolic rate during surgery. Cooling is achieved by circulating blood through a heat exchanger  outside  the  body.
Technical readiness and economic feasibility : Investigate the technical readiness and economic feasibility for each concept. Report your findings in an executive summary and a PowerPoint presentation with at least three references.
Annotated list of food-cooling : A written report providing your recommendations is required, including an annotated list of food-cooling Dos and Don'ts for restaurants supplied by the company with fish.
Perform an inner join on tables books and sources. : Perform a Left Outer Join using tables BOOKS and ORDER_LINES. Show all the ISBNs in the BOOKS table and any associated ISBNs in the ORDER_LINES table.
Closed-loop geothermal heat pump : A vertical, closed-loop geothermal heat pump is under consideration for a new 50,000-ft2 school building. The design capacity is 100 tons for both heating and cooling.
Calculate the moving averages for this time series : From the fourth quarter of 1997 to the first quarter of 1998, revenues declined. What happened on a seasonally adjusted basis? From the first quarter of 1998 to the second quarter of 1998, revenues increased. What happened on a seasonally adjusted ba..
Focus on international issues : Differences between managerial and financial accounting Product costing in manufacturing companies
Introduction of a regenerative heat exchanger : The Brayton refrigeration cycle is modified by the introduction of a regenerative heat exchanger. In the modified cycle, compressed air enters the regenerative heat exchanger at 350 K and is cooled to 320 K before entering the turbine. Determine, ..

Reviews

Write a Review

Database Management System Questions & Answers

  Queries on joins and unions

Provide an explicit JOIN SQL statement that returns the store ID, store name, manager employee first and last name fields, manager employee grade, the city and state fields of the store

  How would you do it and what changes would you make

Describe how you use the database, and how you think the database makes that process easier. In addition, if you could redesign the database you described, how would you do it and what changes would you make

  Data storage and compression

Data Storage and Compression- Imagine that you are serving in the role of director of data center operations for your company, which is currently using redundant sites as backup and manually managing replication and failovers

  Define the digital divide and the impact of the olpc

The Digital Divide and the impact of the OLPC initiative. Write a 1 page summary for each article and include the proper citations.

  Develop a memo that includes data and graphs

Use the integration techniques we worked on in the course to develop a Memo (Word document) that includes data and graphs copied and pasted from your spreadsheet

  Create a relational schema

There are errors in the Company Schema. Identify all of the errors. Using ER Diagramming notation, diagram a relational model that is capable of modeling a e-commerce-based company. It should include the following information

  Create a new table named sportinggoods in database

Create a new table named SportingGoods to contain the columns PartNum, Description, OhHand, Warehouse, and Priced for all rows in which the item class is SG.

  Complete service request scheduling system database

Complete Service Request Scheduling System Database

  Describe the benefits of creating a shared vision

What would be the benefits to the business in the long term? Describe the benefits of creating a ‘shared vision' and culture for individuals? How should this plan be monitored in the future

  A one-to-many relationship is

A one-to-many relationship is a relationship that guarantees that a record is unique. an association between a record and its fields.

  Determine airports with late flights to toronto-database

Determine airports with late flights to Toronto on a big plane. "Late" means departing after 9:00pm; "big" means with capacity 150 passengers or more

  Find and display the total owed for all taxpayers

Exit the program (If the user choices 4, the program will exit. If the user chooses 1, 2 or 3, the program will do what the menu item says it will do, and then the menu will appear again.

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