Board index » delphi » Interbase equivalent to UNION clause
JEchavez
![]() Delphi Developer |
Tue, 25 May 2004 13:07:05 GMT
|
JEchavez
![]() Delphi Developer |
Tue, 25 May 2004 13:07:05 GMT
Interbase equivalent to UNION clause
How do make a SQL statement using UNION (as it is in SQL server) clause in
Interbase? With the following lines of code, I get an error message saying "data type unknown". select 'HighestDate' , LastTradeDte from Table1 Please help! JEchavez |
JEchave
![]() Delphi Developer |
Tue, 25 May 2004 13:56:17 GMT
Re:Interbase equivalent to UNION clauseOh I got it! The problem is in the 'HighestDate' and 'LowestDate' strings! If I exclude them, the query runs well....sad thing is, I don't know how to put the 'HighestDate' and 'LowestDate' texts as part of the result of the SQL statement. Quote"JEchavez" <jecha...@idsfinance.com> wrote in message Quote> How do make a SQL statement using UNION (as it is in SQL server) clause in |
Kade
![]() Delphi Developer |
Tue, 25 May 2004 14:19:14 GMT
Re:Interbase equivalent to UNION clausePlease Try this: Quote> > select 'HighestDate' , LastTradeDte from Table1 Quote> > where IssueID = 123 and Quote> > where IssueID = 123 and |
Arno Brinkman [BISIT
![]() Delphi Developer |
Tue, 25 May 2004 16:56:36 GMT
Re:Interbase equivalent to UNION clauseCast names to same type / length ! for example : SELECT Greetz, -- "JEchavez" <jecha...@idsfinance.com> schreef in bericht Quote> Oh I got it! The problem is in the 'HighestDate' and 'LowestDate' strings! |
JEchave
![]() Delphi Developer |
Fri, 28 May 2004 13:26:20 GMT
Re:Interbase equivalent to UNION clauseIndeed, that did it right! Thanks! JEchavez "Arno Brinkman [BISIT]" <a...@bisit.nl> wrote in message Quote> Cast names to same type / length ! |