0

select distinct values from multiple coloumn.

I am performing a SQL join query but getting duplicate values in a row tried to group by but didn't work My SQL query is SELECT SALES.BILL_NO , CUSTOMERS.NAME , SALES.DATE FROM SALES JOIN CUSTOMERS ON SALES.CUST_ID = CUSTOMERS.ID above query looks like this:- BILL_NO NAME DATE 10 NIRANJAN 2021-02-16 15:43:54.184 10 NIRANJAN 2021-02-16 15:43:54.203 11 MMM 2021-02-16 16:07:55.773 12 MMM 2021-02-16 22:06:35.165 12 MMM 2021-02-16 22:06:35.166 what I want is to select only unique BILL_NO.

16th Feb 2021, 5:55 PM
Manjit Kumar
Manjit Kumar - avatar
2 Respuestas
0
Read about "DISTINCT"
16th Feb 2021, 8:35 PM
Hima
Hima - avatar
0
Hima wasn't working.. after that i googled tried many things but nothing works.
17th Feb 2021, 1:59 AM
Manjit Kumar
Manjit Kumar - avatar