MS Access Lab Latest New
MS Access Lab Latest New
MIS
MS-ACCESS LAB
RECORD
1. Create a student table in MS-Access with the following features:
a) Roll Number e) Total
b) Student Name f) Average
c) Class g) Result
d) Marks in Subject 1, Subject 2, Subject 3
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs MS - Office MS – Access. MS - Access application will be opened.
Step2: To open a new database, Click on Office Button, Click on New and select the Blank Database.
Enter the Database name as College and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be displayed.
Enter the table name as Student.
Step4: Enter the Field name and relevant data type as below:
**************************************************************************
2. Create a Personal Information table in MS –Access with the following fields:
a) First Name b) Middle Name
c) Last Name d) Nationality
e) Gender f) Temporary Address
g) Permanent Address.
Generate a Form and Report.
Procedure:
Step1: Start MS-Access in the following way:
Start All ProgramsMS – OfficeMS – Access. MS - Access application will be opened.
Step2: To open a new database, Click on Office Button, Click on New and select the Blank Database.
Enter the Database name as College and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be displayed.
Enter the table name as Personal Information.
Step4: Enter the Field name and relevant data type as below:
Step5: Select table view, save the table.
Step6: To enter the records into the table, double click the ‘Personal Information’: Table
option on the left side, enter records.
Step8: You can add data to the table using this form, by clicking on New(blank) record.
Step9: To create Report, Create Report, report is created.
***************************************************************************
3. Create an Inventory table in MS-Access with fields:
a) Product ID
b) Product Name
c) Product Quantity
d) Product Price
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs MS - Office MS – Access. MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the Blank Database.
Enter the Database name as Company and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be displayed.
Enter the table name as Inventory.
Step4: Enter the Field name and relevant data type as below:
Procedure:
Step1: Start MS-Access in the following way:
Start-All ProgramsMS - OfficeMS – Access. MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the Blank Database.
Enter the Database name as College and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be displayed.
Enter the table name as Student.
Step4: Enter the Field name and relevant data type as below:
Step7: To sort the data by Sname, select SName column, right click on inverted triangle, select sort
option.
Step8: Data will be sorted in ascending order. The sorted data is as follows:
Step9: Add columns Total, Percentage in design view and save.
Step10: Click CreateQuery Design Show Table dialogue box will be displayed, select
‘stdtable’ click on Add button then Close button.
Step11: Select column name Total in the grid.
Step12: To calculate Total, write the following query in: Update To
Step7: To sort the data by Sname, select SName column, right click on inverted triangle, select sort
option.
Step8: Data will be sorted in ascending order. The sorted data is as follows:
Step9: Add columns Total, Percentage in design view and save.
Step10: Click Create Query Design Show Table dialogue box will be displayed, select
‘stdtable’ click on Add button then Close button.
Step11: Select column name Total in the grid.
Step12: To calculate Total, write the following query in: Update To
Step22: Similarly to display students who got <=60% in Total, create the following query:
*************************************************************************
7. Create a database ‘student2’. Also create table ‘stdmarks’ and execute the following queries:
a) Display All the students who got<25 in individual subjects.
b) Display all the students who are failed in individual subjects.
c) Increase marks by adding 5 marks whose marks are <25.
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs MS - Office MS – Access. MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the Blank Database.
Enter the Database name as College and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be displayed.
Enter the table name as Stdtable.
Step4: Enter the Field name and relevant data type as below:
Step9: To display all the students who failed in individual subjects, Click on Create Query Design as
follows:
Step10: Select Run option. Output will be displayed as follows:
**********************************************************************************
8. Create a database ‘Student3’. Also create table ‘stdmarks1’ and execute the following queries.
Step8: Add columns Total, Percentage, Result and Grade in Design View.
Step9: Follow the procedure in Question1 to update Total, Percentage and Result.
Step10: To update Grade, click on Create Query Design Update, as follows:
IIf([Percentage]>=90, ‘E’, IIf([Percentage]>=75, ‘A’, IIf([Percentage]>=60, ‘B’, IIf([Percentage]>=50,
‘C’, IIf([Percentage]>=36, ‘D’, ‘F’))))
Step11: Select Run option. Output will be displayed as follow:
***********************************************************************
Procedure:
Step1: Start MS-Access in the Star MS-Access in the following way:
Start ->All Programs->MS – Office->MS – Access .MS-Access application will be
opened.
Step2: To open a new database, Click on Office Button, Click on New and select the
Blank Database. Enter the Database name as Employee and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will
be displayed.
Enter the table name as emp.
Step4: Enter the Fieldname and relevant data type as below:
Procedure:
Step1: Start MS-Access in the Star MS-Access in the following way:
Start ->All Programs->MS – Office->MS – Access .MS-Access application will be opened.
Step2: To open a new database, Click on Office Button, Click on New and select the
Blank Database. Enter the Database name as Employee and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will
be displayed.
Enter the table name as emp.
Step4: Enter the Fieldname and relevant data type as below:
Step5: Open table in table view and enter records.
Step6: To list the employees who work in Dept. No. 10, Click on
Create Query DesignUpdate, as follows:
*********************************************************************
Procedure:
Step1: Start MS-Access in the Star MS-Access in the following way:
Start ->All Programs->MS – Office->MS – Access. MS-Access application will be
opened.
Step2: To open a new database, Click on Office Button, Click on New and select the
Blank Database. Enter the Database name as Employee and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will
be displayed.
Enter the table name as emp.
Step4: Enter the Fieldname and relevant data type as below:
**********************************************************************************
12. Create ‘Employee3’ database and table ‘Emp3’.
Procedure:
Step1: Start MS-Access in the Star MS-Access in the following way:
Start ->All Programs->MS – Office->MS – Access .MS-Access application will be
opened.
Step2: To open a new database, Click on Office Button, Click on New and select the
Blank Database. Enter the Database name as Employee and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will
be displayed.
Enter the table name as emp.
Step4: Enter the Fieldname and relevant data type as below:
Procedure:
Step1: Start MS-Access in the Star MS-Access in the following way:
Start ->All Programs->MS – Office->MS – Access .MS-Access application will be opened.
Step2: To open a new database, Click on Office Button, Click on New and select the
Blank Database. Enter the Database name as Employee and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be displayed.
Enter the table name as emp.
Step4: Enter the Fieldname and relevant data type as below:
Step5: Open table in table view and enter records.
Step6: To display Department Numbers and Employee Names, click on Create→ Query Design as
follows:
(a)Prepare the report to display lowest course fees with college name.
(b)Prepare the Report to display all students who are pursuing B. Com (Computers).
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs MS - Office MS - Access
MS – Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the Blank Database.
Enter the Database name as Course and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be displayed.
Enter the table name as Coursedtl.
Step4: Enter the Field name and relevant data type as below:
Step6: To create Report to display the course and college having Lowest Course Fees, we have to create
a query. To create the query, click on Create→ Query Design →Total as follows:
Step7: Select Run option. Output will be displayed as follows:
Step8: After the query is executed, click on Create→ Report→ Report Wizard.
Complete the steps in the Report Wizard, the Report will be displayed as follows:
Step9: To create Report to display all the students who are pursuing BCom Computers,
click on Create→ Query Design as follows:
Step10: Select Run option. Output will be displayed as follows:
Complete the steps in the Report Wizard, the Report will be displayed as follows:
***************************************************************************
15. In the following table, generate the queries for the following:
(a) Display the Course and College having Lowest Course Fees.
(b) Display all the Courses pursuing by the PQR College.
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs MS - Office MS - Access
MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the Blank Database.
Enter the Database name as Course and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be displayed.
Enter the table name as Coursedtl.
Step4: Enter the Field name and relevant data type as below:
16. Create a Library Database of your College having following fields and enter at least 30 records in it:
Field Name Description
Book Code Primary Key
Book Title Subject Name
Publisher Book Publisher Name
No. of Copies Quantity in one Invoice
No. of Pages Total Pages in Book
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs → MS - Office→ MS - Access.
MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the
Blank Database. Enter the Database name as College and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will
be displayed. Enter the table name as Library.
Step4: Enter the Field name and relevant data type as below:
Step5: Save and Open table in table view and enter records.
******************************************************************************
17. From the College Library database, find out the following:
(a)Total No. of copies of books subject -wise
(b)A report displays all books group by Publisher.
(c)A report displays all books group by Book Title.
(d)A report display as all books group by Book Edition. Procedure:
Step1: Start MS-Access in the following way:
Start All Programs→ MS - Office→ MS – Access. MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the
Blank Database. Enter the Database name as College and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box
will be displayed. Enter the table name as Library.
Step4: Enter the Field name and relevant data type as below:
Step5: Save and Open table in table view and enter records.
Step6: To display Total No. of Copies of Books subject-wise, click on Create→ Query Design→ Total as
follows:
Step7: Select Run option. Output will be displayed as follows:
Step8: To display all the books by Publisher, click on Create→ Query Design→ Add Table Total as
follows:
Step10: To create the report that displays all books group by Publisher, use the query in Step 8 and
Step9.After the query is executed, click on Create → Report→ Report Wizard.
Complete the steps in the Report Wizard, the Report will be displayed as follows:
Use same procedure for generating reports group by, Book title, Book Edition.
***********************************************************************
18. Create the ‘Order’ database and a table “Orderdtl’ having following records:
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs→ MS - Office→ MS – Access. MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the
Blank Database. Enter the Database name as Order and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be
displayed. Enter the table name as Orderdtl.
Step4: Enter the Field name and relevant data type as below:
Step5: Save and Open table in table view and enter records.
Step6: To display all the Order No. which have not yet delivered, click on Create→ Query Design as
follows:
Step8: To display all the Orders of LED Monitors and CPU, click on Create Query Design as follows:
*******************************************************************************
19. Create a ‘Sales’ Database and a table ‘Salesdtl’ having following fields and data:
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs→ MS - Office→ MS – Access. MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the
Blank Database. Enter the Database name as Sales and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be
displayed. Enter the table name as Salesdtl.
Step4: Enter the Field name and relevant data type as below:
Step5: Save and Open table in table view and enter records.
********************************************************************************
20. Generate the queries to find out the followings from the above ‘Sales’ Table:
(a) Total sale of all the Branches.
(b) Total sale group by Branches.
(c) Maximum sale of individual branch.
(d) Maximum sale in all branches.
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs→ MS - Office→ MS – Access. MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the
Blank Database. Enter the Database name as Sales and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be
displayed. Enter the table name as Salesdtl.
Step4: Enter the Field name and relevant data type as below:
Step5: Save and Open table in table view and enter records.
Step6: To generate total sales of all branches. Create→ Query Design→ Add Table→ Total as follows:
Step8: To generate total sales group by Branches, click Create→ Query Design Add Table Total as
follows:
Step9: Select Run option. Output will be displayed as follows:
Step10: To generate total sales of all branches, click Create a Query Design Add Table Total as
follows:
Step12: To generate Maximum sale of all branches, click Create→ Query Design → Add Table→ Total as
follows:
Step13: Select Run option. Output will be displayed as follows:
*****************************************************************************
21.Create a ‘Stock’ database having an ‘Inventory’ Table as per the following:
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs → MS - Office →MS – Access. MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the Blank Database.
Enter the Database name as Company and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be displayed.
Enter the table name as Inventory.
Step4: Enter the Field name and relevant data type as below:
Step5: Open table in table view and enter records.
**********************************************************************
22. Generate the following queries from the above ‘Inventory’ Table:
(a)Item-wise Total Purchase Price.
(b)Display new purchase price after adding 15% increase in purchase price.
(c)Display new Purchase quantity after deducting 5% from the quantity
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs→ MS - Office→ MS – Access. MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the Blank Database.
Enter the Database name as Company and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be displayed.
Enter the table name as Inventory.
Step4: Add column ‘Total Purchase Price’ to table in design view.
Step5: To update item wise total purchase price. Create a query by clicking the following:
Query Design Add table Update
Step6: Select Run option. Output will be displayed as follows:
Step7: To display new purchase price adding 15% increase. Create a query by clicking the following:
Query Design Add table Update
Step8: Select Run option. Output will be displayed as follows.
Step9: To display new purchase quantity after deducting 5%. Create a query by clicking the following:
Query Design Add table Update
Step9: To display all the items which has Closing Stock < 100, Create a query by clicking the following:
Query Design Add table Update.
Step10: Select Run option. Output will be displayed as follows:
Step11: Add column Remark to the table in Design view.
Step12: To update if closing stock is less than 100 then remark as “Re-Order Level” otherwise
“Enough Stock”. Create a query by clicking the following:
Q u e r y Design Add table Update
******************************************************************************
24. Create a database ‘student2’. Also create table ‘stdmarks’ and execute the following
queries:
SRollNoS Name English SL FA BE BOM IT
101 Rajender 22 20 23 20 23 20
102 Arvind 20 21 20 23 20 20
103 Krishna 50 52 58 50 53 54
104 Harish 52 55 51 56 57 59
105 Rajesh 86 85 81 80 89 90
(a) All the students who got<25 in individual subjects.
(b) Display all the students who are failed in individual subjects.
(c) Increase marks by adding 5 marks whose marks are <25.
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs→ MS - Office→ MS – Access. MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the Blank Database.
Enter the Database name as College and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be displayed.
Enter the table name as Stdtable.
Step4: Enter the Field name and relevant data type as below:
Step7: To display all the students who got <25 in individual subjects, Click on Create →Query Design as
follows:
Step8: Select Run option. Output will be displayed as follows:
Step9: To display all the students who failed in individual subjects, Click on Create→ Query Design as
follows:
*****************************************************************************
25. Create a Personal Information table in MS –Access with the following fields:
a) First Name
b) Middle Name
c) Last Name
d) Nationality
e) Gender
f) Temporary Address
g) Permanent Address Generate a Form and Report.
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs→ MS – Office→ MS – Access. MS - Access application will be opened.
Step2: To open a new database, Click on Office Button, Click on New and select the Blank Database.
Enter the Database name as College and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be displayed.
Enter the table name as Personal Information.
Step4: Enter the Field name and relevant data type as below:
Step5: Select table view, save the table.
Step6: To enter the records into the table, double click the ‘Personal Information’: Table
option on the left side, enter records.
Step8: You can add data to the table using this form, by clicking on New(blank) record.
Step9: To create Report, Create Report, report is created.
********************************************************************************
26. Create a table (student) in access with (name, father name, gender, DOB, phno, address) insert 10
records.
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs→ MS - Office→ MS – Access. MS - Access application will be opened.
Step2: To open a new database, Click on Office Button, Click on New and select the Blank Database.
Enter the Database name as College and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be displayed.
Enter the table name as Student.
Step4: Enter the Field name and relevant data type as below:
************************************************************************
27. Create a FEE table in access with (name, category, course/group, year, fees). Insert 10 records.
Step7: To calculate concession whose category is NCC/NSS/GIRL, create a Query by clicking the
following option: Query Design Update.
********************************************************************************
28. Create a table (person) in access with name, phno, email-id and address insert 10 records. Create a
query to display email id, phno and address when user gives name.
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs→ MS - Office→ MS – Access. MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the Blank Database.
Enter the Database name as Company and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be displayed.
Enter the table name as Person.
Step4: Enter the Field name and relevant data type as below:
Step5: To enter the records into the table, double click the ‘person: Table’ option on the
left side, enter records.
Step6: To display email id, phno, and address for given name, create a Query Design as follows:
Step7: Select Run option. Output will be displayed as follows:
*********************************************************************************
29. Create a SALES table in access with (ID, product name, quantity, sales rate, commission, tax) insert
10 records.
Add new column affiliate earnings.
Write a query to calculate affiliate earnings.
Calculate affiliate earnings= (quantity*sales rate) +commission-tax.
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs→ MS - Office→ MS – Access.
MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the Blank Database.
Enter the Database name as Company and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be displayed.
Enter the table name as Sales.
Step4: Enter the Field name and relevant data type as below:
Step5: To enter the records into the table, double click the ‘SALES: Table’ option on the left side, enter
records.
Procedure:
Step1: Start MS-Access in the following way:
Start-All Programs→ MS - Office→ MS – Access. MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the Blank Database.
Enter the Database name as College and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be displayed.
Enter the table name as Student.
Step4: Enter the Field name and relevant data type as below:
Procedure:
Step1: Start MS-Access in the Star MS-Access in the following way:
Start ->All Programs->MS – Office->MS – Access .MS-Access application will be opened.
Step2: To open a new database, Click on Office Button, Click on New and select the
Blank Database. Enter the Database name as Employee and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be
displayed.
Enter the table name as emp.
Step4: Enter the Fieldname and relevant data type as below.
**************************************************************************
32. Create a database ‘Student’. Also create table ‘stdtable’ and execute the following
Queries
(a)Sort the data by SRollno
(b)Display Srollno, Sname, State and Marks where marks > 80
(c)Display Srollno, Sname, State and Marks where Grade= A
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs→ MS - Office→ MS – Access. MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the Blank Database.
Enter the Database name as College and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be displayed.
Enter the table name as Stdtable.
Step4: Enter the Field name and relevant data type as below:
Step6: To enter the records into the data, double click the stdtable: Table option on the left side.
Enter the records.
Step7: To sort the data on the basis of Srollno do the following:
Click on Create Tab, Select Query Design option. A Show Table
dialog box will be displayed. Select the stdtable option and click on
Add Button. The fields in stdtable will be displayed. Then click the
Close button in the Show Table dialog box. In the Sort box click
Ascending option.
Step8: To create query: display Srollno, Sname, State where Marks > 80 do the following: Click on
Create Tab, Select Query Design option.
A Show Table dialog box will be displayed. Select the stdtable option and click on Add Button. The
fields in stdtable will be displayed. Then click the Close button in the Show Table dialog box.
In the field option, select the fields (srollno, sname, state) which you want to display.
In the Marks criteria box enter > 80.
Step9: To create query: display Srollno, Sname, State where Grade = A do the following: Click on
Create Tab, Select Query Design option.
A Show Table dialog box will be displayed. Select the stdtable option and click on Add Button. The
fields in stdtable will be displayed. Then click the Close button in the Show Table dialog box.
In the field option, select the fields which you want to display. In the Grade
criteria box enter = “A”
Run the query by clicking on Run option.
**************************************************************************
33. Create ‘employee’ database and table ‘emp’. Create a Report.
Procedure:
Step1: Start MS-Access in the Star MS-Access in the following way:
Start ->All Programs->MS – Office->MS – Access .MS-Access application will be opened.
Step2: To open a new database, Click on Office Button, Click on New and select the
Blank Database. Enter the Database name as Employee and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be
displayed.
Enter the table name as emp.
Step4: Enter the Fieldname and relevant data type as below.
Step8: You can add data to the table using this form, by clicking on New(blank) record.
Step9: To create Report, Create→ Report, report is created.
*************************************************************************
34. Create a database ‘Library’ and create a table as ‘Books’ and execute the queries
given below:
• Display Book title, Book type, author name where author=Ram and book type=Accounting.
• Display Author Fname, Book type year of publication where year above 2000.
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs→ MS - Office→ MS – Access. MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the
Blank Database. Enter the Database name as Library and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be
displayed. Enter the table name as Books.
Step4: Enter the Field name and relevant data type as below:
Step5: Save the table.
Step6: To enter the records into the data, double click the Books: Table option on the left side.
Step7: To create a query: Display book title, book type, author name where
author = Ram and book type = Accounting
Click on Create Tab, select Query Design option.
A Show Table dialog box will be displayed. Select the Books option and click on
Add Button. The fields in books will be displayed. Then click the Close button in the Show Table
dialog box.
In the field option, select the fields which you want to display like Book Title, Book type, Author
Name.
In the Book Type criteria box, enter =”Accounting” and in the Author Fname
criteria box, enter =”Ram”
Step8: To create a query: Display Author Fname, Book Type, Year of Publication where year above
2000
Click on Create Tab, select Query Design option.
A Show Table dialog box will be displayed. Select the Books option and click on Add Button. The
fields in books will be displayed. Then click the Close button in the Show Table dialog box.
In the field option, select the fields which you want to display like Author Fname, Book type, Year of
Publication.
In the Year of Publication criteria box, enter >2000
**********************************************************************************
35. Create Business table by using Design Table with year own data (at least 6 fields and 10 records).
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs→ MS - Office→ MS – Access, MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and
select the Blank Database. Enter the Database name as Company and click on Create button.
Step3: Click the Table object and then right click, then select Design View.
A dialog box will be displayed. Enter the table name as Business.
Step4: Enter the Field name and relevant data type as below:
Step6: To enter the records into the data, double click the stdtable: Table option on the left side.
Enter the records.
step7: To create Report, Create→ Report, report is created.
*******************************************************************************
38.Create ‘Student database table ‘and also create a Report.
SRoll Sname Class State DOB Mark Grade
no
1 Rajesh B.Com-I AP 21-09-84 81 A
2 Rames B.Com-II MP 31-08-85 72 B
h
3 Rakesh B.Com-III UP 30-06-89 90 A
4 Suresh B.Com-II AP 25-07-82 36 B
5 Vignesh B.Com-I MP 02-02-83 45 C
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs→ MS - Office→ MS – Access. MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the Blank Database.
Enter the Database name as College and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be displayed.
Enter the table name as Stdtable.
Step4: Enter the Field name and relevant data type as below:
********************************************************************************
39. Create a employee database and Create a Report.
Emp.No Ename Job DOJ Basic Deptno Sex
101 Ajay Clerk 17-12-01 6000 20 Male
102 Arvind Salesmen 20-02-02 5000 30 Male
103 Rahul Salesmen 22-03-01 5500 20 Male
104 Rehma Manager 01-04-01 1200 40 Male
n 0
105 Sahil Manager 20-09-02 1150 10 Male
0
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs→ MS - Office→ MS – Access. MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the Blank Database.
Enter the Database name as College and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be displayed.
Enter the table name as Stdtable.
Step4: Enter the Field name and relevant data type as below:
Step5: Save the table.
Step6: To enter the records into the data, double click the stdtable: Table option on the left side.
Enter the records.
Step7: Create query to display the books of information technology using query design as follows.
Step9: Create query to display the books of Himalaya publications using query design as follows.
Step5: Save the table Stdtable. And enter the records as follows.
*****************************************************************************
42. Create a table employee with (idno, name, job, age, salary). Insert 10 records. Create a query to
display the information of all managers.
Create a query to display the names of employs who’s salary is >15000.
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs→ MS - Office→ MS - Access, MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the
Blank Database. Enter the Database name as Company and click on Create
button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be
displayed. Enter the table name as Employee. Click on OK button.
Step4: Enter fieldnames and relevant data types.
Step5: open table in table view enter records.
********************************************************************************
43. Create a report for the student table with rno, name, fa, be, it, total and average.
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs→ MS - Office→ MS – Access, MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the
Blank Database. Enter the Database name as College and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box
will be displayed. Enter the table name as Stdtable.
Step4: Enter the Field name and relevant data type as below:
Step5: Save the table Stdtable. And enter the records as follows.
Step5: Save and Open table in table view and enter records.
Step6: To display Total No. of Copies of Books subject-wise, click on Create→ Query Design→ Total as
follows:
Step8: To display all the books by Publisher, click on Create→ Query Design→ Add Table Total as
follows:
Step9: Select Run option. Output will be displayed as follows:
Step10: To create the report that displays all books group by Publisher, use the query in Step 8 and Step
9. After the query is executed, click on Create→ Report→ Report Wizard.
Complete the steps in the Report Wizard, the Report will be displayed as follows:
Use same procedure for generating reports group by, Book title, Book Edition.
*****************************************************************************
45. Create a ‘Stock’ database having ‘Inventory’ table:
Step12: To update if closing stock is less than 100 then remark as “Re-Order Level” otherwise
“Enough Stock”. Create a query by clicking the following:
Q u e r y Design Add table Update
Step5: To enter the records into the table, double click the ‘FEE’: Table option on the left
side, enter records.
Step6: Add new column concession to the table in Design View.
Step7: To calculate concession whose category is NCC/NSS/GIRL, Create a Query by clicking the
following option: Query Design Update.
******************************************************************************
47. Create a database ‘student’. Also Create table ‘stdtable’ and execute the following
Queries
(a)Sort the data by SRollno
(b)Display Srollno, Sname, State and Marks where marks > 80
(c)Display Srollno, Sname, State and Marks where Grade= A
Procedure:
Step1: Start MS-Access in the following way:
Start All Programs→ MS - Office→ MS – Access. MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the Blank Database.
Enter the Database name as College and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be displayed.
Enter the table name as Stdtable.
Step4: Enter the Field name and relevant data type as below:
In the field option, select the fields (srollno, sname, state) which
you want to display.
A Show Table dialog box will be displayed. Select the stdtable option and click on Add Button. The
fields in stdtable will be displayed. Then click the Close button in the Show Table dialog box.
In the field option, select the fields which you want to display. In the Grade criteria box enter =
“A”
**************************************************************************
48. In the following table find out the Followings:
(a)All the Department Nos and Employees Names.
(b) All the Employees who joined in the year 2001.
Procedure:
Step1: Start MS-Access in the Star MS-Access in the following way:
Start ->All Programs->MS – Office->MS – Access .MS-Access application will be opened.
Step2: To open a new database, Click on Office Button, Click on New and select the
Blank Database. Enter the Database name as Employee and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will be displayed.
Enter the table name as emp.
Step4: Enter the Fieldname and relevant data type as below:
Step6: To display Department Numbers and Employee Names, click on Create Query Design as follows:
Step7: Select Run option. Output will be displayed as follows:
***********************************************************************
49. Create a Library Database of your college having following fields and enter atleast
10 records in it:
Field Name Description
BookCode Primary Key
BookTitle Subject Name
Publisher Book Publisher Name
No. of Copies Quantity in one Invoice
No. of Pages Total Pages in Book
Procedure:
Step1: Start MS-Access in the following way:
Start All Program→ MS - Office→ MS - Access.
MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the
Blank Database. Enter the Database name as College and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box will
be displayed. Enter the table name as Library.
Step4: Enter the Field name and relevant data type as below:
Step5: Save and Open table in table view and enter records.
*******************************************************************************
50. From the College Library database, find out the following:
(a)Total No. of copies of books subject -wise
(b)A report displays all books group by Publisher.
(c)A report displays all books group by Book Title.
(d)A report display as all books group by Book Edition. Procedure:
Step1: Start MS-Access in the following way:
Start All Programs→ MS - Office→ MS – Access. MS - Access application will be opened.
Step2: To open a new database, click on Office Button, click on New and select the
Blank Database. Enter the Database name as College and click on Create button.
Step3: Click the Table object and then right click, then select Design View. A dialog box
will be displayed. Enter the table name as Library.
Step4: Enter the Field name and relevant data type as below:
Step5: Save and Open table in table view and enter records.
Step6: To display Total No. of Copies of Books subject-wise, click on Create Query Design total as
follows:
Step10: To create the report that displays all books group by Publisher, use the query in Step 8 and Step
9. After the query is executed, click on Create→ Report→ Report Wizard.
Complete the steps in the Report Wizard, the Report will be displayed as follows:
Use same procedure for generating reports group by, Book title, Book Edition.
--------------*----------------
INDEX
S.NO Program name PG.NO
1 Create a student table in MS-Access with the following features.
2 Create a Personal Information table in MS –Access with the
following fields.
3 Create an Inventory table in MS-Access with fields.
4 Create a database ‘college’ and table ‘student’. The following are
the details of the table.
5 Create a database ‘student’. Also create table ‘stdtable’ and
execute the following Queries.
6 Create a database ‘Student1’. Also create table ‘stdtable’ and
execute the following Queries.
7 Create a database ‘student2’. Also create table ‘stdmarks’ and
execute the following queries.
8 Create a database ‘Student3’. Also create table ‘stdmarks1’ and
execute the following queries.
9 Create ‘Employee’ database and table ‘Emp’.
10 Create ‘Employee’ database and table ‘Emp1’
11 Create ‘Employee2’ database and table ‘Emp2’.
12 Create ‘Employee3’ database and table ‘Emp3’.
13 In the following table, find out the following:
a) All the Department No. s and Employee Names.
b) All the Employees who joined in the year 2001.
14 Create ‘Course’ database and ‘Coursedtl’ table having following
records.
15 In the following table, generate the queries for the following.
16 Create a Library Database of your College having following fields
and enter at least 30 records in it.
17 From the College Library database, find out the following.
18 Create the ‘Order’ database and a table “Orderdtl’ having
following records.
19 Create a ‘Sales’ Database and a table ‘Salesdtl’ having following
fields and data.
20 Generate the queries to find out the followings from the above
‘Sales’ Table.
21 Create a ‘Stock’ database having an ‘Inventory’ Table as per the
following.
22 Generate the following queries from the above ‘Inventory’ Table.
23 Create a ‘Stock’ database having ‘Inventory’ table.
24 Create a database ‘student2’. Also create table ‘stdmarks’ and
execute the following Queries.
25 Create a Personal Information table in MS –Access with the
following fields.
26 Create a table (student) in access with (name, father name,
gender, DOB, phno, address) insert 10 records.
27 Create a FEE table in access with (name, category, course/group,
year, fees). Insert 10 records.
28 Create a table (person) in access with name, phno, email-id and
address insert 10 records. Create a query to display email id,
phno and address when user gives name.
29 Create a SALES table in access with (ID, product name, quantity,
sales rate, commission, tax) insert 10 records.
30 Create a database ‘Club’ and table ‘Member’. The following are
the details of the table.
31 Create ‘employee’ database and table ‘emp’.
32 Create a database ‘Student’. Also create table ‘stdtable’ and
execute the following Queries.
33 Create ‘employee’ database and table ‘emp’. Create a Report.
34 Create a database ‘Library’ and create a table as ‘Books’ and
execute the queries given below.
35 Create Business table by using Design Table with year own data
(at least 6 fields and 10 records).
36 Create Personal table by using Table Design with your own data
(at least 6 fields and 10 records).
37 Create ‘Student database table ‘and also create a Report.
38 Create ‘Student database table ‘and also create a Report.
39 Create a employee database create a Report.
40 Create table textbook with the following fields. Insert 10 records.
41 Create a table student with the following fields (rno, name, fa
marks, be marks, it marks, total and average). Insert 10 records,
calculate total = fa+be+it. Average=total/ no of subjects.
Create a query to display all information of student who secured
>75 marks in IT subject.
Create a query to display name, total and average who’s average
is > 80.
42 Create a table employee with (idno, name, job, age, salary).
Insert 10 records. Create a query to display the information of all
managers.
Create a query to display the names of employs who’s salary is
>15000.
43 Create a report for the student table with rno, name, fa, be, it,
total and average.
44 From the College Library database find out the following.
45 Create a ‘Stock’ database having ‘Inventory’ table.
46 Create a FEE table in access with (name, category, course/group,
year, fees,) insert 10 records.
47 Create a database ‘student’. Also Create table ‘stdtable’ and
execute the following Queries.
48 In the following table find out the Followings.
49 Create a Library Database of your college having following fields
and enter atleast 10 records in it.
50 From the College Library database, find out the following.