hi,
i'm working with sql server 7 and i have a table like this:
---------------------
id date section
1 1/1/2001 2
2 2/2/2002 3
etcetera
---------------------
I need to get the 5 last items from every section, "last items" means order by date desc... I cannot find...
I need to select from a Mysql database the most repeated values from a field... I mean :
---------------------
22
22
5
1
1
1
---------------------
I need to get 1,22,5 in this order. Mysql does not
allow joins.
What sql command should I use?
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.