Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't find column error on outer join
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00515388
Message ID:
00515413
Views:
12
This message has been marked as the solution to the initial question of the thread.
>I get the error SQL: Column 'CAR_ID' is not found, when I run the following code:
>Select * From nonconf ;
>    LEFT OUTER JOIN car_misc;
>    LEFT OUTER JOIN car_extension ;
>    ON  Nonconf.car_id = Car_extension.car_id ;
>    ON  Nonconf.car_id = Car_misc.car_id ;
>  into cursor car_temp
>
It's working from the outside in.
SELECT * ;
   FROM car_misc ;
      LEFT JOIN car_extension ON nonConf.car_id = car_extension.car_id
At this point, it has no idea what nonConf is, so it throws the error. You can recode it as
SELECT * ;
   FROM nonConf nc ;
      LEFT JOIN car_misc cm ON nc.car_id = cm.car_id ;
      LEFT JOIN car_extension ce ON nc.car_id = ce.car_id
   INTO CURSOR car_temp
and everything will be fine.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform