0

Environment: Oracle.

Example Data:

select col1, col2, col3 from tableName produces this:

COL1      COL2      COL3
The       Word      Was
Value1    Value2    Value3
I         Am        Table

I would like to have something like this: select (col1 + col2 + col3) as GroupCol from tableName to produce this:

GROUPCOL
TheWordWas
Value1Value2Value4
IAmTable

One column that encompasses three columns together as one.

This will be used to append ten different location columns together into on field when running a select statement. This has to be at the SQL level and not above it in some report tier.

TheEvilPenguin
  • 5,634
  • 1
  • 26
  • 47
jordan
  • 3,436
  • 11
  • 44
  • 75

1 Answers1

4

Use the || operator.

SELECT COL1 || COL2 || COL3
George Johnston
  • 31,652
  • 27
  • 127
  • 172