Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting from multiple tables...
Message
From
03/06/1999 16:25:18
 
 
To
03/06/1999 16:20:50
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00226145
Message ID:
00226228
Views:
27
You have no join condition in your SELECT. You should have a condition that tell which field in Conference link to Rooms, as in:
SELECT Conference.ConfNum;
   FROM Conference;
   INNER JOIN Rooms ON Conference.PK = Rooms.FK;
   WHERE Rooms.HallName=="Hewett" .OR. Rooms.HallName=="Manchester";
   INTO CURSOR tmp
HTH

>SELECT Conference.ConfNum, Conference.ConfName, Conference.CheckInBegin, ;
> Conference.CheckInEnd, Conference.CheckOutBegin, Conference.CheckOutEnd, ;
> Rooms.HallName FROM Conference INNER JOIN Rooms WHERE ;
> Rooms.HallName=="Hewett" .OR. Rooms.HallName=="Manchester" INTO CURSOR tmp
>
>Syntax error... =(
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform