|
Posted by Hugo Kornelis on 12/22/05 23:14
On 21 Dec 2005 16:58:18 -0800, Ryan wrote:
>I have tried what you suggested but it seems to snag with Syntax
>errors. SQL accepts my Select .... AS A, B, C if I use it with the
>Select * construct but it does not accept the CROSS JOIN STATEMENT
Hi Ryan,
You didn't use the correct syntax. Check my previous replly and compare
it carefully with your query.
>
>Select * FROM
>(
>SELECT count(Amount) as count1, sum(Amount) as sum1
>FROM mytable1
>WHERE x="1" and y="2"....
>)
>AS A
>
>CROSS JOIN
>
Remove the line below!
>Select * FROM
>(
>SELECT count(Amount) as count1, sum(Amount) as sum1
>FROM mytable1
>WHERE x="1" and y="2" and some other stuff....
>)
>AS B
>
>Any ideas? I am not sure why the CROSS JOIN won't work actually. It
>error out as soon as it hits the SELECT statement that follows CROSS
>JOIN...
Best, Hugo
--
(Remove _NO_ and _SPAM_ to get my e-mail address)
[Back to original message]
|