0% found this document useful (0 votes)
3 views4 pages

access

The document outlines practical sessions for MS-Access, including creating databases, tables, and queries. It provides detailed instructions for inserting records, updating salaries, and creating relationships between tables. Additionally, it includes tasks for generating reports and forms based on employee and department data.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views4 pages

access

The document outlines practical sessions for MS-Access, including creating databases, tables, and queries. It provides detailed instructions for inserting records, updating salaries, and creating relationships between tables. Additionally, it includes tasks for generating reports and forms based on employee and department data.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

REWORLD COMPUTER ORGANIZATION

(58, DESHBANDHU ROAD, KOLKATA-700035)


CONTACT NO-8479071489

MS-ACCESS
Practical Session 1:
1. Create Database
2. Create Table using Design View
3. Insert Records Into the Table
4. Create the select query using query design

1. Create the database (Yourname.accdb)


2. Create the following table using Design View (Table Name->employee)
Field Name Data type
Ecode Text (Primary Key)
Ename Text
Dateofbirth Date/time
Esal Number
City Text
Deptno Number
3. Insert the Following records into the table using datasheet view
Ecode Ename Dateofbirth Esal City Deptno
A001 Shona Ghosh 1/2/2000 15000 KOLKATA 10
A002 Rik Sharma 3/5/2001 20000 PATNA 20
A003 Sangita Roy 12/5/2001 30000 BHOPAL 30
A004 Aloke Maheta 3/8/2004 12000 KOLKATA 20
A005 Raj Khanna 3/8/1990 55000 BHOPAL 30
A006 Sonal Maheta 7/9/1999 18000 KOLKATA 10
A007 Sarita Daga 8/20/2000 25000 LOCKNOW 50
A008 Vidya Maheta 9/8/1998 28000 KANPUR 30
A009 Rodit Khanna 4/7/1995 45000 PATNA 50
A010 Shampa Nag 1/1/1993 12000 LOCKNOW 40

4. Create the following query using design view and save the each query (one,two..)
1. Display all records only name, salary, city
2. Display all fields and records where salary greater than 20000
3. Display all fields and records where salary less than 20000
4. Display all fields and records where salary Between 20000 to 40000
5. Display all fields and records where salary not Between 20000 to 40000
6. Display all fields and records where salary greater than 15000 and city Kolkata
7. Display all fields and records where salary greater than 20000 but not in Kolkata
8. Display all fields and records where department no 10,20,30
9. Display only name, salary where department no 10 and salary greater than 15000
10. Display only code, name, salary, department no where city in Kolkata,patna,Bhopal
11. Display only name , D.O.B where city not in Kolkata, patna, Bhopal
12. Display all fields where name starting character is R
13. Display all fields where name second character is A
14. Display all fields where name starting character is V,R
15. Display all fields where name not starting character is V,R
16. Display all fields where year of birth 2001
17. Display all fields where month of birth is march
18. Display all fields where month of birth are march, April, July
19. Display all fields where year of birth between 1990 to 2000
20. Display all fields where month of birth are not in march, April, July

Practical Session 2:
1. Create Database
2. Create Table using Design View
3. Insert Records Into the Table
4. Create the update query using query design
5. Delete the records using query design
6. Using the make table query create a table [temp] and insert the fields and records
• Create the database (YourNameBirthMonth.accdb)
• Create the following table using Design View (Table Name->employee_salary)

Field Name Data type


Ecode Text
Esal Number
DA Number
TA Number
HRA Number
PF Number
Gross_Salary Number
Income_Tax Number
Net_Salary Number
Salary_Grade Text
Insert the Following records into the table using datasheet view
Ecode Esal DA TA HRA PF Gross_Salary Income _Tax Net_salary Salary_Grade
A001 15000
A002 20000
A003 30000
A004 12000
A005 55000
A006 18000
A007 25000
A008 28000
A009 45000
A010 12000

Create the following update query using design view and save the each query (one,two..)
• Using the update query increase the salary 25% of base salary
• Using the update query update the DA field will be 35.50% of salary
• Using the update query update the TA field will be 12.70% of salary
• Using the update query update the HRA field will be 10.70% of salary
• Using the update query update the PF field will be 5.90% of salary
• Using the update query update the Gross_Salary field will be [Esal+DA+TA+HRA]
• Using the update query update the income tax 30% of gross salary
• Calculate the net salary (Gross_Salary - PF-TAX)
• Calculate the salary grade using the following formula
If salary>=25000 grade “poor” ,if salary between 25000 to 50000 grade “moderate” above
50000 grade “good”

Using the make table query create a table [temp] and insert the fields and records
• Using the make table query create a table(Grade_table) with the following field and data

Ecode Esal Salary_Grade

• Insert a field (total salary) into the Grade_table and insert the net_salary values using
append query
• Delete the records where sal_grade=”poor”
• Delete all records where salary between 40000 to 50000
Practical Session 3: COMMISSION
1. Create relationship
CODE (PK)

COMM_AMT
DEPARTMENT
EMP
DEPTNO LOCATION
CODE (PK) DNAME
LOC_ID LOC_ID(PK)
ENAME
LOC_NAME
SALARY
DEPTNO

EMP (TABLE)
DEPARTMENT (TABLE) COMMISSION(TABLE)

CODE ENAME SALARY DEPTNO DEPTNO DNAME LOC_ID CODE COMM_AMT


E001 Shona Ghosh 5000 10 10 PURCHASE L001 E001 2000
E002 Rik Sharma 9800 20 20 SALES L001 E002 5000
E003 Sangita Roy 7400 10 30 STOCK L002 E003 1200
E004 Aloke Maheta 3600 30 40 MARKETING L003 E004 3500
E006 Raj Khanna 5400 20 50 SALESORDER L001 E006 7000

• Display the name, dname LOCATION(TABLE)


• Display name, salary where location is delhi
LOC_ID LOC_NAME
• Display the name, commission amount where department sales
• Display total salary(salary + comm._amt) where location delhi L001 DELHI
• Display name,salary,dname,comm_amt,loc_name L002 MUMBAI
• Display all employees where current location Kolkata
L003 KOLKATA
Reports & forms L004 CHENNAI

• Using the form insert records into the employee table L006 PATNA
• Using the report wizard create the report using the following
Fields

(Ename, dname, loc_name,c omm._amt)

You might also like