Convert the order year into a decade and count the orders

Assignment Help Database Management System
Reference no: EM13949709

Using the database attached to Lecture 2, let's say you are interested (let's say as the business owner) to see how old the books are that people order (going by their publication date).

First, you'd need to create a query that would convert the order year into a decade and count the orders:

SELECT books.title, CInt(Left([publication_year],3))*10 AS DECADE, order_lines.quantity
FROM books INNER JOIN order_lines ON books.isbn = order_lines.isbn;

...The function "CInt() converts text values into integers (year is stored as a text value).

Anyhow, for participation credit, cut and paste the above SQL into a query in the Lecture 2 database. Name the query BOOK_DECADE.

Then, create the cross tab query following these steps:
in the queries TAB click: New then Cross Tab query wizard then OK

In "View", click "Queries" and then Select query BOOK_DECADE and click NEXT

Add the TITLE to "Selected Field and click NEXT

Highlight DECADE and click NEXT

UNCLICK "Yes, include row sums"

Click Quantity under "Fields:" and click "Sum" under "Functions:" and click NEXT

Then click FINISH

When you are done, cut and paste the SQL (for this query) and paste into a word document.

Attachment:- WEEK2_ACCESS2000.zip

Reference no: EM13949709

Questions Cloud

Write a routine miscellaneous memo requesting action : Directions: Write a work memo as described: Think of an idea you would like to see implemented in your job (e.g., a way to increase productivity, improve service, increase business, or improve working conditions.) Write a routine miscellaneous memo r..
How many francs does lee expect to receive on october first : If the price of the shutters is set using the spot rate as of July 1, how many francs does Lee expect to receive on October 1? How many yen does he expect on October 1?
Mass flow rate of the co2 : Determine (a) the mass flow rate of the CO2, in kg/s, and (b) the mass flow rate of the cooling water, in kg/s.
What information should the proposed system : What information should the proposed system exchange between the retail stores and headquarters?
Convert the order year into a decade and count the orders : Using the database attached to Lecture 2, let's say you are interested (let's say as the business owner) to see how old the books are that people order (going by their publication date).
Two-phase liquid-vapor mixture : Fix the state at the turbine exit: If the state is superheated vapor, determine the temperature, in 8F. If the state is a two-phase liquid-vapor mixture, determine the quality.
What arguments would you make for advance pricing agreement : Suppose you have scheduled a meeting with an IRS representative. What arguments would you make for an advance pricing agreement that would permit the use of the $10 price?
What is the point estimate for the mean reduction : What is the point estimate for the mean reduction in the diastolic reading after 2 weeks on this diet? (Give your answer correct to one decimal place.)
Expansion valve of a refrigeration system : 1. Ammonia enters the expansion valve of a refrigeration system at a pressure of 10 bar and a temperature of 248C and exits at 1 bar. If the refrigerant undergoes a throttling process, what is the quality of the refrigerant exiting the expansion v..

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