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

  Produce a distributed data design for enterprise

Produce a distributed data design for this enterprise. Show data fragmentation/partitioning and replication for each regional database location. Indicate what attributes are in each fragment

  Which of the following is not true about the udp header

A client uses UDP to send data to a server. The data payload is 26 bytes. Assuming no options, what is the percentage overhead considering both UDP and IP headers?

  Develop a use case for each of the major processes

Develop a Use Case for each of the major processes and create the context diagram for the system described

  Benefits of implementing the acme next gen strategy

Describe the benefits of implementing the ACME ‘Next Gen' strategy. Explain why it is important for an airline to use a real- time data warehouse

  Case study-database development

Dual Assessment of Data Quality in Customer Databases,Journal of Data and Information Quality (JDIQ), Volume 1 Issue 3, December 2009, Adir Even, G. Shankaranarayanan.

  A university library database records

A university library database records information about books; for each book, it records the book isbn number (which is unique), and the book name. In addition, it records which books have been checked out

  Oracle has many features for managing and tracking users we

oracle has many features for managing and tracking users. we have discussed user accounts with username password

  Find all non-trivial dependencies

Compute the closure sets of R, find all non-trivial dependencies and what are the candidate keys of R?

  Create three use case diagrams for the new billing

Using the Hillside School Case Study and your stage 1, 2, and 3 projects, develop a decision paper that serves as a system "sign-over" document for system deployment and transfer of responsibility for the newly designed and implemented system to t..

  Recognize and examine any potential physical

you are the information security officer for a small pharmacy that has recently been opened in the local shopping mall.

  Write a second select statement that uses

Write a SELECT statement that returns three columns: EmailAddress, OrderID, and the order total for each customer.

  Explain why log records could be written between the begin

Explain why log records could be written between the begin checkpoint and end checkpoint records.

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