Getting Started with MS Access and Pivot Tables

Parth Acharya
Parth AcharyaProduct Manager @ Amazon at Amazon
Getting Started With MS
Access
Introduction to MS Access
@_ParthAcharya

Steps to create a query
• Understanding the requirements of the query
• Gathering the tables required for the query
• Creating Query
• Set the query
• Run the query
@_ParthAcharya

Understanding the query requirements
• Each query requires certain fields
Let us understand the query requirements for the following queryThe query should display the following information: employee ID, employee first name, employee last name,
employee address, employee salary, department name.
For the given query, the requirements is:
Employee ID
Employee First Name
Employee last name
Employee address
Employee salary
Department name
@_ParthAcharya

Gathering the tables
required for the query

• Each field in the previous slide comes from some of the given tables

Tip: You can also double click the table
names to see the fields and data.
@_ParthAcharya

Creating Query
with the gathered tables

1. Click on Query Design

2. Select the tables required for
query and click on ‘Add’
@_ParthAcharya

Creating Query (Cont.)
with the gathered tables

1. Once you add the tables

2. Create Relationship

To connect two fields, click on one of the fields and drag your mouse to the other field
Go to next slide for tips on creating relationship between tables
@_ParthAcharya

Tips
Create Relationship between tables
• Look out for a primary key
(fields with a key on its left) in one of the tables to
create a relationship with a field in the other table.
• Look out for data type match. The fields connecting two tables should have the same data type.
• We will look at three fields, two from the Department table and one from the Employee table.

Here, the DepartmentID field from
the table ‘Department’ has the
same data type as the Department
field in the ‘Employee’ table.
Note that, the Department field in
the ‘Department’ table has
different data type than the
Department field in the ‘Employee’
table. And hence, you shall not
connect them, even though the
field names are same.
@_ParthAcharya

Set the query
• To set the query select the fields your query requires. In our case, we want Employee ID, Employee
First Names, Employee last name, Department Name…. Etc.
Click on the Table dropdown
and select the table you want
a field from

Click on the Field dropdown
and Select the field you want.
Here, let’s select Employee ID

Select all the fields the query
requires in the same way
@_ParthAcharya

Run the query
1. Hit the ‘Run’ button to run the query

2. Check the results
@_ParthAcharya

How to set criteria?
• There can be cases where you will need to set criteria
• If you want the employees from just ‘Accounting’ department.
1. Go to the design view

2. In the criteria for Department field, type “Accounting”
and run the query

Make sure you set the criteria for the appropriate field. Here, the criteria is “Accounting” department, which is related to
the Department field. And so, we will set the criteria for the Department field, and not for any other fields.
@_ParthAcharya

How to set criteria? (Cont.)
• There can be cases where you will need to set criteria
• If you want the employees from just ‘Accounting’ department and with
Birthdate October 15th 1988.
1. Go to the design view

2. In the criteria for Birthdate field, type #10/15/1988#
and run the query
@_ParthAcharya

How to set criteria? (Cont.)
• There can be cases where you will need to set criteria
• If you want the employees from just ‘Accounting’ department and with
Birthday month May.
1. Go to the design view

2. In the criteria for Birthdate field, type Month([Birthdate])=5
and run the query

The syntax is: Month([filed_name])=month_number

=>

Month([BirthDate])=5
@_ParthAcharya

How to sort?
• There can be cases where you will need to sort certain fields
• If you want the employees from just ‘Accounting’ department with First Name
in alphabetical order
1. Go to the design view

2. In the criteria for FirstName field, click on Sort
dropdown and select Ascending and run the query
Next Part
Getting Started with Pivot Tables
Getting Started with Pivot
Tables
Introduction to Pivot Tables in MS Excel
@_ParthAcharya

Before starting with Pivot Tables
• How to export an MS Access query to Excel
In the External Data tab of MS Access, click on ‘Excel’
@_ParthAcharya

Creating A Pivot Table
1. Select the top left cell 2. Hit Ctrl+A
This will select your entire sheet.
of the exported excel
sheet

3. In the Insert tab,
select Pivot Table
@_ParthAcharya

Creating a Pivot Table (Cont.)
• A dialog box would pop up, make sure the ‘New Worksheet’ radio
button is selected. Hit ‘OK’.
@_ParthAcharya

Steps to create Pivot Tables
1. Understand the requirements (Which fields are needed)
2. Think of possible table layouts for the asked requirements
1. Which field should be set as ‘Row’?
2. Which field should be se as ‘Column’?
3. Which field should fit well as ‘Values’?

3. Look at the created pivot table and modify if needed
@_ParthAcharya

Understand the requirements
• Suppose we need to see Customers who bought Skateboards and TShirts. We also want to see how much did they spent on those two
product.
Here, the requirements would include the following fields:
• Customer Name
• Product Description
• Sales
@_ParthAcharya

Possible Layouts
Layout 1.
Row: Customers
Column: Products
Values: Sales

Layout 2.
Row: Products
Column: Customers
Values: Sales

Layout 3.
Row: Products
Column: Sales
Values: Customer

As you can see, Pivot Table can have many different layouts, we need to choose the one that fits our requirements the best.
@_ParthAcharya

Following Layout 1
1. Click on the
required field

2. Drag it to the
Row section

3. Similarly, drag the other two
required fields to their respective
sections (as decided for Layout 1)
@_ParthAcharya

The Created Pivot Table

Try to create Pivot Tables with other two Layout options and see if they fit well with our requirements
You will see that the Pivot Table created with Layout 1 fits our requirements the best
@_ParthAcharya

Filters
• If you remember, in our requirements, we want our Pivot Table with just two products:
‘Skateboard’ and ‘T-Shirt’.
To reduce our Pivot Table with Columns just for these two products, we will use filter.

1. To apply filter on
2. Select the required
Product Description
products
Column, click on the
Column Label dropdown
button
@_ParthAcharya

Modified Pivot Table
On applying the filter, you will the Pivot Table that fulfils our
requirements.
@_ParthAcharya

Some Excel Formulas
Create ‘Full Name’ column from ‘First Name’ and ‘Last Name’ columns
=CONCATNATE(first_name,” “,last_name)
• Here, first_name is your data in the ‘First Name’ column; last_name is your data in the ‘Last Name’ column
• Make sure to put a space in “ “

Create ‘Month’ column from ‘Date’ column
=TEXT(date,"mmmm")
• Here, date is your data in the ‘Date’ column
Connect?
Blog: vtalktech.wordpress.com

Social: linkedin.com/in/parthacharya
Email: contact@parthacharya.com
About: about.me/acharyaparth
1 of 27

Recommended

Excel 2007 Get Started With Pivot Table Reports by
Excel 2007  Get Started With  Pivot Table ReportsExcel 2007  Get Started With  Pivot Table Reports
Excel 2007 Get Started With Pivot Table ReportsOklahoma Dept. Mental Health
5.3K views34 slides
Excel Pivot Tables by
Excel Pivot TablesExcel Pivot Tables
Excel Pivot TablesMatt Saragusa
4.2K views15 slides
MS Excel Pivot Table Reports & Charts by
MS Excel Pivot Table Reports & ChartsMS Excel Pivot Table Reports & Charts
MS Excel Pivot Table Reports & Chartsdnbakhan
13.5K views42 slides
Pivot Table & Chart_Parakramesh Jaroli_Pacific University by
Pivot Table & Chart_Parakramesh Jaroli_Pacific UniversityPivot Table & Chart_Parakramesh Jaroli_Pacific University
Pivot Table & Chart_Parakramesh Jaroli_Pacific UniversityParakramesh Jaroli
537 views11 slides
MS Excel 2010 tutorial 3 by
MS Excel 2010 tutorial 3MS Excel 2010 tutorial 3
MS Excel 2010 tutorial 3Khalfan Alshuaili
522 views2 slides
Pivot Tables and Beyond Data Analysis in Excel 2013 - Course Technology Compu... by
Pivot Tables and Beyond Data Analysis in Excel 2013 - Course Technology Compu...Pivot Tables and Beyond Data Analysis in Excel 2013 - Course Technology Compu...
Pivot Tables and Beyond Data Analysis in Excel 2013 - Course Technology Compu...Cengage Learning
2K views50 slides

More Related Content

What's hot

Model Assistant Suite by
Model Assistant SuiteModel Assistant Suite
Model Assistant SuiteYsrael Mertz
495 views24 slides
Excel Crash Course: Pivot Tables by
Excel Crash Course: Pivot TablesExcel Crash Course: Pivot Tables
Excel Crash Course: Pivot TablesPurple, Rock, Scissors
6.8K views27 slides
Microsoft Office Excel by
Microsoft Office ExcelMicrosoft Office Excel
Microsoft Office ExcelvirtualMaryam
4K views41 slides
Excel 2007 Unit C by
Excel 2007 Unit CExcel 2007 Unit C
Excel 2007 Unit CALBAKRI MOHAMMAD
960 views34 slides
Excel 2007 - Create a chart by
Excel 2007 - Create a chartExcel 2007 - Create a chart
Excel 2007 - Create a chartOklahoma Dept. Mental Health
9.5K views49 slides
MS Excel Ch 3 PPT by
MS Excel Ch 3 PPTMS Excel Ch 3 PPT
MS Excel Ch 3 PPTprsmith72
1.3K views31 slides

What's hot(20)

Model Assistant Suite by Ysrael Mertz
Model Assistant SuiteModel Assistant Suite
Model Assistant Suite
Ysrael Mertz495 views
MS Excel Ch 3 PPT by prsmith72
MS Excel Ch 3 PPTMS Excel Ch 3 PPT
MS Excel Ch 3 PPT
prsmith721.3K views
Productivity programs excel assignment 1 by Beth Ann Cueni
Productivity programs excel assignment 1Productivity programs excel assignment 1
Productivity programs excel assignment 1
Beth Ann Cueni1.2K views
MS Excel Ch 2 PPT by prsmith72
MS Excel Ch 2 PPTMS Excel Ch 2 PPT
MS Excel Ch 2 PPT
prsmith721.8K views
Excel ppt by nhumar
Excel pptExcel ppt
Excel ppt
nhumar2.4K views
Microsoft excel-presentation by AlokThakur40
Microsoft excel-presentationMicrosoft excel-presentation
Microsoft excel-presentation
AlokThakur4055 views
Lesson 18 Creating Pivot Tables by guevarra_2000
Lesson 18 Creating Pivot TablesLesson 18 Creating Pivot Tables
Lesson 18 Creating Pivot Tables
guevarra_20001.7K views
E-Book 25 Tips and Tricks MS Excel Functions & Formulaes by BurCom Consulting Ltd.
E-Book 25 Tips and Tricks MS Excel Functions & FormulaesE-Book 25 Tips and Tricks MS Excel Functions & Formulaes
E-Book 25 Tips and Tricks MS Excel Functions & Formulaes
Alv report-tutorial-www.sapexpert.co .uk- by Faina Fridman
Alv report-tutorial-www.sapexpert.co .uk-Alv report-tutorial-www.sapexpert.co .uk-
Alv report-tutorial-www.sapexpert.co .uk-
Faina Fridman188 views
MS EXCEL PPT PRESENTATION by Mridul Bansal
MS EXCEL PPT PRESENTATIONMS EXCEL PPT PRESENTATION
MS EXCEL PPT PRESENTATION
Mridul Bansal7.8K views
Excel 2010 by nhumar
Excel 2010Excel 2010
Excel 2010
nhumar5.4K views
Microsoft Excel Basics by Compudon
Microsoft Excel BasicsMicrosoft Excel Basics
Microsoft Excel Basics
Compudon4K views

Viewers also liked

Ms Access ppt by
Ms Access pptMs Access ppt
Ms Access pptanuj
78.6K views65 slides
Pivot table presentation by
Pivot table presentationPivot table presentation
Pivot table presentationSha Tibnjn
30.6K views28 slides
Ms access 2007 by
Ms access 2007Ms access 2007
Ms access 2007Ramesh Pant
13.2K views68 slides
Training MS Access 2007 by
Training MS Access 2007Training MS Access 2007
Training MS Access 2007crespoje
39.3K views95 slides
Ms access by
Ms accessMs access
Ms accessAmrita University
37.9K views26 slides
QUERY BD ACCESS by
QUERY BD ACCESSQUERY BD ACCESS
QUERY BD ACCESSEdu Almaraz Garcia
167 views1 slide

Viewers also liked(20)

Ms Access ppt by anuj
Ms Access pptMs Access ppt
Ms Access ppt
anuj78.6K views
Pivot table presentation by Sha Tibnjn
Pivot table presentationPivot table presentation
Pivot table presentation
Sha Tibnjn30.6K views
Ms access 2007 by Ramesh Pant
Ms access 2007Ms access 2007
Ms access 2007
Ramesh Pant13.2K views
Training MS Access 2007 by crespoje
Training MS Access 2007Training MS Access 2007
Training MS Access 2007
crespoje39.3K views
Enter the table name and press create by rashmitaparida
Enter the table name and press createEnter the table name and press create
Enter the table name and press create
rashmitaparida273 views
Tab Candy Presentation Short by guestab5fefd
Tab Candy Presentation ShortTab Candy Presentation Short
Tab Candy Presentation Short
guestab5fefd1.1K views
ITT PROJECT ON CREATE QUERY(QUERY-SELECT WITH CONDITION, MAKE A TABLE,APPEND,... by Alok Mishra
ITT PROJECT ON CREATE QUERY(QUERY-SELECT WITH CONDITION, MAKE A TABLE,APPEND,...ITT PROJECT ON CREATE QUERY(QUERY-SELECT WITH CONDITION, MAKE A TABLE,APPEND,...
ITT PROJECT ON CREATE QUERY(QUERY-SELECT WITH CONDITION, MAKE A TABLE,APPEND,...
Alok Mishra2K views
Query formulation process by malathimurugan
Query formulation processQuery formulation process
Query formulation process
malathimurugan7.7K views
Shpend Stojkaj baza e të dhënave by Shpend Stojkaj
Shpend Stojkaj baza e të dhënaveShpend Stojkaj baza e të dhënave
Shpend Stojkaj baza e të dhënave
Shpend Stojkaj9K views
MS-ACCESS:CREATE TAB(QUERY-SELECT WITH CONDITIONS, MAKE A TABLE,DELETE,APPNED... by Ashish Saxena
MS-ACCESS:CREATE TAB(QUERY-SELECT WITH CONDITIONS, MAKE A TABLE,DELETE,APPNED...MS-ACCESS:CREATE TAB(QUERY-SELECT WITH CONDITIONS, MAKE A TABLE,DELETE,APPNED...
MS-ACCESS:CREATE TAB(QUERY-SELECT WITH CONDITIONS, MAKE A TABLE,DELETE,APPNED...
Ashish Saxena3.4K views
Microsoft Access by Ajla Hasani
Microsoft AccessMicrosoft Access
Microsoft Access
Ajla Hasani37.8K views
Basic introduction to ms access by jigeno
Basic introduction to ms accessBasic introduction to ms access
Basic introduction to ms access
jigeno26.1K views
Bazat e Te Dhenave - ACCESS by Ajla Hasani
Bazat e Te Dhenave  - ACCESSBazat e Te Dhenave  - ACCESS
Bazat e Te Dhenave - ACCESS
Ajla Hasani87.5K views
Microsoft Word Home tab Presentation by Tanveer Ahmed
Microsoft Word Home tab PresentationMicrosoft Word Home tab Presentation
Microsoft Word Home tab Presentation
Tanveer Ahmed19K views

Similar to Getting Started with MS Access and Pivot Tables

BBA 2 Semester DBMS All assignment by
BBA 2 Semester DBMS All assignmentBBA 2 Semester DBMS All assignment
BBA 2 Semester DBMS All assignmentRoshan Kumar
347 views109 slides
Advanced Filter Concepts in MS-Excel by
Advanced Filter Concepts in MS-ExcelAdvanced Filter Concepts in MS-Excel
Advanced Filter Concepts in MS-ExcelP. SUNDARI ARUN
378 views58 slides
Ms Access by
Ms AccessMs Access
Ms Accesssunmitraeducation
236 views35 slides
I Simply Excel by
I Simply ExcelI Simply Excel
I Simply ExcelEric Couch
1.2K views249 slides
Bis 345-week-4-i lab-new by
Bis 345-week-4-i lab-newBis 345-week-4-i lab-new
Bis 345-week-4-i lab-newassignmentcloud85
11 views7 slides
003.query by
003.query003.query
003.queryHọc Huỳnh Bá
634 views42 slides

Similar to Getting Started with MS Access and Pivot Tables(20)

BBA 2 Semester DBMS All assignment by Roshan Kumar
BBA 2 Semester DBMS All assignmentBBA 2 Semester DBMS All assignment
BBA 2 Semester DBMS All assignment
Roshan Kumar347 views
Advanced Filter Concepts in MS-Excel by P. SUNDARI ARUN
Advanced Filter Concepts in MS-ExcelAdvanced Filter Concepts in MS-Excel
Advanced Filter Concepts in MS-Excel
P. SUNDARI ARUN378 views
I Simply Excel by Eric Couch
I Simply ExcelI Simply Excel
I Simply Excel
Eric Couch1.2K views
E book Microsoft Dynamics CRM 2013 Personal Dashboard for End Users by Aileen Gusni
E book Microsoft Dynamics CRM 2013 Personal Dashboard for End UsersE book Microsoft Dynamics CRM 2013 Personal Dashboard for End Users
E book Microsoft Dynamics CRM 2013 Personal Dashboard for End Users
Aileen Gusni9K views
COMPUTER APPLICATION.pptx by VenkatMv1
COMPUTER APPLICATION.pptxCOMPUTER APPLICATION.pptx
COMPUTER APPLICATION.pptx
VenkatMv14 views
CIS 310 ACCESS AssignmentObjective of this assignment is to pr.docx by clarebernice
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
clarebernice10 views
electronicspreadsheet.pptx.ppt by 49RAJANKumar
electronicspreadsheet.pptx.pptelectronicspreadsheet.pptx.ppt
electronicspreadsheet.pptx.ppt
49RAJANKumar1 view
Microsoft access exercises by sarahandaiza
Microsoft access exercisesMicrosoft access exercises
Microsoft access exercises
sarahandaiza4.8K views
Access advanced tutorial by catacata1976
Access advanced tutorialAccess advanced tutorial
Access advanced tutorial
catacata1976389 views
Excel chapter 03 by teeworthy
Excel chapter 03Excel chapter 03
Excel chapter 03
teeworthy472 views
Excel Chapter 03 by jgardne4
Excel Chapter 03Excel Chapter 03
Excel Chapter 03
jgardne4524 views
Part 2Provider Database (Open Office Database)Use the project des.docx by danhaley45372
Part 2Provider Database (Open Office Database)Use the project des.docxPart 2Provider Database (Open Office Database)Use the project des.docx
Part 2Provider Database (Open Office Database)Use the project des.docx
danhaley453723 views

More from Parth Acharya

Web analytics 101 by
Web analytics 101Web analytics 101
Web analytics 101Parth Acharya
682 views1 slide
Getting started with Tableau by
Getting started with TableauGetting started with Tableau
Getting started with TableauParth Acharya
8.4K views18 slides
Virtual Workforce by
Virtual WorkforceVirtual Workforce
Virtual WorkforceParth Acharya
1.9K views11 slides
Google Online Marketing Challenge - Organization: Shoe Revolt by
Google Online Marketing Challenge - Organization: Shoe RevoltGoogle Online Marketing Challenge - Organization: Shoe Revolt
Google Online Marketing Challenge - Organization: Shoe RevoltParth Acharya
924 views14 slides
Social media and customer dialog management at Starbucks by
Social media and customer dialog management at StarbucksSocial media and customer dialog management at Starbucks
Social media and customer dialog management at StarbucksParth Acharya
3.9K views38 slides
Facebook for infibeam.com: Project Overview by
Facebook for infibeam.com: Project OverviewFacebook for infibeam.com: Project Overview
Facebook for infibeam.com: Project OverviewParth Acharya
4.7K views49 slides

More from Parth Acharya(10)

Getting started with Tableau by Parth Acharya
Getting started with TableauGetting started with Tableau
Getting started with Tableau
Parth Acharya8.4K views
Google Online Marketing Challenge - Organization: Shoe Revolt by Parth Acharya
Google Online Marketing Challenge - Organization: Shoe RevoltGoogle Online Marketing Challenge - Organization: Shoe Revolt
Google Online Marketing Challenge - Organization: Shoe Revolt
Parth Acharya924 views
Social media and customer dialog management at Starbucks by Parth Acharya
Social media and customer dialog management at StarbucksSocial media and customer dialog management at Starbucks
Social media and customer dialog management at Starbucks
Parth Acharya3.9K views
Facebook for infibeam.com: Project Overview by Parth Acharya
Facebook for infibeam.com: Project OverviewFacebook for infibeam.com: Project Overview
Facebook for infibeam.com: Project Overview
Parth Acharya4.7K views
Social media and e commerce by Parth Acharya
Social media and e commerceSocial media and e commerce
Social media and e commerce
Parth Acharya2K views
Management Lessons from Mahabharata by Parth Acharya
Management Lessons from MahabharataManagement Lessons from Mahabharata
Management Lessons from Mahabharata
Parth Acharya49K views
Learning Management System by Parth Acharya
Learning Management SystemLearning Management System
Learning Management System
Parth Acharya25.2K views

Recently uploaded

2022 CAPE Merit List 2023 by
2022 CAPE Merit List 2023 2022 CAPE Merit List 2023
2022 CAPE Merit List 2023 Caribbean Examinations Council
4.2K views76 slides
Women from Hackney’s History: Stoke Newington by Sue Doe by
Women from Hackney’s History: Stoke Newington by Sue DoeWomen from Hackney’s History: Stoke Newington by Sue Doe
Women from Hackney’s History: Stoke Newington by Sue DoeHistory of Stoke Newington
141 views21 slides
11.28.23 Social Capital and Social Exclusion.pptx by
11.28.23 Social Capital and Social Exclusion.pptx11.28.23 Social Capital and Social Exclusion.pptx
11.28.23 Social Capital and Social Exclusion.pptxmary850239
281 views25 slides
Education and Diversity.pptx by
Education and Diversity.pptxEducation and Diversity.pptx
Education and Diversity.pptxDrHafizKosar
118 views16 slides
231112 (WR) v1 ChatGPT OEB 2023.pdf by
231112 (WR) v1  ChatGPT OEB 2023.pdf231112 (WR) v1  ChatGPT OEB 2023.pdf
231112 (WR) v1 ChatGPT OEB 2023.pdfWilfredRubens.com
144 views21 slides
Compare the flora and fauna of Kerala and Chhattisgarh ( Charttabulation) by
 Compare the flora and fauna of Kerala and Chhattisgarh ( Charttabulation) Compare the flora and fauna of Kerala and Chhattisgarh ( Charttabulation)
Compare the flora and fauna of Kerala and Chhattisgarh ( Charttabulation)AnshulDewangan3
316 views12 slides

Recently uploaded(20)

11.28.23 Social Capital and Social Exclusion.pptx by mary850239
11.28.23 Social Capital and Social Exclusion.pptx11.28.23 Social Capital and Social Exclusion.pptx
11.28.23 Social Capital and Social Exclusion.pptx
mary850239281 views
Education and Diversity.pptx by DrHafizKosar
Education and Diversity.pptxEducation and Diversity.pptx
Education and Diversity.pptx
DrHafizKosar118 views
Compare the flora and fauna of Kerala and Chhattisgarh ( Charttabulation) by AnshulDewangan3
 Compare the flora and fauna of Kerala and Chhattisgarh ( Charttabulation) Compare the flora and fauna of Kerala and Chhattisgarh ( Charttabulation)
Compare the flora and fauna of Kerala and Chhattisgarh ( Charttabulation)
AnshulDewangan3316 views
AI Tools for Business and Startups by Svetlin Nakov
AI Tools for Business and StartupsAI Tools for Business and Startups
AI Tools for Business and Startups
Svetlin Nakov101 views
Psychology KS4 by WestHatch
Psychology KS4Psychology KS4
Psychology KS4
WestHatch68 views
Use of Probiotics in Aquaculture.pptx by AKSHAY MANDAL
Use of Probiotics in Aquaculture.pptxUse of Probiotics in Aquaculture.pptx
Use of Probiotics in Aquaculture.pptx
AKSHAY MANDAL89 views
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively by PECB
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks EffectivelyISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively
ISO/IEC 27001 and ISO/IEC 27005: Managing AI Risks Effectively
PECB 545 views
Narration lesson plan.docx by TARIQ KHAN
Narration lesson plan.docxNarration lesson plan.docx
Narration lesson plan.docx
TARIQ KHAN104 views
Class 10 English notes 23-24.pptx by TARIQ KHAN
Class 10 English notes 23-24.pptxClass 10 English notes 23-24.pptx
Class 10 English notes 23-24.pptx
TARIQ KHAN107 views
Lecture: Open Innovation by Michal Hron
Lecture: Open InnovationLecture: Open Innovation
Lecture: Open Innovation
Michal Hron96 views
Plastic waste.pdf by alqaseedae
Plastic waste.pdfPlastic waste.pdf
Plastic waste.pdf
alqaseedae125 views

Getting Started with MS Access and Pivot Tables

  • 1. Getting Started With MS Access Introduction to MS Access
  • 2. @_ParthAcharya Steps to create a query • Understanding the requirements of the query • Gathering the tables required for the query • Creating Query • Set the query • Run the query
  • 3. @_ParthAcharya Understanding the query requirements • Each query requires certain fields Let us understand the query requirements for the following queryThe query should display the following information: employee ID, employee first name, employee last name, employee address, employee salary, department name. For the given query, the requirements is: Employee ID Employee First Name Employee last name Employee address Employee salary Department name
  • 4. @_ParthAcharya Gathering the tables required for the query • Each field in the previous slide comes from some of the given tables Tip: You can also double click the table names to see the fields and data.
  • 5. @_ParthAcharya Creating Query with the gathered tables 1. Click on Query Design 2. Select the tables required for query and click on ‘Add’
  • 6. @_ParthAcharya Creating Query (Cont.) with the gathered tables 1. Once you add the tables 2. Create Relationship To connect two fields, click on one of the fields and drag your mouse to the other field Go to next slide for tips on creating relationship between tables
  • 7. @_ParthAcharya Tips Create Relationship between tables • Look out for a primary key (fields with a key on its left) in one of the tables to create a relationship with a field in the other table. • Look out for data type match. The fields connecting two tables should have the same data type. • We will look at three fields, two from the Department table and one from the Employee table. Here, the DepartmentID field from the table ‘Department’ has the same data type as the Department field in the ‘Employee’ table. Note that, the Department field in the ‘Department’ table has different data type than the Department field in the ‘Employee’ table. And hence, you shall not connect them, even though the field names are same.
  • 8. @_ParthAcharya Set the query • To set the query select the fields your query requires. In our case, we want Employee ID, Employee First Names, Employee last name, Department Name…. Etc. Click on the Table dropdown and select the table you want a field from Click on the Field dropdown and Select the field you want. Here, let’s select Employee ID Select all the fields the query requires in the same way
  • 9. @_ParthAcharya Run the query 1. Hit the ‘Run’ button to run the query 2. Check the results
  • 10. @_ParthAcharya How to set criteria? • There can be cases where you will need to set criteria • If you want the employees from just ‘Accounting’ department. 1. Go to the design view 2. In the criteria for Department field, type “Accounting” and run the query Make sure you set the criteria for the appropriate field. Here, the criteria is “Accounting” department, which is related to the Department field. And so, we will set the criteria for the Department field, and not for any other fields.
  • 11. @_ParthAcharya How to set criteria? (Cont.) • There can be cases where you will need to set criteria • If you want the employees from just ‘Accounting’ department and with Birthdate October 15th 1988. 1. Go to the design view 2. In the criteria for Birthdate field, type #10/15/1988# and run the query
  • 12. @_ParthAcharya How to set criteria? (Cont.) • There can be cases where you will need to set criteria • If you want the employees from just ‘Accounting’ department and with Birthday month May. 1. Go to the design view 2. In the criteria for Birthdate field, type Month([Birthdate])=5 and run the query The syntax is: Month([filed_name])=month_number => Month([BirthDate])=5
  • 13. @_ParthAcharya How to sort? • There can be cases where you will need to sort certain fields • If you want the employees from just ‘Accounting’ department with First Name in alphabetical order 1. Go to the design view 2. In the criteria for FirstName field, click on Sort dropdown and select Ascending and run the query
  • 14. Next Part Getting Started with Pivot Tables
  • 15. Getting Started with Pivot Tables Introduction to Pivot Tables in MS Excel
  • 16. @_ParthAcharya Before starting with Pivot Tables • How to export an MS Access query to Excel In the External Data tab of MS Access, click on ‘Excel’
  • 17. @_ParthAcharya Creating A Pivot Table 1. Select the top left cell 2. Hit Ctrl+A This will select your entire sheet. of the exported excel sheet 3. In the Insert tab, select Pivot Table
  • 18. @_ParthAcharya Creating a Pivot Table (Cont.) • A dialog box would pop up, make sure the ‘New Worksheet’ radio button is selected. Hit ‘OK’.
  • 19. @_ParthAcharya Steps to create Pivot Tables 1. Understand the requirements (Which fields are needed) 2. Think of possible table layouts for the asked requirements 1. Which field should be set as ‘Row’? 2. Which field should be se as ‘Column’? 3. Which field should fit well as ‘Values’? 3. Look at the created pivot table and modify if needed
  • 20. @_ParthAcharya Understand the requirements • Suppose we need to see Customers who bought Skateboards and TShirts. We also want to see how much did they spent on those two product. Here, the requirements would include the following fields: • Customer Name • Product Description • Sales
  • 21. @_ParthAcharya Possible Layouts Layout 1. Row: Customers Column: Products Values: Sales Layout 2. Row: Products Column: Customers Values: Sales Layout 3. Row: Products Column: Sales Values: Customer As you can see, Pivot Table can have many different layouts, we need to choose the one that fits our requirements the best.
  • 22. @_ParthAcharya Following Layout 1 1. Click on the required field 2. Drag it to the Row section 3. Similarly, drag the other two required fields to their respective sections (as decided for Layout 1)
  • 23. @_ParthAcharya The Created Pivot Table Try to create Pivot Tables with other two Layout options and see if they fit well with our requirements You will see that the Pivot Table created with Layout 1 fits our requirements the best
  • 24. @_ParthAcharya Filters • If you remember, in our requirements, we want our Pivot Table with just two products: ‘Skateboard’ and ‘T-Shirt’. To reduce our Pivot Table with Columns just for these two products, we will use filter. 1. To apply filter on 2. Select the required Product Description products Column, click on the Column Label dropdown button
  • 25. @_ParthAcharya Modified Pivot Table On applying the filter, you will the Pivot Table that fulfils our requirements.
  • 26. @_ParthAcharya Some Excel Formulas Create ‘Full Name’ column from ‘First Name’ and ‘Last Name’ columns =CONCATNATE(first_name,” “,last_name) • Here, first_name is your data in the ‘First Name’ column; last_name is your data in the ‘Last Name’ column • Make sure to put a space in “ “ Create ‘Month’ column from ‘Date’ column =TEXT(date,"mmmm") • Here, date is your data in the ‘Date’ column
  • 27. Connect? Blog: vtalktech.wordpress.com Social: linkedin.com/in/parthacharya Email: contact@parthacharya.com About: about.me/acharyaparth