SlideShare a Scribd company logo
1 of 3
Create a new database named Barista. 
1. In the new database, create a new table 
named Product with the following fields: 
o ProductID: a 4 character long text field (make it 
the primary key) 
o CoffeeCode: a 4 character long text field 
o Price: a currency field 
o Decaf: a 1 character long text field (make the 
default value "D") 
o BackOrdered: a Yes/No field 
2. Add the following data to the Product table: 
Note: Checking a box in a "Yes/No" field is equivalent 
to "Yes". Unchecked is equivalent to "No". 
2316 BRUM 8.99 Yes 
9754 HAZL 40.00 D Yes 
9309 COCO 9.99 D No 
3. Add a new field after the CoffeeCode field in the 
Product table. It should be named WeightCode. Make 
it a 1 character long text field. 
4. Add the following weight codes to the items with the 
following ProductIDs:
o ProductID: 2316, WeightCode: A 
o ProductID: 9309, WeightCode: A 
o ProductID: 9754, WeightCode: E 
5. Add the following record to the Product table: 
o ProductID: 9729 
o CoffeeCode: COLS 
o WeightCode: E 
o Decaf: D 
o Price: 39.75 
o BackOrdered: Yes 
6. Close Product table. 
7. Using the Product table, create a query to find the 
ProductID, WeightCode, and Price where CoffeeCode 
is equal to "BRUM". Have the query sort the results in 
descending order by price, and don't show the 
CoffeeCode field. Name the query BrumCoffees.
8. Create a new query using design view 
o display the ProductID, coffee code.Decaf and Price 
fields 
o sort the data in ascending order based on the 
CoffeeCode field 
o have the query only display records where the 
Price > 35.00 
o save the query with the name CoffeesPrices

More Related Content

Similar to 9)creating simple query

Exp19_Access_Ch02_Capstone - International Foodies 1.0Projec.docx
Exp19_Access_Ch02_Capstone - International Foodies 1.0Projec.docxExp19_Access_Ch02_Capstone - International Foodies 1.0Projec.docx
Exp19_Access_Ch02_Capstone - International Foodies 1.0Projec.docxdelciegreeks
 
GO16_AC_VOL1_GRADER_CAP_AS - Inventory Supplies (completed solution)
GO16_AC_VOL1_GRADER_CAP_AS - Inventory Supplies (completed solution)GO16_AC_VOL1_GRADER_CAP_AS - Inventory Supplies (completed solution)
GO16_AC_VOL1_GRADER_CAP_AS - Inventory Supplies (completed solution)NinaDobrev22
 
2h1_Biology_Supplies (solution)
2h1_Biology_Supplies (solution)2h1_Biology_Supplies (solution)
2h1_Biology_Supplies (solution)JackCandtona
 
Auric Systems Access 2013 ProjectCreate all records using info.docx
Auric Systems Access 2013 ProjectCreate all records using info.docxAuric Systems Access 2013 ProjectCreate all records using info.docx
Auric Systems Access 2013 ProjectCreate all records using info.docxikirkton
 
Computer Assignment #2 Company Database GuideCustomer Table Da.docx
Computer Assignment #2 Company Database GuideCustomer Table Da.docxComputer Assignment #2 Company Database GuideCustomer Table Da.docx
Computer Assignment #2 Company Database GuideCustomer Table Da.docxzollyjenkins
 
Devry bis 155 final exam guide
Devry bis 155 final exam guideDevry bis 155 final exam guide
Devry bis 155 final exam guideuopassignment
 
BIS 155 PAPERS Inspiring Innovation--bis155papers.com
BIS 155 PAPERS Inspiring Innovation--bis155papers.comBIS 155 PAPERS Inspiring Innovation--bis155papers.com
BIS 155 PAPERS Inspiring Innovation--bis155papers.comsachin10101
 
BIS 155 PAPERS Education Counseling--bis155papers.com
BIS 155 PAPERS Education Counseling--bis155papers.comBIS 155 PAPERS Education Counseling--bis155papers.com
BIS 155 PAPERS Education Counseling--bis155papers.comvenkat60036
 
CIS 310 ACCESS AssignmentObjective of this assignment is to pr.docx
CIS 310 ACCESS AssignmentObjective of this assignment is to pr.docxCIS 310 ACCESS AssignmentObjective of this assignment is to pr.docx
CIS 310 ACCESS AssignmentObjective of this assignment is to pr.docxclarebernice
 
Devry bis-155-final-exam-guide
Devry bis-155-final-exam-guideDevry bis-155-final-exam-guide
Devry bis-155-final-exam-guideshyaminfo104
 

Similar to 9)creating simple query (11)

Exp19_Access_Ch02_Capstone - International Foodies 1.0Projec.docx
Exp19_Access_Ch02_Capstone - International Foodies 1.0Projec.docxExp19_Access_Ch02_Capstone - International Foodies 1.0Projec.docx
Exp19_Access_Ch02_Capstone - International Foodies 1.0Projec.docx
 
GO16_AC_VOL1_GRADER_CAP_AS - Inventory Supplies (completed solution)
GO16_AC_VOL1_GRADER_CAP_AS - Inventory Supplies (completed solution)GO16_AC_VOL1_GRADER_CAP_AS - Inventory Supplies (completed solution)
GO16_AC_VOL1_GRADER_CAP_AS - Inventory Supplies (completed solution)
 
2h1_Biology_Supplies (solution)
2h1_Biology_Supplies (solution)2h1_Biology_Supplies (solution)
2h1_Biology_Supplies (solution)
 
Auric Systems Access 2013 ProjectCreate all records using info.docx
Auric Systems Access 2013 ProjectCreate all records using info.docxAuric Systems Access 2013 ProjectCreate all records using info.docx
Auric Systems Access 2013 ProjectCreate all records using info.docx
 
Computer Assignment #2 Company Database GuideCustomer Table Da.docx
Computer Assignment #2 Company Database GuideCustomer Table Da.docxComputer Assignment #2 Company Database GuideCustomer Table Da.docx
Computer Assignment #2 Company Database GuideCustomer Table Da.docx
 
Tableau 6.pptx
Tableau 6.pptxTableau 6.pptx
Tableau 6.pptx
 
Devry bis 155 final exam guide
Devry bis 155 final exam guideDevry bis 155 final exam guide
Devry bis 155 final exam guide
 
BIS 155 PAPERS Inspiring Innovation--bis155papers.com
BIS 155 PAPERS Inspiring Innovation--bis155papers.comBIS 155 PAPERS Inspiring Innovation--bis155papers.com
BIS 155 PAPERS Inspiring Innovation--bis155papers.com
 
BIS 155 PAPERS Education Counseling--bis155papers.com
BIS 155 PAPERS Education Counseling--bis155papers.comBIS 155 PAPERS Education Counseling--bis155papers.com
BIS 155 PAPERS Education Counseling--bis155papers.com
 
CIS 310 ACCESS AssignmentObjective of this assignment is to pr.docx
CIS 310 ACCESS AssignmentObjective of this assignment is to pr.docxCIS 310 ACCESS AssignmentObjective of this assignment is to pr.docx
CIS 310 ACCESS AssignmentObjective of this assignment is to pr.docx
 
Devry bis-155-final-exam-guide
Devry bis-155-final-exam-guideDevry bis-155-final-exam-guide
Devry bis-155-final-exam-guide
 

More from panks172

15) hospital practise
15) hospital practise15) hospital practise
15) hospital practisepanks172
 
14)toyshop practise
14)toyshop practise14)toyshop practise
14)toyshop practisepanks172
 
12)adding tab controls to forms
12)adding tab controls to forms12)adding tab controls to forms
12)adding tab controls to formspanks172
 
11)recap forms and queries
11)recap forms and queries11)recap forms and queries
11)recap forms and queriespanks172
 
10)college
10)college10)college
10)collegepanks172
 
8)adding buttons
8)adding buttons8)adding buttons
8)adding buttonspanks172
 
7)hiding fields in form
7)hiding fields in form7)hiding fields in form
7)hiding fields in formpanks172
 
5)lab activity2 ms access
5)lab activity2 ms access5)lab activity2 ms access
5)lab activity2 ms accesspanks172
 
4)lab activity2 ms access
4)lab activity2 ms access4)lab activity2 ms access
4)lab activity2 ms accesspanks172
 
2)lab activity1 ms access
2)lab activity1 ms access2)lab activity1 ms access
2)lab activity1 ms accesspanks172
 

More from panks172 (11)

15) hospital practise
15) hospital practise15) hospital practise
15) hospital practise
 
14)toyshop practise
14)toyshop practise14)toyshop practise
14)toyshop practise
 
13)actors
13)actors13)actors
13)actors
 
12)adding tab controls to forms
12)adding tab controls to forms12)adding tab controls to forms
12)adding tab controls to forms
 
11)recap forms and queries
11)recap forms and queries11)recap forms and queries
11)recap forms and queries
 
10)college
10)college10)college
10)college
 
8)adding buttons
8)adding buttons8)adding buttons
8)adding buttons
 
7)hiding fields in form
7)hiding fields in form7)hiding fields in form
7)hiding fields in form
 
5)lab activity2 ms access
5)lab activity2 ms access5)lab activity2 ms access
5)lab activity2 ms access
 
4)lab activity2 ms access
4)lab activity2 ms access4)lab activity2 ms access
4)lab activity2 ms access
 
2)lab activity1 ms access
2)lab activity1 ms access2)lab activity1 ms access
2)lab activity1 ms access
 

9)creating simple query

  • 1. Create a new database named Barista. 1. In the new database, create a new table named Product with the following fields: o ProductID: a 4 character long text field (make it the primary key) o CoffeeCode: a 4 character long text field o Price: a currency field o Decaf: a 1 character long text field (make the default value "D") o BackOrdered: a Yes/No field 2. Add the following data to the Product table: Note: Checking a box in a "Yes/No" field is equivalent to "Yes". Unchecked is equivalent to "No". 2316 BRUM 8.99 Yes 9754 HAZL 40.00 D Yes 9309 COCO 9.99 D No 3. Add a new field after the CoffeeCode field in the Product table. It should be named WeightCode. Make it a 1 character long text field. 4. Add the following weight codes to the items with the following ProductIDs:
  • 2. o ProductID: 2316, WeightCode: A o ProductID: 9309, WeightCode: A o ProductID: 9754, WeightCode: E 5. Add the following record to the Product table: o ProductID: 9729 o CoffeeCode: COLS o WeightCode: E o Decaf: D o Price: 39.75 o BackOrdered: Yes 6. Close Product table. 7. Using the Product table, create a query to find the ProductID, WeightCode, and Price where CoffeeCode is equal to "BRUM". Have the query sort the results in descending order by price, and don't show the CoffeeCode field. Name the query BrumCoffees.
  • 3. 8. Create a new query using design view o display the ProductID, coffee code.Decaf and Price fields o sort the data in ascending order based on the CoffeeCode field o have the query only display records where the Price > 35.00 o save the query with the name CoffeesPrices