Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Hands On Exercise
Create Following tables
Table: Customer
Cust_Id
Text
Cust_title
Text
Cust_FName
Text
CustLName
Text
Cust_City
Text
Cust_Contact_ Text
No
Should start
with C
Should not be
NULL
Should not be
NULL
Should not be
NULL
Should not
exceed 10
digit
mdp@somaiya.edu
1
Table: Item
Item_Id
Text
Item_Name
Text
Item_Rate
Number
Sup_id
Text
Table: Supplier
Supplier_Id
Text
Should start
with I
Should be
selected from
list
Should not be
negative or
zero
Should start
with S
mdp@somaiya.edu
2
Supplier_Name
Text
Should not
be NULL
Supplier_Addres Text
s
Suppl_Contact_ Text
No
IS_Supplier_Mu Yes/no
mbai
Table: Order
Order_No
Text
Order_Date
Cust_ID
Date
Text
Should start
with O
mdp@somaiya.edu
3
Table: Order_Detail
Order_No
Text
item_Id
Text
Quantity
Number
It should be
greater than
zero
Relationships
Click on Database Tools and choose Relationships. Add both tables as seen below
mdp@somaiya.edu
4
When both tables have been selected, close the window. Click in Code No from the
first table and drag into Code No in the second table. This will bring up the
following window.
mdp@somaiya.edu
5
Click Create and a line will now join the 2 tables. There is now a relationship
between the 2 tables.
mdp@somaiya.edu
6
Queries
Perform following Queries related to order form
1)
2)
3)
4)
5)
6)
mdp@somaiya.edu
7
31) Update the mobile number of customer having cust_id C101 to 9696961515
Delete Queries
32) Delete record from Supplier table having supplier_id S103
33) Display records of those customers who are staying in City, where city name will be
provided by user at runtime.
34) Delete record from supplier table, accept supplier_id at runtime
Report Creation
39) Create report showing list of all customer name and contact number.
40) Create a report which displays details of all order wise total amount
41) Create report of those customers who are staying in City, where city name will be
provided by user at runtime.
mdp@somaiya.edu
9
mdp@somaiya.edu
10