SlideShare a Scribd company logo
1 of 35
A Programme Under the compumitra Series
Wisdom is meaningless until your own experience has given it
meaning and there is wisdom in the selection of wisdom.”
- Bergen Evans Quotes
Creating Database In MS ACCESS
LAB WORK GUIDE
OUTLINE
 Creating Database in MS Access
 Database Creation
 Table Creation
 Designing Table
 Filling Records To The Table
 Saving Table
 Sorting
 Modification Trials
 Query
 Query Creation
 Maintaining Relationship
 Doing Query on table
 Saving Query
 Types of view
 Modification Trials
 Practice Exercise
 Review Summary
 References.
Opening MS Access
We Are going to use Microsoft Access to create a database,
Which we will attach latter to ASP.NET project.
Go to Start Menu>>All
Programs>>Microsoft Office and then
Click Microsoft Office Access 2003 to
open 'MS Access'
Creating Database
Creating Database-1
1st Method
2nd Method
You can create your new database by following one of the two ways.
MS Access Window
Click 'New' button in 'File
Menu' to create a new
database file.
Select ‘New File’ to create a
new database file.
Click on 'Getting Started'
Creating Database-2
First step in MS Access is to create a blank
database in which we will add some table later.
Click on 'Blank
Database…'.
• File New Database dialog box will open
•Set your path to C:Learner<student-id>Database
Give 'File name' (Database name)
equal to 'Sale' and then click on
'Create' button.
Creating Table
Creating Table In Database
To create a new table in Database
Double Click on 'Create table in
Design view to design table'.
Sale : Database dialog box will open
Adding Field Name And Data Type in Table
A particular field will hold which type of value, it is depend on data
type. Eg. Text data type defines field which hold only text value.
Define Field Name and
Data Type here. Field Name and their Data Type are:
ItemId -> AutoNumber
Item_name -> Text
Unit -> Text
Product_Rate -> Number
Create Primary Key
Primary key is a key which is used to identify each row uniquely in
the table and we also use it for establishing relationship.
To make an 'ItemId' as primary
key, Right click on 'ItemId' and
select 'Primary Key'
Number
Click on 'Save' in 'File'
menu
Saving the Table
'Save As' dialog box will
appear
Give the Table Name equal to
'ItemMaster' and click OK
button
Opening Table For Inserting the Records
Click on 'ItemMaster' table to
open table for filling records
Inserting the Records in the Table
Insert the records as given in
the table and close it by
Clicking on 'X' button
Modification Trails
 Go to design view and change the Product_Rate type From
Number to currency and see the result.
You will see that $ sign will be shown with Product_Rate.
 Go to design view of the table again and change the Field Size
of the Item_name field '50' to ‘5’ and then see the result on
table by opening it.
Now when you will see that only 5 character of the item name
is shown rest characters are deleted automatically.
Creation of Another Table (Sales Table)
Sales Table Creation
Create a table by following the same steps
which are used to create ItemMaster table
with following Fields:
ItemId -> Number
Quantity -> Number
Date -> Date/Time
Unit Sale price -> Number
Then save the table and
give it name 'Sales'.
Records Insertion in sales Table
Open the 'Sales' table from 'Sale Database' and insert the
records.
Fill the records in the 'Sales' table and close it.
Sorting in the Table
Sorting in Ascending order
Sorting is a way of arranging a list into
ascending or descending order.
Select the column and right click on
it, then select 'Sort Ascending'
Now you can see that records are arranged
in the ascending order of Item_name.
In the same way we can sort the column
in descending order.
Query Generation
Query Generation: Opening Design View
Select 'Queries' tab from
'Objects'
Select 'Open' or 'Design View' to
relate table.
Right click on 'Create query in Design
View' to open popup menu
By designing query you can access data
according to your choice from the table.
Select both tables to relate by
pressing ctrl + mouse left button.
Select tables to relate then Click on
‘Add’ Button.
Query Generation: Add tables to relate
•You can also add the tables one by one.
•After adding the tables, click on 'Close' button.
Query Generation: Field Selection
Select 'ItemMaster.*' from Dropdown List
of first column of 'Field' row
This line showing relationship between the
tables.
Select 'Sales.*' from Dropdown List of
second column of 'Field' row
•With the '.*' sign we select all the fields of the table.
•We can also select Fields according to your choice.
Query Generation: Viewing SQL Query-1
SQL is an standard language for accessing and
manipulating databases.
To view SQL query for these tables,
Right click on the blank space of
Query Designer and select SQL View
Query Generation: Viewing SQL Query-2
SQL ‘Select query’ for the tables, We
can also do some changes according to
our requirements
Query Generation: Query Saving
Type Query Name equal to ‘All
Fields’ and then click ‘OK’ button
Open Save As Dialog Box by
pressing Ctrl+S
Query Generation: Query Result
Datasheet View is showing fields from both the
tables as we have instructed in the query.
You can modify your query again by going into
query design option of particular query.
To open query, Double click on
'All Fields' query
Types of View in MS Access
There are main three types of view in
Query 1-Design View, 2-SQL View and 3-
Datasheet View.
1-Design View
Types of View in MS Access
2-SQL View
3-Datasheet View
Modification Trails
 Arrange the records in the descending order of name in the
queryview.
You will see that when you set the records in the field of one table it
will effect also in the field of other table as there is relationship
between both the table.
 Design a query for retrieving ItemId,Item_name from ItemMaster
table and Unit Sale Price from sales table.
Now when you will open your query you will see that only the
selected fields are showing.
 Open design view of your ItemMaster table and right click on the field
on which you have created Primary Key. Now select Primary Key
again.
Now you will see that your primary key will be removed. So whenever
you want to change primary key you can do so by this feature. You
can also use ‘Edit’ menu option for the same purpose.
Practice Exercise-1
Create a Database Home Expenses. Which have 2
tables namely ExpenseCategory, and Expenses. Save
the Database at "C:Learner<student-id>Database"
location.
Fields Name and their Data Type of
ExpenseCategory table are:
CatId -> AutoNumber
Description -> Text(50 Characters)
SName -> Text(4 Characters)
Fields Name and their Data Type of Expenses table
are:
Date -> Date/Time
ExpensesDetail -> Text(100 Characters)
CatId -> Number
Practice Exercise-2
In the ExpenseCategory table fill the data according to the given
Template.
Then create a query which shows the Description, Date
and Expense Detail of the monthly expense where CatID of
ExpenseCategory tabel should be equal to CatID of
Expenses table
Review Summary
 Creating Database With MS ACCESS.
 Designing, Creating and Filling Records in the table.
 Fields property setting
 Sorting.
 Working with queries.
 Making Relationships among tables
 Concept of primary key.
 Some modification trials to enhance knowledge.
Bibliography
Microsoft Access:
http://www.quackit.com/microsoft_access/tut
orial/
http://www.teacherclick.com/access2003/ind
ex.htm
http://www.gcflearnfree.org/computer/topic.
aspx?id=95
Ask and guide me at
sunmitraeducation@gmail.com
Share this information with as
many people as possible.
Keep visiting www.sunmitra.com
for programme updates.

More Related Content

What's hot

Smart todolist
Smart todolistSmart todolist
Smart todolistAppSheet
 
Chapter 05
Chapter 05Chapter 05
Chapter 05llmeade
 
Eq hub operator_contractor_user_guide
Eq hub operator_contractor_user_guideEq hub operator_contractor_user_guide
Eq hub operator_contractor_user_guideEqHub
 
BBA 2 Semester DBMS All assignment
BBA 2 Semester DBMS All assignmentBBA 2 Semester DBMS All assignment
BBA 2 Semester DBMS All assignmentRoshan Kumar
 
Microsoft Office Package: Practical Questions
Microsoft Office Package: Practical QuestionsMicrosoft Office Package: Practical Questions
Microsoft Office Package: Practical QuestionsMakaha Rutendo
 
Chapter 08
Chapter 08Chapter 08
Chapter 08llmeade
 
Tutorials on Macro
Tutorials on MacroTutorials on Macro
Tutorials on MacroAnurag Deb
 
Detail Views
Detail ViewsDetail Views
Detail ViewsEMAINT
 
Chapter 4 — Variables and Arithmetic Operations
Chapter 4 — Variables and Arithmetic OperationsChapter 4 — Variables and Arithmetic Operations
Chapter 4 — Variables and Arithmetic Operationsfrancopw
 
Fomatting Text Tips
Fomatting Text TipsFomatting Text Tips
Fomatting Text TipsEMAINT
 
Chapter 2 — Program and Graphical User Interface Design
Chapter 2 — Program and Graphical User Interface DesignChapter 2 — Program and Graphical User Interface Design
Chapter 2 — Program and Graphical User Interface Designfrancopw
 
Tips and Tricks
Tips and TricksTips and Tricks
Tips and TricksEMAINT
 
Creating Purcahse Orders
Creating Purcahse OrdersCreating Purcahse Orders
Creating Purcahse OrdersEMAINT
 
Creating a quiz using visual basic 6
Creating a quiz using visual basic 6Creating a quiz using visual basic 6
Creating a quiz using visual basic 6Ella Marie Wico
 
Using Microsoft Excel7 Advanced
Using Microsoft Excel7 AdvancedUsing Microsoft Excel7 Advanced
Using Microsoft Excel7 AdvancedJack Frost
 
Access Ch3 Maintaining A Database (Jy)
Access Ch3   Maintaining A Database (Jy)Access Ch3   Maintaining A Database (Jy)
Access Ch3 Maintaining A Database (Jy)Chun Hoi Lam
 

What's hot (20)

Excel 2007- Enter Formulas
Excel 2007- Enter FormulasExcel 2007- Enter Formulas
Excel 2007- Enter Formulas
 
Excel300
Excel300Excel300
Excel300
 
Smart todolist
Smart todolistSmart todolist
Smart todolist
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
 
Eq hub operator_contractor_user_guide
Eq hub operator_contractor_user_guideEq hub operator_contractor_user_guide
Eq hub operator_contractor_user_guide
 
BBA 2 Semester DBMS All assignment
BBA 2 Semester DBMS All assignmentBBA 2 Semester DBMS All assignment
BBA 2 Semester DBMS All assignment
 
Microsoft Office Package: Practical Questions
Microsoft Office Package: Practical QuestionsMicrosoft Office Package: Practical Questions
Microsoft Office Package: Practical Questions
 
Chapter 08
Chapter 08Chapter 08
Chapter 08
 
Tutorials on Macro
Tutorials on MacroTutorials on Macro
Tutorials on Macro
 
Detail Views
Detail ViewsDetail Views
Detail Views
 
Chapter 4 — Variables and Arithmetic Operations
Chapter 4 — Variables and Arithmetic OperationsChapter 4 — Variables and Arithmetic Operations
Chapter 4 — Variables and Arithmetic Operations
 
Fomatting Text Tips
Fomatting Text TipsFomatting Text Tips
Fomatting Text Tips
 
Chapter 2 — Program and Graphical User Interface Design
Chapter 2 — Program and Graphical User Interface DesignChapter 2 — Program and Graphical User Interface Design
Chapter 2 — Program and Graphical User Interface Design
 
Tips and Tricks
Tips and TricksTips and Tricks
Tips and Tricks
 
Creating Purcahse Orders
Creating Purcahse OrdersCreating Purcahse Orders
Creating Purcahse Orders
 
Creating a quiz using visual basic 6
Creating a quiz using visual basic 6Creating a quiz using visual basic 6
Creating a quiz using visual basic 6
 
Req pro tips
Req pro tipsReq pro tips
Req pro tips
 
