Re: [SQL] Concat two fields into one at runtime

2006-06-08 Thread Kenneth B Hill
On Thu, 2006-06-08 at 10:50 -0500, George Handin wrote: > Is there a way using built-in PostgreSQL functions to combine two data > fields into a single field at runtime when querying data? > > For example, the query now returns: > > idfirstlast > --- --- -- > 1 Goerge

Re: [SQL] Concat two fields into one at runtime

2006-06-08 Thread Oisin Glynn
George Handin wrote: Is there a way using built-in PostgreSQL functions to combine two data fields into a single field at runtime when querying data? For example, the query now returns: idfirstlast --- --- -- 1 Goerge Handin 2 Joe Rachin I'd like it to re

Re: [SQL] Concat two fields into one at runtime

2006-06-08 Thread Bricklen Anderson
George Handin wrote: Is there a way using built-in PostgreSQL functions to combine two data fields into a single field at runtime when querying data? For example, the query now returns: idfirstlast --- --- -- 1 Goerge Handin 2 Joe Rachin I'd like it to re

Re: [SQL] Concat two fields into one at runtime

2006-06-08 Thread Aaron Bono
select id, first || ' ' || lastfrom mytable;On 6/8/06, George Handin <[EMAIL PROTECTED]> wrote: Is there a way using built-in PostgreSQL functions to combine two datafields into a single field at runtime when querying data? For example, the query now returns:idfirstlast---   ---  --

[SQL] Concat two fields into one at runtime

2006-06-08 Thread George Handin
Is there a way using built-in PostgreSQL functions to combine two data fields into a single field at runtime when querying data? For example, the query now returns: idfirstlast --- --- -- 1 Goerge Handin 2 Joe Rachin I'd like it to return: idname ---