How to get unique values from a column access sql -
i have table , contains more 23,000 records. want unique bno values.
my table
bno eid e description cscii 678 7 power disc 011 544 6 ekac 067 678 8 disc mag 011 678 8 disc mag 011 599 2 push button 978 123 7 file dis 767 123 5 file sep 768
to unique bno's , retrive columns,how specify in sql query. no bno should contain duplicates.
if want bno
unique , don't care of possible values want other columns long it's 1 of ones existing bno
, can use group by
;
select bno, max(eid) eid, max(e_description) e_description, max(cscii) cscii mytable group bno
Comments
Post a Comment