You are on page 1of 2

PROGRAM 7

Objective:

Implementation of SELECT commands using DISTINCT clause.

Query1: Write a query to display the Amounts of various loans from


loan_account. A loan_account should apper only once.

Ans: SQL> select DISTINCT loan_amount from loan_accounts;

Output :
LOAN_AMOUNT

-----------

300000

700000

800000

500000

900000

Query2 : Write a query to display the number of installments of various loans


from the table loan_account.An instalments should apper only once.

Ans : : SQL> select distinct instalments from loan_accounts;

Output :
INSTALMENTS

35

48

40

4 rows selected.

You might also like