Documents

Assignment 2

Description
PSQL LAB ASSIGNMENT
Categories
Published
of 23
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Related Documents
Share
Transcript
    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
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks