Ip New
Ip New
Ip New
Write SQL commands for the tasks 1 to 35 and write the output
for the SQL commands 36 to 40:
1. Create the database LOANS.
10. Display the details of all loans whose rate of interest is not
NULL.
13. Display the details of all the loans started after 31-12-2008
for which the number of instalments are more than 36.
14. Display the Cust_Name and Loan_Amount for all the loans
which do not have number of instalments 36.
15. 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.
16. Display the details of all the loans which started in the year
2009.
18. Display the details of all the loans whose rate of interest is
in the range 11% to 12%.
19. Display the Cust_Name and Loan_Amount for all the loans
for which the number of instalments are 24, 36, or 48. (Using
IN operator)
20. Display the details of all the Loans whose Loan_Amount is
in range 400000 to 500000. (Using BETWEEN operator)
21. Display the details of all the loans whose rate of interest is
in the range 11% to 12%. (Using BETWEEN operator)
27. Display the details of all the loans in the ascending order of
their Loan_Amount.
28. Display the details of all the loans in the descending order of
their Start_Date.
29. Display the details of all the loans in the ascending order of
their Loan_Amount and within Loan_Amount in the descending
order of their Start_Date.
30. Put the interest rate 11.50% for all the loans for which
interest rate is NULL.
31. Increase the interest rate by 0.5% for all the loans for which
the loan amount is more than 400000.
33. Delete the records of all the loans whose start date is before
2007.
34. Delete the recorders of all the loans of ‘K.P. Jain’.