Subject | RE: [firebird-support] UNION syntax? |
---|---|
Author | Sasha Matijasic |
Post date | 2008-08-14T18:29:53Z |
>REMOVE THIS==========> (
> I am trying to write a union query with FB 2.1 (using a query
> generator) and the following query generates an error:
>
> <QUERY>
> SELECT FIRST 1 *
> FROM (
> SELECT "key" AS "UnionKey",REMOVE THIS==========> )
> "bool0" AS "UnionBoolean",
> "int0" AS "UnionInteger",
> "num0" AS "UnionNumber",
> "str0" AS "UnionString",
> "date0" AS "UnionDate",
> "datetime0" AS "UnionDateTime",
> "time0" AS "UnionTime",
> 0 AS "UnionID"
> FROM "Calcs" "Calcs 1"
> UNION ALLREMOVE THIS==========> (
> SELECT "key" AS "UnionKey",REMOVE THIS==========> )
> "bool1" AS "UnionBoolean",
> "int1" AS "UnionInteger",
> "num1" AS "UnionNumber",
> "str1" AS "UnionString",
> "date1" AS "UnionDate",
> "datetime0" AS "UnionDateTime",
> "time1" AS "UnionTime",
> 1 AS "UnionID"
> FROM "Calcs" "Calcs 2"
> ) "Union"Remove those 2 pairs of parens.
> </QUERY>
>
Sasha