Using Microsoft Excel7 Advanced
Using Microsoft Excel7 AdvancedUsing Microsoft Excel7 Advanced
Using Microsoft Excel7 Advanced
 
Access Ch3 Maintaining A Database (Jy)
Access Ch3   Maintaining A Database (Jy)Access Ch3   Maintaining A Database (Jy)
Access Ch3 Maintaining A Database (Jy)
 
Tutorials2
Tutorials2Tutorials2
Tutorials2
 

Similar to Ms Access

BUSI 301 Book Review RubricScoreCommentsResearch 25.docx
BUSI 301 Book Review RubricScoreCommentsResearch 25.docxBUSI 301 Book Review RubricScoreCommentsResearch 25.docx
BUSI 301 Book Review RubricScoreCommentsResearch 25.docxhumphrieskalyn
 
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
 
access1.ppt
access1.pptaccess1.ppt
access1.pptmayada34
 
acct accounting Table Lab.pdf
acct accounting Table Lab.pdfacct accounting Table Lab.pdf
acct accounting Table Lab.pdfbkbk37
 
Introduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.pptIntroduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.pptJoshCasas1
 
It203 class slides-unit5
It203 class slides-unit5It203 class slides-unit5
It203 class slides-unit5Matthew Moldvan
 
Acccesss notes
Acccesss notesAcccesss notes
Acccesss notesart02
 
Access advanced tutorial
Access advanced tutorialAccess advanced tutorial
Access advanced tutorialcatacata1976
 
PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |Umesh Kumar
 
B.sc i agri u 4 introduction to ms access
B.sc i agri u 4 introduction to ms accessB.sc i agri u 4 introduction to ms access
B.sc i agri u 4 introduction to ms accessRai University
 
B.sc i micro bio u 4 introduction to ms access
B.sc i micro bio u 4 introduction to ms accessB.sc i micro bio u 4 introduction to ms access
B.sc i micro bio u 4 introduction to ms accessRai University
 

Similar to Ms Access (20)

003.query
003.query003.query
003.query
 
BUSI 301 Book Review RubricScoreCommentsResearch 25.docx
BUSI 301 Book Review RubricScoreCommentsResearch 25.docxBUSI 301 Book Review RubricScoreCommentsResearch 25.docx
BUSI 301 Book Review RubricScoreCommentsResearch 25.docx
 
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
 
Ms Access
Ms AccessMs Access
Ms Access
 
MS ACCESS PPT.pptx
MS ACCESS PPT.pptxMS ACCESS PPT.pptx
MS ACCESS PPT.pptx
 
access1.ppt
access1.pptaccess1.ppt
access1.ppt
 
acct accounting Table Lab.pdf
acct accounting Table Lab.pdfacct accounting Table Lab.pdf
acct accounting Table Lab.pdf
 
Ms access
Ms accessMs access
Ms access
 
Access 2007 lecture notes students
Access 2007 lecture notes studentsAccess 2007 lecture notes students
Access 2007 lecture notes students
 
Introduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.pptIntroduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.ppt
 
It203 class slides-unit5
It203 class slides-unit5It203 class slides-unit5
It203 class slides-unit5
 
06.ms acess
06.ms acess06.ms acess
06.ms acess
 
Acccesss notes
Acccesss notesAcccesss notes
Acccesss notes
 
Ayush presentation
Ayush presentationAyush presentation
Ayush presentation
 
Introduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.pptIntroduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.ppt
 
Access advanced tutorial
Access advanced tutorialAccess advanced tutorial
Access advanced tutorial
 
MS Access 2010 tutorial 5
MS Access 2010 tutorial 5MS Access 2010 tutorial 5
MS Access 2010 tutorial 5
 
PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |
 
B.sc i agri u 4 introduction to ms access
B.sc i agri u 4 introduction to ms accessB.sc i agri u 4 introduction to ms access
B.sc i agri u 4 introduction to ms access
 
B.sc i micro bio u 4 introduction to ms access
B.sc i micro bio u 4 introduction to ms accessB.sc i micro bio u 4 introduction to ms access
B.sc i micro bio u 4 introduction to ms access
 

More from sunmitraeducation

Installing JDK and first java program
Installing JDK and first java programInstalling JDK and first java program
Installing JDK and first java programsunmitraeducation
 
Visual Web Developer and Web Controls VB set 3
Visual Web Developer and Web Controls VB set 3Visual Web Developer and Web Controls VB set 3
Visual Web Developer and Web Controls VB set 3sunmitraeducation
 
Visual Web Developer and Web Controls CS set 3
Visual Web Developer and Web Controls CS set 3Visual Web Developer and Web Controls CS set 3
Visual Web Developer and Web Controls CS set 3sunmitraeducation
 
Progamming Primer Polymorphism (Method Overloading) VB
Progamming Primer Polymorphism (Method Overloading) VBProgamming Primer Polymorphism (Method Overloading) VB
Progamming Primer Polymorphism (Method Overloading) VBsunmitraeducation
 
Programming Primer EncapsulationVB
Programming Primer EncapsulationVBProgramming Primer EncapsulationVB
Programming Primer EncapsulationVBsunmitraeducation
 
Programming Primer Encapsulation CS
Programming Primer Encapsulation CSProgramming Primer Encapsulation CS
Programming Primer Encapsulation CSsunmitraeducation
 
Programming Primer Inheritance VB
Programming Primer Inheritance VBProgramming Primer Inheritance VB
Programming Primer Inheritance VBsunmitraeducation
 
Programming Primer Inheritance CS
Programming Primer Inheritance CSProgramming Primer Inheritance CS
Programming Primer Inheritance CSsunmitraeducation
 
Web Server Controls VB Set 1
Web Server Controls VB Set 1Web Server Controls VB Set 1
Web Server Controls VB Set 1sunmitraeducation
 
Html Server Image Control VB
Html Server Image Control VBHtml Server Image Control VB
Html Server Image Control VBsunmitraeducation
 
Html Server Image Control CS
Html Server Image Control CSHtml Server Image Control CS
Html Server Image Control CSsunmitraeducation
 

More from sunmitraeducation (20)

Java Introduction
Java IntroductionJava Introduction
Java Introduction
 
Installing JDK and first java program
Installing JDK and first java programInstalling JDK and first java program
Installing JDK and first java program
 
Project1 CS
Project1 CSProject1 CS
Project1 CS
 
Grid Vew Control VB
Grid Vew Control VBGrid Vew Control VB
Grid Vew Control VB
 
Grid View Control CS
Grid View Control CSGrid View Control CS
Grid View Control CS
 
Database Basics Theory
Database Basics TheoryDatabase Basics Theory
Database Basics Theory
 
Visual Web Developer and Web Controls VB set 3
Visual Web Developer and Web Controls VB set 3Visual Web Developer and Web Controls VB set 3
Visual Web Developer and Web Controls VB set 3
 
Visual Web Developer and Web Controls CS set 3
Visual Web Developer and Web Controls CS set 3Visual Web Developer and Web Controls CS set 3
Visual Web Developer and Web Controls CS set 3
 
Progamming Primer Polymorphism (Method Overloading) VB
Progamming Primer Polymorphism (Method Overloading) VBProgamming Primer Polymorphism (Method Overloading) VB
Progamming Primer Polymorphism (Method Overloading) VB
 
Programming Primer EncapsulationVB
Programming Primer EncapsulationVBProgramming Primer EncapsulationVB
Programming Primer EncapsulationVB
 
Programming Primer Encapsulation CS
Programming Primer Encapsulation CSProgramming Primer Encapsulation CS
Programming Primer Encapsulation CS
 
Programming Primer Inheritance VB
Programming Primer Inheritance VBProgramming Primer Inheritance VB
Programming Primer Inheritance VB
 
