ASSIGNMENT -2
2.1.
Table Name : client_master Description : use to store information about clients
For creating database: company
For creating table : client_master Column Name Data Type Size Attributes client_no
Varchar 6
Primary key/first letter must start with ‘C’/not
null
name
Varchar 20 not null
address1
Varchar 30 not null
address2
Varchar 30
city
Varchar 15
state
Varchar 15
pincode
number 6
bal_due
money 10
For inserting values to a table:
Data Output:
Select * FROM client_master;
2.2.
Table name : Product_master Description : Used to store information about products
Column name Data type Size Attributes Product_no
Varchar 6
Primary key/first letter must start with ‘P’
Description
Varchar 5 Not null
Profit_percent
int 3 Not null
Unit_measure
Varchar 10 Not null
Qty_on_hand
Int 8 Not null
Recorder_lvl
Int 8 Not null
Sell_price
money 10 Not null,cannot be 0
Cost_price
money 10 Not null,cannot be 0
For creating table : product_master
For inserting values to a table:
Data Output:
Select * FROM product_master;
2.3.
Table name : Salesman_master Description : Used to store information about salesman working in the company
Column Name Datatype Size Constraints salesman_no
varchar 6
Primary Key/first letter must start with ‘S’
salesman_name
varchar 20 Not Null
address1
varchar 30 Not Null
address2
Varchar 30
city
varchar 20
pincode
number 6
state
varchar 20
sal_amt
money 8
tgt_to_get
number 6 Not null,cannot be 0
ytd_sales
int 6 Not Null, cannot be 0
remarks
varchar 60 Not Null
For creating table:salesman_master
For inserting values to a table