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

  Design a flowchart or pseudocode

Design a flowchart or pseudocode for the following:A program that accepts a candy name (for example, "chocolate-covered blueberries"), price per pound, and number of pounds sold in the average month, and displays the item's data only if it is a be..

  Write names-e-mail addresses for all customers from table

Show all the data in each of the four tables. Do not show foreign key columns. Write names and e-mail addresses for all customers who have had a stove repair that cost more than $50.

  Write-up thoughts on the tutorial

Write-up thoughts on the tutorial on given tutorials: 2005 Tutorials

  How data collection and data analysis can be overlapping

Summarize the process of coding, classifying, categorizing, and labeling primary patterns as it pertains to qualitative data analysis. Describe how data collection and data analysis can be overlapping activities in qualitative research.

  Need a three-level schema architecture

Need a three-level schema architecture for the Company that provide better security also design a data abstraction

  Describe the normal forms violated in the design

Describe the normal forms violated in the following design and fix them to the third normal form.

  Drawing entities and relationship using crow-s foot notation

These following questions require to you to create entities and their relationship using the Crow's Foot notation suitably.

  How would you define a relational database

How would you define a relational database? What is "normalization" and why do we normalize DBs

  Create a fictional list for job openings

Each student will create an Access 2013 database which will be used to match personal job skills learned in college courses with desired skills for job openings. Students may use their own personal course history, or create a fictional list.

  Normalization procedures suggested by shome and cornell

These are normalization procedures suggested by Shome and Cornell. EQ Tools program permits any of these normalization (or scaling) approaches.

  Products under the traditional costing system

Determine the unit product cost of each of the company's two products under the traditional costing system

  Write an essay about effects of big data

Write an essay about effects of big data.

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