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
Loading
Madhu KPosted Dec 6, 2010, 5:34 AM
CrishPosted Dec 6, 2010, 5:18 AM
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"
Shailendra VermaPosted Dec 6, 2010, 5:10 AM
SELECT MAX(ShortNameID) AS ShortNameID , ShortName FROM DailyCurrencyRate WHERE Active=1 GROUP BY ShortName
THANKS
Madhu KPosted Dec 6, 2010, 3:50 AM
select distinct ShortName,ShortNameID from tablename