SlideShare a Scribd company logo
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

Excel 2007- Enter Formulas
Excel 2007- Enter FormulasExcel 2007- Enter Formulas
Excel 2007- Enter Formulas
Oklahoma Dept. Mental Health
 
Excel300
Excel300Excel300
Smart todolist
Smart todolistSmart todolist
Smart todolist
AppSheet
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
llmeade
 
Eq hub operator_contractor_user_guide
Eq hub operator_contractor_user_guideEq hub operator_contractor_user_guide
Eq hub operator_contractor_user_guide
EqHub
 
BBA 2 Semester DBMS All assignment
BBA 2 Semester DBMS All assignmentBBA 2 Semester DBMS All assignment
BBA 2 Semester DBMS All assignment
Roshan Kumar
 
Microsoft Office Package: Practical Questions
Microsoft Office Package: Practical QuestionsMicrosoft Office Package: Practical Questions
Microsoft Office Package: Practical Questions
Makaha Rutendo
 
Chapter 08
Chapter 08Chapter 08
Chapter 08
llmeade
 
Tutorials on Macro
Tutorials on MacroTutorials on Macro
Tutorials on Macro
Anurag Deb
 
Detail Views
Detail ViewsDetail Views
Detail Views
EMAINT
 
Chapter 4 — Variables and Arithmetic Operations
Chapter 4 — Variables and Arithmetic OperationsChapter 4 — Variables and Arithmetic Operations
Chapter 4 — Variables and Arithmetic Operations
francopw
 
Fomatting Text Tips
Fomatting Text TipsFomatting Text Tips
Fomatting Text Tips
EMAINT
 
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
francopw
 
Tips and Tricks
Tips and TricksTips and Tricks
Tips and Tricks
EMAINT
 
Creating Purcahse Orders
Creating Purcahse OrdersCreating Purcahse Orders
Creating Purcahse Orders
EMAINT
 
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
Ella Marie Wico
 
Req pro tips
Req pro tipsReq pro tips
Req pro tips
Fran McKain
 
Using Microsoft Excel7 Advanced
Using Microsoft Excel7 AdvancedUsing Microsoft Excel7 Advanced
Using Microsoft Excel7 Advanced
Jack 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
 
Tutorials2
Tutorials2Tutorials2
Tutorials2
raja umair
 

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

003.query
003.query003.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
humphrieskalyn
 
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
clarebernice
 
Ms Access
Ms AccessMs Access
Ms Access
itsvineeth209
 
MS ACCESS PPT.pptx
MS ACCESS PPT.pptxMS ACCESS PPT.pptx
MS ACCESS PPT.pptx
sourav mathur
 
access1.ppt
access1.pptaccess1.ppt
access1.ppt
mayada34
 
acct accounting Table Lab.pdf
acct accounting Table Lab.pdfacct accounting Table Lab.pdf
acct accounting Table Lab.pdf
bkbk37
 
Ms access
Ms accessMs access
Ms access
navidhiman
 
Access 2007 lecture notes students
Access 2007 lecture notes studentsAccess 2007 lecture notes students
Access 2007 lecture notes students
IYAKAREMYE Jean De Dieu
 
Introduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.pptIntroduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.ppt
JoshCasas1
 
It203 class slides-unit5
It203 class slides-unit5It203 class slides-unit5
It203 class slides-unit5
Matthew Moldvan
 
06.ms acess
06.ms acess06.ms acess
Acccesss notes
Acccesss notesAcccesss notes
Acccesss notes
art02
 
Ayush presentation
Ayush presentationAyush presentation
Ayush presentation
AyushKumar942
 
Introduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.pptIntroduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.ppt
Civil Aviation Safety and Engineering Academy
 
Access advanced tutorial
Access advanced tutorialAccess advanced tutorial
Access advanced tutorial
catacata1976
 
MS Access 2010 tutorial 5
MS Access 2010 tutorial 5MS Access 2010 tutorial 5
MS Access 2010 tutorial 5
Khalfan Alshuaili
 
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 access
Rai 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 access
Rai 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

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

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

UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Zilliz
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Vladimir Iglovikov, Ph.D.
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Zilliz
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 

Recently uploaded (20)

UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
Introducing Milvus Lite: Easy-to-Install, Easy-to-Use vector database for you...
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 

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.