Professional Documents
Culture Documents
Set 3
Set 3
(Regulations 2017)
1. Create a Table as workers and the details are { S.No, Name, Designation, Branch }
Perform the following commands:
Alter the table by adding a column Salary
Alter the table by modifying the column Name
Describe the table employee
Copy the table employee as emp
Truncate the table
Delete the Second row from the table
Drop the table
5. Write a procedure called proc_udate is created and stored in the database. This procedure
when called in PL/SQL block updates the qty_on_hand in the product_master table it also
updates the order_status in the sales_order table.
Prodct_master { product_no, description, profit_percentage, unit_measure,
qty_on_hand, recorder_level, sell_price, cost_price }
Sales_order {order_no, order_date, client_no, dely_address, salesman_no, dely_type,
billed_yn, delay_date, order_status }
20. Create a table salesman{ salesman_id, name, city, commission } and customer{customer_id,
name, city, grade, slaesman_id}. Write the following query:
Create a view for those salesmen belongs to the city New York
Create a view for all salesmen with columns salesman_id, name, and city
Find the salesmen of the city New York who achieved the commission more than 13%.
Create a view to getting a count of how many customers we have at each level of a grade.
*********