How to select a distinct value in a query when there are more than one column when i am doing like this i am getting an error
select distinct tempname,rundate from History_Table ORDER BY RunDate DESC
EDIT::
i have to show like this in my gridview
Name Rundate
Test DDL(to show all the rundates)
Test1 rundate