There is the table:
ColA ColB ColC ColD
0001 00011574 111500 Purchases Cost Pool
0001 00010001 280001 Home Office
0002 09910001 280001 Home Office
0001 00010002 280002 Short North
0001 00010003 280003 Affinity Deposits
Is any way I can write a SQL query to...
Do you know the name of the admin scripts which is stored in the %ORACLE_HOME\rdbms\admin directory?
I am new for Oracles, it does have lot of scripts inside this folder.
Thanks
Salesman# -> Commission%
Commission is depend on the Saleman#
Example: Tom will have fixed 7% commission for selling any type of cars.
Date_sold -> Discount_amt
Example:
Dec 25 2002 will have $300 discount for any car.
Dec 10 2002 will have $100 discount for any car.
Any comment for my Normal form concept is right ....
CAR_SALE TABLE
(Car #, Date_sold, Salesman#, Commission%, Discount_amt)
Assume that a car may be sold by multiple salesman and
hence {Car #, Salesman#} is the primary key.
Additional dependencies are:
Date_sold -> Discount_amt, and...
SET SERVEROUTPUT ON
SET VERIFY OFF
SET ECHO OFF
ACCEPT p_num PROMPT 'Please enter the number of top money makers: '
DECLARE
Wrong_Input EXCEPTION;
v_num NUMBER(2) := &p_num;
v_ename emp.ename%TYPE;
v_sal emp.sal%TYPE;
v_dept dept.dname%TYPE;
tmp_sal emp.sal%TYPE;
v_count Number...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.