join keyword in user SQL

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
Oskar
Posts: 8
Joined: Tue Oct 10, 2017 12:44 pm

join keyword in user SQL

Post by Oskar » Thu Apr 12, 2007 9:14 pm

a user SQL statement like____select name from lastnames join firstnames on lastnames.id = firstnames.id____creates a ^DB access:Unexpected text at end of SQL query. "join" ^____of course I can rephrase:____select name from lastnames, firstnames where firstnames.id= lastnames.id____Because I will have to do a lot of setReplace() in the where clause, I would prefer to have a as ^clean^ intial where as pssible.____So, back to the join ... any chance to that to work?____Thanks__Oskar ____

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: join keyword in user SQL

Post by kfleming » Fri Apr 13, 2007 12:25 pm

I just did some testing and you are correct that this does not work. Our ODBC interface needs to be updated to the latest ANSI standard for this syntax to be accepted. I realize that we are a bit behind the times...____Kathleen__R&R Support____

Assignment Define
Posts: 0
Joined: Wed Mar 28, 2018 3:08 am

==> RE: join keyword in user SQL (Fix)

Post by Assignment Define » Thu May 10, 2007 5:02 am

I use R&R 10+ with SQL 2000 and use complex Ansi Sql queries.__I.e. Left outer joins ,(Nolock) Hints etc. ____To stop the error you mention just add an: Exec(^^);__at the top of the script and add all your SQL script below as normal.____It seems to change the way the sql is parsed and works with all the SQL statements I use.____Hope this helps.____Andrew__

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

===> RE: join keyword in user SQL (Fix)

Post by kfleming » Thu May 10, 2007 8:29 am

That is a simple creative and great suggestion!____Kathleen__R&R Support

Oskar
Posts: 8
Joined: Tue Oct 10, 2017 12:44 pm

===> RE: join keyword in user SQL (Fix)

Post by Oskar » Thu May 10, 2007 7:06 pm

Thanks Andrew, that helped____Oskar

Post Reply