0% found this document useful (0 votes)
125 views1 page

Q. Create Table CLIENT - MASTER, Used To Store Product Information

The document details the creation of a Client_master table to store client information using SQL commands. It creates the table with various columns, then alters the table by dropping two address columns. Data is then inserted into the table for several clients listing their client number, name, city, pincode, state and balance due. The table is queried to view the inserted client records.

Uploaded by

mr_devashish
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)
125 views1 page

Q. Create Table CLIENT - MASTER, Used To Store Product Information

The document details the creation of a Client_master table to store client information using SQL commands. It creates the table with various columns, then alters the table by dropping two address columns. Data is then inserted into the table for several clients listing their client number, name, city, pincode, state and balance due. The table is queried to view the inserted client records.

Uploaded by

mr_devashish
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/ 1

Q. Create Table CLIENT_MASTER, used to store product information.

SQL> create table Client_master


(Clientno varchar2(6),Name varchar2(20),Address1 varchar2(30),Address2 varchar2(30),City
varchar2(15),Pincode number(8),State varchar2(15),Baldue number(10,2));

Table created.

SQL> alter table Client_master


2 drop column address1;

Table altered.

SQL> alter table Client_master


2 drop column address2;
Table altered.

SQL> insert into Client_master


2 values('&CLIENTNO','&NAME','&CITY',&Pincode,'&state',&baldue);
SQL> select * from Client_master;

CLIENT NAME CITY PINCODE STATE


------ -------------------- --------------- ---------- ---------------
BALDUE
----------
c00001 Ivan Bayross Mumbai 400054 Maharashtra
15000

c00002 Mamta Muzumdar Madras 780001 Tamil Nadu


0

c00003 Chhaya Bankar Mumbai 400057 Maharashtra


5000

c00004 Ashwini Joshi Banglore 560001 Karnataka


0

c00005 Hansel Colaco Mumbai 400060 Maharashtra


2000

c00006 Deepak Sharma Manglore 560050 Karnataka


0

11/2/2021
Created By:- Ashwin Gattani
BCA-I (S1)

You might also like