Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Cross JOIN Error

Author  Topic 

mukhan85
Starting Member

46 Posts

Posted - 2008-07-21 : 11:27:36
Hi, I have the following query:
select label.number , myWord.word
from
(
select '1' as number union
select '2' as number union
select '3' as number
) as label
cross join
(
select 'status1' as word union
select 'status2' as word
) as myWord

and I am getting the following error:
Server Message: Number 102, Severity 15
Server 'ARREPROD', Line 8:
Incorrect syntax near 'cross'.
Server Message: Number 156, Severity 15
Server 'ARREPROD', Line 12:
Incorrect syntax near the keyword 'as'.
it is sybase database.

Thank you.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-07-21 : 11:31:00
Please post in some sybase forums if you want more help on this.This is MS SQL Server forum.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-07-22 : 04:03:51
try at www.dbforums.com

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -