Sorry, my mistake! The SQL is something like this:<br><br>SELECT OrderCode, ProductName, para1, para2, para3 FROM table<br><br>Now, I want to make sure that every OrderCode is unique but the ProductName and the paras can be the same. E.g.<br><br>"111-1", "Red bike", 1, 1...
How can I alter the following SQL statement in order to get distinct OrderCodes but not distinct ProductNames:<br><br>SELECT OrderCode, ProductName FROM table<br><br>E.g "111-1" "Red bike"<br> "222-2" "Red...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.