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

  Exhibiting all the primary keys and foreign keys

Draw the corresponding GRD, exhibiting all the primary keys and foreign keys. For simplicity, no other attributes nor multiplicity constraints are required.

  The primary causes of the data breach

Case Study: Data Breaches and Regulatory Requirements, Describe the data breach incident and the primary causes of the data breach

  Define conceptual design

Water meters must be replaced when they have been in use for 5 years. We can assume that a meter will never be damaged or become unserviceable and will not be re-assigned to another service address.

  Description of the relationship represented by scatterplot

Produce a scatterplot of Rent vs. Size (square meters of the apartment) for the rental data in rent.

  Entity-relationship diagram

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

  What is the purpose of a disaster recovery plan (drp)

What are the five methods of testing a DRP?

  What do you mean by data base scheme

Database Questions:  What do you mean by data base scheme?  What do you mean by cardinality ratio?   What do you mean by degree of relation?

  Create a context level dfd

Create a context level DFD. You should take your DFD to your tutorial for feedback before starting on the ER.

  Er diagram representing the logical data model

Create an Entity-Relationship Diagram representing the logical data model for the following scenario. It should include all entities, attributes, relationships and keys.

  Translate the conceptual e-r data model for the application

Translate the conceptual E-R data model for the application, developed without explicit consideration of specific user interfaces, into normalized data requirements.

  Assume that you have an array of baseball scores type

suppose that you have an array of baseball scores type integer called scores. the values in the array are ordered from

  Analyse and comprehend a provided er diagram

Analyse and comprehend a provided ER diagram and Database Schema and mplement a database based on the provided ER diagram and Database Schema

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