SQL Commands : Create The Database Loans. Use Database Loans
SQL Commands : Create The Database Loans. Use Database Loans
7. Display the accno and loan_amount of all the loans started before 01-04-2009.
10. Display the amount of various loans from the table loan_accounts. A loan amount should appear only
once.
11. Display the cust_name and loan_amount for all the loans which do not have number of installments
36.
12. Display the cust_name and loan_amount for all the loans for which the loan amount is less than
500000 or int_rate is more than 12.
13. Display the details of all the loans whose rate of interest is in the range 11% to 12%.
14.Display the cust_name and loan_amount for all the loans for which the number of installments are 24,
36, or 48.
15.Display the details of all the loans whose loan_amount is in the range 400000 to 500000.
16.Display the accno, cust_name, loan_amount for all the loans for which the cust_name ends with
“Sharma”.
17.Display the accno, cust_name, and loan_amount for all the loans for which the cust_name contains ‘a’
as the second last character.
18.Display the details of all the loans in the ascending order of their loan_amount.
19.Display the details of all the loans in the descending order of their start_date.
20.Put the interest rate 11.50% for all the loans for which interest rate is null.
g. Select mid(“informatics”,3,4),substr(“practices”,3);