Select ... (select ...);

Steff_DK

Registered User.
Local time
Today, 19:55
Joined
Feb 12, 2005
Messages
110
I need to build a query that concatenates the values in my table as follows:

The table:
  • monkey
  • horse
  • pelican
  • zebra
The query output:
  • monkeymonkey
  • monkeyhorse
  • monkeypelican
  • monkeyzebra
  • horsemonkey
  • horsehorse
  • horsepelican
  • horsezebra
  • pelicanmonkey
  • pelicanhorse
  • pelicanpelican
  • pelicanzebra
  • zebramonkey
  • zebrahorse
  • zebrapelican
  • zebrazebra
I thought the following would do the trick, but it didnt ...
SELECT table.animal & (SELECT table.animal FROM table) FROM table;

I get an error that says that the subquery max. has 1 record :confused:

Help!! :o
 
SELECT Table.animal & Table_1.animal
FROM
,
AS Table_1;
.
 
Perfect! :)

Thanx a million.
 

Users who are viewing this thread

Back
Top Bottom