Welcome: Presented By:PALAK KAKKAR (302) Poorvi Singhal (303) Year Under The Guidance Of: Mrs. Laxmi Meher
Welcome: Presented By:PALAK KAKKAR (302) Poorvi Singhal (303) Year Under The Guidance Of: Mrs. Laxmi Meher
QUERIES
OBJECTS
FORMS
REPORTS
TABLES
MEANING
• This object allows to create the data tables with their respective
fieldnames, data types and the data properties to store the data.
• Here, rows are referred to as RECORDS and columns are referred to as
FIELDS.
CREATING TABLES
• Click on the ‘Create’ tab.
• Click on ‘Table Design’ in the Tables group.
• This results in providing a table design window which has three columns, Field Name,
Data Type and Description.
Field Name: It refers to the column name of the table being created.
Creating a Query
• Click on Query Design in Query group on Create tab.
• Add the desired tables. If the list of the tables doesn’t appear then right click in the
Object Relation Pane and choose Show Table.
• Either Double click on a field of a table to include that in the query or drag and drop
the field from the table to Field in the Design grid.
• Set the criteria for data retrieval.
• Click on the Run in the results group.
• Save the query.
SYNTAX FOR QUERIES
1.The First Letter: Go to Design Grid and in Criteria, write Like “the Letter*” or “the Letter*”.
2. The Last Letter: Go to Design Grid and in Criteria, write Like “*the Letter”or “*the Letter”.
3.The First and the Last letter: Go to Design Grid and in Criteria, write Like “the first Letter* the
last letter” or “the first letter*the last Letter”.
4.The number of Alphabets: Go to Design Grid and in Criteria, write Like “????..”or “????..”.
5.The first and Last letter and the number of characters: Go to Design Grid and in Criteria, write
Like
“the first Letter???The last letter” or “the first Letter???The last letter”.
6.Negative Query: It is used to exclude some records from displaying with the other records.
Write Not “S*” under criteria in Design Grid.
7.And and Or command: Or command is used when one of the specified conditions needs to be
satisfied while And command is used when both the conditions are required to be satisfied.
8.Queries with “<,> and =” for the numbered field:
more than: “>”, less than: “ <”, equals to: “ =”, more than equals to: “ >=”, less than
equals to: “ <=”
QUESTION
Create the following Student-Teacher database with following tables and perform (a) to (g) Queries on them.
Create a Student table with the following fields
Roll No., Univ. Roll No., First Name, Last Name, Date of Birth, Father’s Name, Course Address, Telephone No., Percentage, Fees
paid(>28000), Category
Create a Teacher Table with the following fields:
Code No., Date of Joining, Name, Address, Telephone No. Department, Salary
Create a Taught Table with the following fields:
Code No. of the Teacher, Roll No. of the Student, Subject
(a) Create a Query consisting of names of all students whose roll no. is greater than 5 and who are born in the span from jan'
97 to july' 01.
(b) Create a Query consisting of Names and Department of all teachers whose
1-Name begin with ‘A'or 'R' or 'S'.
2-Name ends with ‘I’
3-Name begin with ‘R’ and ends with ‘I’
4-5 letters name begin with ‘R’
5-4 letters name
(c) List the student table in the order of their Date of Birth.
(d) Create a Query consisting of Department in which new teachers joined after July's 96
(e) Create a Query consisting of Names of students who are not in general category and whose percentage lies between 50
and 55.
(f) Create a Query consisting of Names and Addresses of students who are taught by teachers who were appointed afte July’
96. Also display the names of teachers. Group the data by names of teachers.
(g) Create a Query consisting of Names and Department of all teachers representing their savings.
SOLUTION
C:\Users\hp\Desktop\CAIB\303\Presentation\PRACTICAL.accdb
FORMS
This object allows to create an appropriate user interface to formally interact with the
tables and the queries.
It allows the users users to enter, modify and view records or data which is stored in
tables.
REPORTS
• This object is used to create reports ,the source of information content of which is based
on tables, queries or both.
• Reports can be customised i.e, are designed according to requirement of the end user.
• It offers the users the ability to present the data stored in tables in print.
For example-fee slips, train tickets, etc.
CONCLUSION
• MS Access is far stronger at handling at handling non numerical data, like names
and descriptions that plays a big role in any database.
• Access is able to sort and analyze the non numerical data also.
• In Access, even complicated tasks can be simplified and made fairly user friendly.
THANK YOU