sql - order by with distinct name -


my table:

pageorderid   pagename 3            citation number    3            citation number   3            citation number 1            account info  1            account info  1            account info 

i wanted order pagename according pageorderid, distinct pagenames.

i have tried following not working:

select pageorderid,distinct(pagename) screenmaster order pageorderid 

what mistake?

o/p:

pageorderid   pagename 1              account info 3              citation number 

select distinct pageorderid,pagename screenmaster order pageorderid  

Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

php - Calling a template part from a post -

How to mention the localhost in android -