[SQL] unsuscribe
unsuscribe ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])
Re: [SQL] interesting SQL puzzle - concatenating column with itself.
Alvaro Herrera wrote: The order is not really guaranteed, though if this is a one-shot thing, you may get away with turning off hashed aggregates. When I read this, I assumed there was a runtime parameter I could set that was similar to ENABLE_HASHJOIN. Are you referring to a different runtime parameter or something else entirely? BTW the concatenation function you suggest works nicely except that as you noted, it concatenates in an unpredictable order, so I'm now trying to solve that problem. -Nick -- Nick Fankhauser [EMAIL PROTECTED] Phone 765.935.4283 Fax 765.962.9788 Ray Ontko & Co. - Software Consulting Services http://www.ontko.com ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly
Re: [SQL] interesting SQL puzzle - concatenating column with itself.
BTW the concatenation function you suggest works nicely except that as you noted, it concatenates in an unpredictable order, so I'm now trying to solve that problem. memo_id | sequence | memo_text --- 666 | 1| The quick 666 | 2| red fox 666 | 3| jumped over 666 | 4| the lazy brown dog You have : SELECT your_concat( memo_text ) FROM table GROUP BY memo_id You can use : SELECT your_concat( memo_text ) FROM (SELECT memo_id, sequence, memo_text FROM table ORDER BY memo_id, sequence OFFSET 0) AS foo GROUP BY memo_id the OFFSET 0 may be necessary (or not). Try it ! ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq