Dear members
i have a page where i m inserting multiple records with same name like (ShortName) and a ShortNameID which is auto generated according to date now i want to show it another page with distinct name with thier ShortNameID
How to find disticnt record to bind dropdownlist??
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Madhu KRank #1,514 · 1.1K reputationPosted Dec 5, 2010, 10:50 PM EST
select distinct ShortName,ShortNameID from tablename
Shailendra Verma47 reputationPosted Dec 6, 2010, 12:10 AM EST
SELECT MAX(ShortNameID) AS ShortNameID , ShortName FROM DailyCurrencyRate WHERE Active=1 GROUP BY ShortName
THANKS
CrishRank #1,486 · 1.1K reputationPosted Dec 6, 2010, 12:18 AM EST
You can refer the following code to solve the issue of to find disticnt record to bind dropdownlist.
SelectCommand="Select DISTINCT Featured from tbl_YourTableName"
Madhu KRank #1,514 · 1.1K reputationPosted Dec 6, 2010, 12:34 AM EST