Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
YEAR is not unique and must be qualified
Message
From
04/10/1999 10:32:49
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00272291
Message ID:
00272295
Views:
28
The field year must appear in both tables. in your WHERE clause you have year = '1999' it should be a.year = '1999' or something like that. :-)

>YEAR is not unique and must be qualified.
>
>I get the above error msg when running the following code...
>
>SELECT ;
>  A.Invoice, ;
>  ShipDate, ;
>  Oslsm, ;
>  Prodct, ;
>  Cust, ;
>  QtyOrd, ;
>  Oprice, ;
>  QtyUpd, ;
>  Ocompc, ;
>  A.ShipDue, ;
>  Terr, ;
>  WrHse, ;
>  Scity, ;
>  Sstate, ;
>  A.Year, ;
>  A.Month ;
>FROM ;
>  OrdrDtlH A, OrdrHdrH ;
>INTO TABLE ShipHst ;
>WHERE ;
>  A.Invoice = OrdrHdrH.Invoice .AND. ;
>  Year = '1999' .AND. ;
>  Month = '12'
>
>Yes, even though it seems odd, Year and Month are Character fields.
>Haven't been able to resolve problem. Would appreciate any help. TIA, Chuck
--Todd Sherman
-Wake Up! Smell the Coffee!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform