2
Answers

How to get distinct values in 2 columns in SQL server table

Kumar AU

Kumar AU

10y
676
1
Table 1
APPID | CERTID  | CERTNAME
--------------------------------
11111 |1|ABCD
22222 |2|EFGH
33333 |3|IJKL
11111 |4|XYZ
44444 |5|JHJ
22222 |6|KJHK
11111 |7|TUHJ

Note:- here cert is is PK and its not repatable where as App Id is repetable columns values

In this table How do I get distinct App Id and corresponding certId ,

This is my query , here still I am getting duplicate AppId's

Select distinct(APPID),CERTID from Table1

Please Please Can any one help me.
Answers (2)
0
Prasham Sabadra

Prasham Sabadra

NA 17.6k 1.2m 10y
Hi,

One reason might be the DLL is not updated. 
Accepted
0
Hema Latha

Hema Latha

NA 29 9.9k 10y
Thank you so much Prasham Sabadra