0% found this document useful (0 votes)
29 views6 pages

Change The Name Pateljigar' To Patelhiren'.: PRACTICAL-3 (92100103289)

The document outlines a series of SQL commands to modify and query tables in a database. It describes changing data in tables ACCOUNT and LOAN, creating new tables from the originals, updating structures and columns, filtering records, and sorting results.

Uploaded by

Doremon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views6 pages

Change The Name Pateljigar' To Patelhiren'.: PRACTICAL-3 (92100103289)

The document outlines a series of SQL commands to modify and query tables in a database. It describes changing data in tables ACCOUNT and LOAN, creating new tables from the originals, updating structures and columns, filtering records, and sorting results.

Uploaded by

Doremon
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 6

PRACTICAL-3 (92100103289)

1. Change the name ‘pateljigar’ to ‘patelhiren’.

2. Change the name and city where account number is A005. (new name = ‘kotharinehal’ and

new city = ‘patan’).

3. Display only those records where loan taken status is ‘YES’.


4. Add the new column (address varchar2 (20)) into tableACCOUNT

5. Create another table ACCOUNT_TEMP (acc_no, name, balance) from tableACCOUNT.

6. Rename the table ACCOUNT toACCOUNT_MASTER.


7. Update the column balance for all the account holders. (Multiply the balance by 2 for each

accountholders)

8. Describe the structure of tableACCOUNT.

9. Delete the records whose account no is A004.

Table:LOAN

1. For each loan holders Add 100000 Rs. Amount into the column loan_amt.
2. for each loan holders Increase the interest rate 2%.

3. Create another table LOAN_TEMP (loan_no, Acc_no, loan_amt, loan_date) from The table

LOAN.
4. Display only those records where loan holder taken a loan in month of January.

5. Modify the structure of table LOAN by adding one column credit_no varchar2 (4).

6. Display the Loan amount*2 of table LOAN.

7. Display the records of table LOAN by date wise in ascending order.


8. Display the records of table LOAN by account number wise in descending Order.

92100103289

You might also like