Exercises: Q1. Consider The Following Schema
Exercises: Q1. Consider The Following Schema
1. Create the table orders with columns order_no number type, purch_amt
number(precision, scale), ord_date date, customer_id number and salesman_id
number
2. Insert the values as given in the table
3. Add customer name, email address and contact_number columns in the given
table
4. Add column gender in the table with single character value.
5. Update the values of newly added columns in the records
6. Create another table orders_completed with ord_no, purch_amt, ord_date and
customer name, email_address and contact number. Then copy the information
of details from orders table where date is 10th October 2012.
Q2. Consider the following schema
I FNAME LNAME GENDER SALARY HIREDATE
+-----------+-------------+-------------+--------------+--------------+-------+-------------
+-------------+-------------+---------------+--------------+------------+
+-----------+-------------+-------------+--------------+--------------+-------+-------------
+-------------+-------------+---------------+--------------+------------+
CUST_CODE
CUST_NAME
CUST_CITY
WORKING_AREA
CUST_COUNTRY
GRADE
OPENING_AMT
RECEIVE_AMT
PAYMENT_AMT
OUTSTANDING_AMT
PHONE_NO
AGENT_CODE
7 Dinesh M Varanasi