0% found this document useful (0 votes)
905 views

It Ad Access

1. A Company database was created with two tables: Employee and Dept. The Employee table contains fields for Empid, EmpName, Deptid, and Salary. The Dept table contains fields for Deptid and DeptName. 2. A one-to-many relationship was created between the Employee and Dept tables using the common Deptid field. Referential integrity was applied to the relationship. 3. Sample data was inserted into both tables, with multiple employees assigned to departments.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
905 views

It Ad Access

1. A Company database was created with two tables: Employee and Dept. The Employee table contains fields for Empid, EmpName, Deptid, and Salary. The Dept table contains fields for Deptid and DeptName. 2. A one-to-many relationship was created between the Employee and Dept tables using the common Deptid field. Referential integrity was applied to the relationship. 3. Sample data was inserted into both tables, with multiple employees assigned to departments.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

Two tables 7 marks Queries 7 marks Forms 3 marks Report 3 marks Create a Company database and save it in your

your Desktop. 1. Create a new table by name Employee with three fields and their properties as shown below: Field Name Empid Data type Text Field Size or Format 7 (1+1+1) Primary Key Validation Rule E???? EmpName Deptid Salary 2. below: Field Name Deptid DeptName Data type Number Text Field Size or Format Short Integer 20 Text Number Currency 25 Short Integer Validation Rule : >100 (1+1+1) Primary Key Validation Rule D??? LookUp values in Combo box 1. Accounting 2. Budget 3. Finance 4. Personal 5. Research and Development 3. Using the Deptid fields from both Employee table and the Dept tables create a one-to many relationship between the tables. applied to the relation. (1) Referential integrity should be

Create a new table by name Dept with two fields and their properties as shown

4. Insert the rows for the table Emp. (0.5) Deptid D001 D002 D003 D004 D005 DeptName Accounting Budget Finance Personal Research and Development

5. Insert the rows for the table Emp. Empid E0001 E0002 E0003 E0004 E0005 E0006 EmpName Jones James Richard John Freddy Sharon Deptid D002 D003 D001 D003 D004 D005 Salary 450 150 250 650 800 350

(0.5)

6. Using Employee table write a query to sort the EmpName| field in descending order. Save the Query as Q1. (1)

7. Using the fields Empid, EmpName, EmpAddress, create a query that will show all Married Employees. (2)

8. Using the Deptid from Employee table and Deptid from Dept table, create a query that will show the name of the employee and department name who work for Research and Development. (2)

9. Create a query that will show the employee details whose first letter is J. (1) 10. Create a query that will show the Empid, EmpName, DeptName whose salary exceeds 300. (1)

11. Create a form for Employee table and Dept table. 12. Create a report for Employee table and Dept table.

(3) (3)

You might also like