Re: select 10 of each

2001-12-19 Thread Shankar Unni
Roger Baklund wrote: >>hi there.. no solution from me, but I'm also interested in this type of >>query (although I only want 1 for each "lang") >> > > If you only want one row for each "lang" you can do it using GROUP BY... > SELECT * FROM table GROUP BY lang Whoa. Watch out. You can omit co

RE: select 10 of each

2001-12-19 Thread Roger Baklund
> hi there.. no solution from me, but I'm also interested in this type of > query (although I only want 1 for each "lang") If you only want one row for each "lang" you can do it using GROUP BY... SELECT * FROM table GROUP BY lang Often you would want to use some GROUP BY functions: MIN(), MAX

Re: select 10 of each

2001-12-19 Thread Christian Andersson
... /Christian - Original Message - From: "Jacob Friis Larsen" <[EMAIL PROTECTED]> To: "Brett Error" <[EMAIL PROTECTED]>; "Mysql maillist" <[EMAIL PROTECTED]> Sent: Wednesday, December 19, 2001 8:11 PM Subject: RE: select 10 of

RE: select 10 of each

2001-12-19 Thread Jacob Friis Larsen
ysql maillist > Subject: RE: select 10 of each > > > You'll have to issue two separate queries: > > "select * from table where lang=1 limit 10" and "select * from table where > lang=2 limit 10" > > -Original Message- > From: Jacob Fri

RE: select 10 of each

2001-12-19 Thread Brett Error
You'll have to issue two separate queries: "select * from table where lang=1 limit 10" and "select * from table where lang=2 limit 10" -Original Message- From: Jacob Friis Larsen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 11:46 AM To: Mysql maillist Subject: select 10