Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Sybase (SQL Advantage) Join syntax

Sybase (SQL Advantage) Join syntax

Sybase (SQL Advantage) Join syntax

My background is Oracle and SQL Server but I am now using Sybase and the SQL tool provided is SQL Advantage. For some reason I cannot write joins in the new ANSI standard? I can't see any problems with my syntax.

This works,

select b.el1,b.curcode
from oas_grplist g, oas_balance b
where g.cmpcode=b.cmpcode
and b.el1=g.code

But when running the equivalent,

select b.el1,b.curcode
from oas_grplist g
join oas_balance b on g.cmpcode=b.cmpcode
and b.el1=g.code

I get the error

Server Message:  Number  102, Severity  15
Line 3:
Incorrect syntax near 'join'.

Are there limitations in Sybase or SQL Advantage? Any help would be much appreciated.

RE: Sybase (SQL Advantage) Join syntax

Maybe you a using an ancient Sybase server
ansi join syntax has been supported since ASE 12.0
What do you get from
select @@version

RE: Sybase (SQL Advantage) Join syntax

Bingo, that looks like the problem,

Adaptive Server Enterprise/ 9894 ESD 4/RS6000/AIX 4.2.1/FBO/Thu Nov 29 02:03:54 2001

Thank you very much for the info, looks like I'll have to do it old school.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close