1. Create the following table: Table Name: SUPPLIERS (.5) FIELD NAME DATA TYΕ CONSTRAINT DESCRIPTION SID NUMBER(5) VARCHAR2(30) VARCHAR2(30) VARCHAR2(30) PRIMARY KEY Supplier ID Supplier Name Supplier...

Sql1. Create the following table:<br>Table Name: SUPPLIERS<br>(.5)<br>FIELD NAME<br>DATA TYΕ<br>CONSTRAINT<br>DESCRIPTION<br>SID<br>NUMBER(5)<br>VARCHAR2(30)<br>VARCHAR2(30)<br>VARCHAR2(30)<br>PRIMARY KEY<br>Supplier ID<br>Supplier Name<br>Supplier Type<br>SNAME<br>NOT NULL<br>STYPE<br>WS, DS<br>LOCATION<br>Location<br>Table Name: PRODUCTS<br>(.5)<br>FIELD NAME<br>DATA TΥΡΕ<br>CONSTRAINT<br>DESCRIPTION<br>PID<br>NUMBER (5)<br>VARCHAR2(30)<br>NUMBER(5)<br>NUMBER(5)<br>PRIMARY KEY<br>Product ID<br>DESC<br>NOT NULL<br>Description<br>PRICE<br>Price<br>SID<br>FOREIGN KEY<br>Supplier ID<br>2. Add Check constraint to Price column. It must accept price more than 0 only.<br>(.5)<br>3. Add new column QTY as NUMBER(5) for the PRODUCTS table.<br>(.5)<br>4. Insert the given data in SUPPLIERS and PRODUCTS tables:<br>(.5)<br>SUPPLIERS<br>SID<br>SNAME<br>STYPE<br>LOCATION<br>1<br>Lulu<br>DS<br>Salalah<br>2<br>C4<br>DS<br>Saadah<br>Smile<br>WS<br>Awqad<br>PRODUCTS<br>PID<br>DESC<br>PRICE<br>SID<br>QTY<br>801<br>Pencil<br>3<br>1<br>10<br>802<br>A4<br>6<br>2<br>15<br>803<br>Ballpen<br>4<br>2<br>804<br>Marker<br>2<br>3<br>20<br>

Extracted text: 1. Create the following table: Table Name: SUPPLIERS (.5) FIELD NAME DATA TYΕ CONSTRAINT DESCRIPTION SID NUMBER(5) VARCHAR2(30) VARCHAR2(30) VARCHAR2(30) PRIMARY KEY Supplier ID Supplier Name Supplier Type SNAME NOT NULL STYPE WS, DS LOCATION Location Table Name: PRODUCTS (.5) FIELD NAME DATA TΥΡΕ CONSTRAINT DESCRIPTION PID NUMBER (5) VARCHAR2(30) NUMBER(5) NUMBER(5) PRIMARY KEY Product ID DESC NOT NULL Description PRICE Price SID FOREIGN KEY Supplier ID 2. Add Check constraint to Price column. It must accept price more than 0 only. (.5) 3. Add new column QTY as NUMBER(5) for the PRODUCTS table. (.5) 4. Insert the given data in SUPPLIERS and PRODUCTS tables: (.5) SUPPLIERS SID SNAME STYPE LOCATION 1 Lulu DS Salalah 2 C4 DS Saadah Smile WS Awqad PRODUCTS PID DESC PRICE SID QTY 801 Pencil 3 1 10 802 A4 6 2 15 803 Ballpen 4 2 804 Marker 2 3 20

Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here