Programming Primer Inheritance CS
Programming Primer Inheritance CSProgramming Primer Inheritance CS
Programming Primer Inheritance CS
 
ProgrammingPrimerAndOOPS
ProgrammingPrimerAndOOPSProgrammingPrimerAndOOPS
ProgrammingPrimerAndOOPS
 
Web Server Controls VB Set 1
Web Server Controls VB Set 1Web Server Controls VB Set 1
Web Server Controls VB Set 1
 
Web Server Controls CS Set
Web Server Controls CS Set Web Server Controls CS Set
Web Server Controls CS Set
 
Web Controls Set-1
Web Controls Set-1Web Controls Set-1
Web Controls Set-1
 
Understanding IDEs
Understanding IDEsUnderstanding IDEs
Understanding IDEs
 
Html Server Image Control VB
Html Server Image Control VBHtml Server Image Control VB
Html Server Image Control VB
 
Html Server Image Control CS
Html Server Image Control CSHtml Server Image Control CS
Html Server Image Control CS
 

Recently uploaded

Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 

Recently uploaded (20)

Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 

Ms Access

  • 1. A Programme Under the compumitra Series Wisdom is meaningless until your own experience has given it meaning and there is wisdom in the selection of wisdom.” - Bergen Evans Quotes Creating Database In MS ACCESS LAB WORK GUIDE
  • 2. OUTLINE  Creating Database in MS Access  Database Creation  Table Creation  Designing Table  Filling Records To The Table  Saving Table  Sorting  Modification Trials  Query  Query Creation  Maintaining Relationship  Doing Query on table  Saving Query  Types of view  Modification Trials  Practice Exercise  Review Summary  References.
  • 3. Opening MS Access We Are going to use Microsoft Access to create a database, Which we will attach latter to ASP.NET project. Go to Start Menu>>All Programs>>Microsoft Office and then Click Microsoft Office Access 2003 to open 'MS Access'
  • 5. Creating Database-1 1st Method 2nd Method You can create your new database by following one of the two ways. MS Access Window Click 'New' button in 'File Menu' to create a new database file. Select ‘New File’ to create a new database file. Click on 'Getting Started'
  • 6. Creating Database-2 First step in MS Access is to create a blank database in which we will add some table later. Click on 'Blank Database…'. • File New Database dialog box will open •Set your path to C:Learner<student-id>Database Give 'File name' (Database name) equal to 'Sale' and then click on 'Create' button.
  • 8. Creating Table In Database To create a new table in Database Double Click on 'Create table in Design view to design table'. Sale : Database dialog box will open
  • 9. Adding Field Name And Data Type in Table A particular field will hold which type of value, it is depend on data type. Eg. Text data type defines field which hold only text value. Define Field Name and Data Type here. Field Name and their Data Type are: ItemId -> AutoNumber Item_name -> Text Unit -> Text Product_Rate -> Number
  • 10. Create Primary Key Primary key is a key which is used to identify each row uniquely in the table and we also use it for establishing relationship. To make an 'ItemId' as primary key, Right click on 'ItemId' and select 'Primary Key' Number
  • 11. Click on 'Save' in 'File' menu Saving the Table 'Save As' dialog box will appear Give the Table Name equal to 'ItemMaster' and click OK button
  • 12. Opening Table For Inserting the Records Click on 'ItemMaster' table to open table for filling records
  • 13. Inserting the Records in the Table Insert the records as given in the table and close it by Clicking on 'X' button
  • 14. Modification Trails  Go to design view and change the Product_Rate type From Number to currency and see the result. You will see that $ sign will be shown with Product_Rate.  Go to design view of the table again and change the Field Size of the Item_name field '50' to ‘5’ and then see the result on table by opening it. Now when you will see that only 5 character of the item name is shown rest characters are deleted automatically.
  • 15. Creation of Another Table (Sales Table)
  • 16. Sales Table Creation Create a table by following the same steps which are used to create ItemMaster table with following Fields: ItemId -> Number Quantity -> Number Date -> Date/Time Unit Sale price -> Number Then save the table and give it name 'Sales'.
  • 17. Records Insertion in sales Table Open the 'Sales' table from 'Sale Database' and insert the records. Fill the records in the 'Sales' table and close it.
  • 18. Sorting in the Table
  • 19. Sorting in Ascending order Sorting is a way of arranging a list into ascending or descending order. Select the column and right click on it, then select 'Sort Ascending' Now you can see that records are arranged in the ascending order of Item_name. In the same way we can sort the column in descending order.
  • 21. Query Generation: Opening Design View Select 'Queries' tab from 'Objects' Select 'Open' or 'Design View' to relate table. Right click on 'Create query in Design View' to open popup menu By designing query you can access data according to your choice from the table.
  • 22. Select both tables to relate by pressing ctrl + mouse left button. Select tables to relate then Click on ‘Add’ Button. Query Generation: Add tables to relate •You can also add the tables one by one. •After adding the tables, click on 'Close' button.
  • 23. Query Generation: Field Selection Select 'ItemMaster.*' from Dropdown List of first column of 'Field' row This line showing relationship between the tables. Select 'Sales.*' from Dropdown List of second column of 'Field' row •With the '.*' sign we select all the fields of the table. •We can also select Fields according to your choice.
  • 24. Query Generation: Viewing SQL Query-1 SQL is an standard language for accessing and manipulating databases. To view SQL query for these tables, Right click on the blank space of Query Designer and select SQL View
  • 25. Query Generation: Viewing SQL Query-2 SQL ‘Select query’ for the tables, We can also do some changes according to our requirements
  • 26. Query Generation: Query Saving Type Query Name equal to ‘All Fields’ and then click ‘OK’ button Open Save As Dialog Box by pressing Ctrl+S
  • 27. Query Generation: Query Result Datasheet View is showing fields from both the tables as we have instructed in the query. You can modify your query again by going into query design option of particular query. To open query, Double click on 'All Fields' query
  • 28. Types of View in MS Access There are main three types of view in Query 1-Design View, 2-SQL View and 3- Datasheet View. 1-Design View
  • 29. Types of View in MS Access 2-SQL View 3-Datasheet View
  • 30. Modification Trails  Arrange the records in the descending order of name in the queryview. You will see that when you set the records in the field of one table it will effect also in the field of other table as there is relationship between both the table.  Design a query for retrieving ItemId,Item_name from ItemMaster table and Unit Sale Price from sales table. Now when you will open your query you will see that only the selected fields are showing.  Open design view of your ItemMaster table and right click on the field on which you have created Primary Key. Now select Primary Key again. Now you will see that your primary key will be removed. So whenever you want to change primary key you can do so by this feature. You can also use ‘Edit’ menu option for the same purpose.
  • 31. Practice Exercise-1 Create a Database Home Expenses. Which have 2 tables namely ExpenseCategory, and Expenses. Save the Database at "C:Learner<student-id>Database" location. Fields Name and their Data Type of ExpenseCategory table are: CatId -> AutoNumber Description -> Text(50 Characters) SName -> Text(4 Characters) Fields Name and their Data Type of Expenses table are: Date -> Date/Time ExpensesDetail -> Text(100 Characters) CatId -> Number
  • 32. Practice Exercise-2 In the ExpenseCategory table fill the data according to the given Template. Then create a query which shows the Description, Date and Expense Detail of the monthly expense where CatID of ExpenseCategory tabel should be equal to CatID of Expenses table
  • 33. Review Summary  Creating Database With MS ACCESS.  Designing, Creating and Filling Records in the table.  Fields property setting  Sorting.  Working with queries.  Making Relationships among tables  Concept of primary key.  Some modification trials to enhance knowledge.
  • 35. Ask and guide me at sunmitraeducation@gmail.com Share this information with as many people as possible. Keep visiting www.sunmitra.com for programme updates.