0% found this document useful (0 votes)
1 views

SQL DAY 3 (SELECT) Updated Assignment

Uploaded by

shivakhokhar4600
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

SQL DAY 3 (SELECT) Updated Assignment

Uploaded by

shivakhokhar4600
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

SQL Queries

1. Display the agreementid, AMTFINANCE, Tenure, INTRATE, CLOSURE_DATE from


Agreement with agreementid appearing first.
2. Provide an alias for agreementid as Agreement_id in the above query
3. Display all the unique state from the Address table
4. Write a query to display all the loan agreements whose due date is in the month of ‘March 2020’
5. Write a query to display all the loan agreements whose AMTFINANCE is greater then 50thousand
and ROI is less than 10%
6. Write a query to display all the agreement from Agreement whose status is ‘Close’.
7. Write a query to display all the student details which are modified.
8. Display the name of course whose cost is more than 40 thousand.
9. Write a query to display first name concatenated with the customer id (separated by a comma and a
space) from Customer table. Name the column ‘Customer and Id.
10. Write a query to display all the records from district table sorted descending by Deposit_id.
11. Write a query to display current date. Label the column DATE.
12. For each customer, display the first name, last name, and email address. The email address will be
composed from the first letter of first name, concatenated with the three last letters of last name,
concatenated with @nucleussoftware.com.
13. Display the details of loan agreements which are still pending.
14. Write a query that displays the last name (with the first letter uppercase and all other letters
lowercase) and the length of the last name for all customers whose name starts with the letters J, A,
or M. Give each column an appropriate label.
15. Write a query to calculate the Penalty charges from REPAYSCH table where Due_Date is less
than current_date. Consider putting a penalty of Rs. 100/- per day from Due_Date.
*******************

You might also like