1. The document contains SQL commands to create and populate tables for accounts, loans, installments and transactions.
2. It updates, alters, renames tables and selects data from the tables.
3. Temporary tables are also created from the main tables using the AS clause.
1. The document contains SQL commands to create and populate tables for accounts, loans, installments and transactions.
2. It updates, alters, renames tables and selects data from the tables.
3. Temporary tables are also created from the main tables using the AS clause.
insert into LOAN values('L001', 'A001', 100000, 7, '1-01-04', 75000)
insert into LOAN values('L002', 'A002', 300000, 9, '05-18-04', 150000) insert into LOAN values('L003', 'A005', 500000, 11, '06-15-04', 300000) 2. update loan set loan_amt = loan_amt + 100000 3. update loan set interest_rate = interest_rate + 2 4. create table loan_temp (loan_no, Acc_no, loan_amt, loan_date) as select loan_no, acc_no, loan_amt, loan_date from loan 5. select * from loan where loan_date between #01-01-04# and #01-31-04# 6. alter table loan add (credit_no varchar2(4)) 7. select * from loan where 8. select * from loan order by date 9. select * from loan order by acc_no desc 10. alter table loan modify (acc_no varchar2(7))