Re: [SQL] Ask About SQL

2009-08-19 Thread Joshua Tolley
On Wed, Aug 19, 2009 at 05:17:07PM +0700, Otniel Michael wrote: >Hi All. > >Can help to create sql queries for this data : > >tabel A >field1, field2, field3 >x1, y1, 5 >x1, y2, 1 >x2, y1, 2 >x2, y3, 4 >x1, y3, 4 > >

Re: [SQL] Ask About SQL

2009-08-19 Thread A. Kretschmer
In response to Otniel Michael : > Hi All. > > Can help to create sql queries for this data : > > tabel A > field1, field2, field3 > x1, y1, 5 > x1, y2, 1 > x2, y1, 2 > x2, y3, 4 > x1, y3, 4 > > I want to get 2 record with the max value at field3 for each k

[SQL] Ask About SQL

2009-08-19 Thread Otniel Michael
Hi All. Can help to create sql queries for this data : tabel A field1, field2, field3 x1, y1, 5 x1, y2, 1 x2, y1, 2 x2, y3, 4 x1, y3, 4 I want to get 2 record with the max value at field3 for each kombination of field1 : tabel B field1, field2, field3 x1,

Re: [SQL] ASK about SQL

2007-05-31 Thread Phillip Smith
= 4909411010089 THEN '12' WHEN ean = 4909411010201 THEN '13' WHEN ean = 0 THEN '14' ; -Original Message- From: ali nas [mailto:[EMAIL PROTECTED] Sent: Thursday, 31 May 2007 18:57 To: Phillip Smith Subject: Hal: [SQL] ASK about SQL YES, I don&

Re: [SQL] ASK about SQL

2007-05-31 Thread Phillip Smith
Do you mean you want it to order it in the same order as you've listed them in the IN condition? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ali nas Sent: Thursday, 31 May 2007 17:57 To: pgsql-sql@postgresql.org Subject: [SQL] ASK about SQL Dea

[SQL] ASK about SQL

2007-05-31 Thread ali nas
Dear all, HELP me PLZ I'm used this SQL command : "" SELECT ean FROM icitem WHERE ean in (4902715720005,4909411012151,4909411010164,4902715688718,4902715731605,4909411008864,4909411010188,4