Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Order By?
Message
From
23/12/1999 11:32:28
Paul Frost
Instem Computer Systems Ltd
Stone, United Kingdom
 
 
To
23/12/1999 11:23:12
Paul Frost
Instem Computer Systems Ltd
Stone, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00307929
Message ID:
00307961
Views:
28
>>what does it mean when a field is "not unique and must be qualified? example....
>>
>>select bundle,length,grade,siz,shipdataid;
>>from data1,data2,data3,data4,data5,data6,data7,data8;
>>where data1.shipdataid = data2.shipdataid;
>>and data2.shipdataid = data3.shipdataid;
>>and data3.shipdataid = data4.shipdataid;
>>and data4.shipdataid = data5.shipdataid;
>>and data5.shipdataid = data6.shipdataid;
>>and data6.shipdataid = data7.shipdataid;
>>and data7.shipdataid = data8.shipdataid;
>>and data8.shipdataid = data1.shipdataid;
>>and grade = gdValue and siz = szValue and length = 2 ;
>>into cursor myCursor
>>
>>
>>I've got a nasty report to create, and (ha,ha) I'm trying to teach myself how to use cursors.
> At least one of the fields in the field selection list (in this case, definitely shipdataid, possibly other) occurs in two or more of the tables, so you must specify which table it should be selected from :
>
>select bundle,length,grade,siz,data1.shipdataid;
>......
>
>Paul

You could also remove one of the where criteria

select bundle,length,grade,siz,data1.shipdataid;
from data1,data2,data3,data4,data5,data6,data7,data8;
where data2.shipdataid = data1.shipdataid;
and data3.shipdataid = data1.shipdataid;
and data4.shipdataid = data1.shipdataid;
and data5.shipdataid = data1.shipdataid;
and data6.shipdataid = data1.shipdataid;
and data7.shipdataid = data1.shipdataid;
and data8.shipdataid = data1.shipdataid;
and grade = gdValue and siz = szValue and length = 2 ;
into cursor myCursor

Paul
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform