Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Code
Message
From
27/06/2006 16:21:20
 
 
To
26/06/2006 13:31:50
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
01131562
Message ID:
01132153
Views:
16
Try it like this:

>
>SET DELETED on
>
>SELECT fi_invnum, fi_flcode, fi_cpprim, fi_weight, fi_dlvdat, rp_rtprim, MAX(rp_date), rp_cpprim ;
>FROM feedinv ;
>left OUTER JOIN ratpric ;
>ON fi_rtprim = rp_rtprim ;
>AND fi_cpprim = rp_cpprim ;
>AND fi_dlvdat > rp_date ;
>AND fi_dlvdat - rp_date < 7 ;
>WHERE fi_flcode = 'BAA12062' ;
>GROUP BY fi_invnum, fi_flcode, fi_cpprim, fi_weight, fi_dlvdat, rp_rtprim, rp_cpprim
>
Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform