access
access
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
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)
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
• 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)
• Using the form insert records into the employee table L006 PATNA
• Using the report wizard create the report using the following
Fields