Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 21

DEPARTMENT OF TECHNICAL EDUCATION

GOVERNMENT OF ANDHRA PRADESH


Name of the Faculty : USHA RANI JASTY
DESIGNATION : Sr. Lecturer in CCP
Branch : D.C.C.P.
Institute : Government Polytechnic for Women,
: Kakinada, E.G. District.
Semester : 3rd Semester
SUBJECT : Computer Packages
Subject Code : CCP – 305
Major Topic : Ms Access
Duration : 50 minutes
Sub Topic : Action Queries
Teaching Aids : PPT and visuals

CCP305.33 1
Objective

On completion of this period, you would be


able to:

 Create Make-Table Query

 Create Delete Query


 Create Queries on Multiple
CCP305.33
Tables 2
Structure

 Make Table query – Procedure


 Delete query – Procedure
 Queries on multiple Tables

CCP305.33 3
Recap

 In the last period, you learned


 Creation of Append Query
 Which is useful for Appending records
 From one table to another table
 Creation of Update Query
 Which is useful to update records of the
table

CCP305.33 4
Creating Make-Table Query
Step 1 Open the database

Fig-1 showing database window


CCP305.33 5
Step 2
Select “Query Tab and “New” button

Fig-2 showing selection of query


CCP305.33 6
Step 3
Select “Design View” and Click on “OK”

CCP305.33 7
Step 4
Select the table and click on “Add” and “Close”

Fig-4showing table selection


CCP305.33 8
Step 5
Select the required field and drag into the field box

Fig-5 showing field selection CCP305.33 9


Continued

CCP305.33 10
Step 6
Select “Make-Table Query” Option from Query Menu

Fig-6 showing make table query option


CCP305.33 11
Step 7
Enter the Table Name and Click on “OK”

Fig-7 showing giving a name to new table


CCP305.33 12
Delete Query

 Step 1 - Open the database


 Step 2 - Select “Query” and “New”
 Step 3 - Select “Design View”
 Step 4 - Select the Table and Click on “Add”
and “Close” Buttons
 Step 5 - Select “Delete Query” option from
Query Menu

CCP305.33 13
Step 6
Drag the required fields and enter Condition

Fig-8 CCP305.33 14
 Step 7 - Select “Run” to run the query

CCP305.33 15
Creation of Multiple Queries on
Multiple Tables

 Step 1 - Open the database


 Step 2 - Select “Query” and “New”
 Step 3 - Select “Design View”
 Step 4 - Add more than one Table and
Click on “Close” button
 Step 5 - Select the Queries and
conditions
 Step 6 - Select “Run” option from
“Query” Menu
CCP305.33 16
Summary
 Make-Table Query
 Creates a new table from the results of a
Query
 Can be created on Multiple tables

 Delete Query
 Deletes a group of records with a Query
from a Single table or Multiple Table

CCP305.33 17
Summary (Contd…)
 Multiple Queries on Multiple Tables

 Multiple queries can be created on Multiple


Tables
 The only difference is Multiple Tables should be
selected from SHOW TABLE

CCP305.33 18
QUIZ

1. What is the query to create a new table?


ANS : Make – Table query
2. What is the query to delete records?
ANS : Delete query

CCP305.33 19
Exam Questions
1. Explain the procedure to create Make-Table
Query
OR
Explain the procedure to create a new table
from the results of a Query
4. Explain the procedure to create Query for
deleting records from the table
5. Explain the procedure to create Query on
Multiple tables

CCP305.33 20
THANK YOU

CCP305.33 21

You might also like