sql server - how to avoid duplicating value with all fields in sql query -


i have query this:

select * v_receipt f_exhibition='11000' order f_exhibitor_name 

when executed duplicate values, how can resolve this.

you need use distinct have explicitly define each field

select distinct field1, field2, field3 /* etc etc */  v_receipt  f_exhibition = '11000'  order f_exhibitor_name desc 

Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -