many apologees. right link http://archives.postgresql.org/pgsql-general/2007-09/msg00607.php i flip row to column if ok. but howto query?? sincerely siva -------- Original Message -------- Subject: Re: query help From: "Alexander Staubo" <alex@xxxxxxxxxxxxxxx> Date: Thu, September 13, 2007 11:38 am To: "volunteer@xxxxxxxxxxxxxxx" <volunteer@xxxxxxxxxxxxxxx> Cc: pgsql-general@xxxxxxxxxxxxxx On 9/13/07, volunteer@xxxxxxxxxxxxxxx <volunteer@xxxxxxxxxxxxxxx> wrote: > i add more column not row for new user. i want all "last like 'J%'". > http://www.nabble.com/an-other-provokative-question---tf4394285.html Sorry, but the only difference between your table example and your result example was the absence, in the results, of one of the columns. If you want to constrain by some attribute, then you have to tell us that. I recommend that you buy a book on SQL. Lastly, I don't see what this has to do with the "provokative question" thread. Alexander. ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match