Sei sulla pagina 1di 2

Course B.Sc.Eng.Hons.

Class 1st Semester


Faculty of Engineering
SEUSL Subject CS 13001 – Introduction to Computing
Working with Database (MS Access) Lab 13
 All necessary files are available in Moodle as resources.zip

Exercise 01
Importing and Appending Data to Access

1.
 Use importing.accdb and Cutomers.xlsx
 Import all data from “Customers” Excel Sheet.
 Make ‘ID’ As the Primary Key
 Save Table as “CustomerExcell”

2.
 Open “Customers” Excel Sheet
 Create a copy of the Customers work sheet.
 Delete existing records and add some new records to that.
 Save and close the work book.
 Append your nee records to the “CustomerExcell” Table.

Exercise 02
Controlling Input Data.

 Use masks.accdb
 Create an input Mask on Telephone number field as Sri Lankan Format, and All CAPS with 3
Character for State field.

Exercise 03
Data Validation

 Use Validation.accdb
 Use validation on HireDate Field As todays date or earlier. And JobRating Field as between 1 to
5. And also add description message to those validation
Exercise 04
Query Types

 Use Parameter.accdb to add parameter query to find customers in state “MI” using Customers-
MidwestRegion Query
 Use Update.accdb to Create an Update Query to enable Benefit Retirement to all fulltime
Employees.
 Use Maketable.accdb to Create a make table Query to create “Manufacturing” employees in
new table. Save as ManufacturingEmployees
 Use delete.accdb to create a delete query to delete orders cancelled on or before 12-31-2011.

Exercise 05
Create both table in a new Access Database named Business, then create a query to display Customer
name, County, and Order Date.

Customer Table

CustomerID CustomerName ContactName Address City PostalCode Country

1 Alfreds Maria Anders Obere Str. 57 Berlin 12209 Germany


Futterkiste

2 Ana Trujillo Ana Trujillo Avda. de la México 05021 Mexico


Emparedados y Constitución D.F.
helados 2222

3 Antonio Moreno Antonio Mataderos México 05023 Mexico


Taquería Moreno 2312 D.F.

Orders Table

OrderID CustomerID EmployeeID OrderDate ShipperID

10308 2 7 1996-09-18 3

10309 37 3 1996-09-19 1

10310 77 8 1996-09-20 2

Potrebbero piacerti anche