Skip to content
Advertisement

select distinct and autoincrement field in select query

I have a table Product with

So i need a select query that will display distinct product no with ids for displaying in p-listbox. say

How do i achieve this? Thanks

Advertisement

Answer

One method is:

That said, I would probably use group by:

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement