SQL> create table sales_order(s_order_no number(4) primary key,product_no number(4),client_no number(4),del_add varchar(20),del_date date,order_status varchar(20));
Table created.
SQL> desc sales_order;
Name | Null? | Type |
S_ORDER_NO | NOT NULL | NUMBER(4) |
PRODUCT_NO | | NUMBER(4) |
CLIENT_NO | | NUMBER(4) |
DEL_ADD | | VARCHAR2(20) |
DEL_DATE | | DATE |
ORDER_STATUS | | VARCHAR2(20) |
SQL> alter table sales_order add salesman_no number(4);
Table altered.
SQL> desc sales_order;
Name | Null? | Type |
S_ORDER_NO | NOT NULL | NUMBER(4) |
PRODUCT_NO | | NUMBER(4) |
CLIENT_NO | | NUMBER(4) |
DEL_ADD | | VARCHAR2(20) |
DEL_DATE | | DATE |
ORDER_STATUS | | VARCHAR2(20) |
SALESMAN_NO | | NUMBER(4) |
SQL> insert into sales_order values (1,205,101,'mn street','22-oct-2010','delivered',260);
1 row created.
SQL> insert into sales_order values (2,203,102,'ab street','28-nov-1989','pending',500);
1 row created.
SQL> insert into sales_order values (3,33,123,'qw street','24-jun-1991','delivered',500);
1 row created.
SQL> create table sales_order_cc(s_order_no number(4) references sales_order(s_order_no),product_no
number(5), qty_order number(5),product_rate number(10,2),primary key(s_order_no,product_no));
Table created.
SQL> desc sales_order_cc;
Name | Null? | Type |
S_ORDER_NO | NOT NULL | NUMBER(4) |
PRODUCT_NO | NOT NULL | NUMBER(5) |
QTY_ORDER | | NUMBER(5) |
PRODUCT_RATE | | NUMBER(10,2) |
SQL> create table sales_order_tc(s_order_no number(4),product_no number(4),qty_order number(5),product_rate number(5,2),primary key(s_order_no ,product_no),foreign key(s_order_no) references sales_ord
er);
Table created.
SQL> desc sales_order_tc;
Name | Null? | Type |
S_ORDER_NO | NOT NULL | NUMBER(4) |
PRODUCT_NO | NOT NULL | NUMBER(5) |
QTY_ORDER | | NUMBER(5) |
PRODUCT_RATE | | NUMBER(10,2) |
SQL> alter table sales_order add check(product_no >0);
Table altered.
7 comments:
Appreciation for really being thoughtful and also for deciding on certain marvelous guides most people really want to be aware of.
oracle training in bangalore
Thanks for sharing your innovative ideas to our vision. I have read your blog and I gathered some new information through your blog. Your blog is really very informative and unique. Keep posting like this. Awaiting for your further update.If you are looking for any Hadoop admin related information, please visit our website Hadoop administration training institute in Bangalore
BUY WEED ONLINE
BUY IBOGAINE ONLINE
BUY XANAX ONLINE
BUY DANK VAPE ONLINE
BUY COCAINE ONLINE
BUY IBOGAINE CAPSULES ONLINE
BUY LSD ONLINE
BUY BLUE DREAM DANK VAPE ONLINE
BUY MOONROCKS ONLINE
https://k2incenseonlineheadshop.com/
info@k2incenseonlineheadshop.com
k2incenseonlineheadshop Buy liquid incense cheap Buy liquid incense cheap For Sale At The Best Incense Online Shop
The Pomsky is a designer breed of dog that is a hybrid of the Pomeranian and the Siberian Husky. Adorable Pomsky puppies have attracted a lot of attention recently and made them one of the most popular breeds of 2017.
Best Online Pet Adoption : Cavapoo Puppies For Sale : Australian Shepherd Puppies Below $200 : Available Maltipoo Puppies Online : Where To Buy Golden Retriever Puppies OnlineBest Online Adoption
Reach to the best Data Science Training institute in Chennai for skyrocketing your career, Infycle Technologies. It is the best Software Training & Placement institute in and around Chennai, that also gives the best placement training for personality tests, interview preparation, and mock interviews for leveling up the candidate's grades to a professional level.
Key Features and Benefits of React Native
Post a Comment