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

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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