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
Post a Comment