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

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -