Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL statement /Pervasive
Message
 
To
24/06/2010 15:11:08
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
01470450
Message ID:
01470465
Views:
47
>Hello Borislav,
>
>Thanks. I don;t understand this second INNER JOIN :
>
>INNER JOIN rv_ICPRIC ON Rv_icpric.itemno) = ALLTRIM(Crs_pricelist.itemnumber);
>
>Where did you get Crs_pricelist.itemnumber ? Can up please check this?
>
>John

Sorry, copy and paste problem :-)
SELECT DISTINCT Rv_uxdetail.custcode,;
       Rv_uxdetail.itemnumber,;
       Rv_arcus.priclist,;
       Rv_icpric.desc,;
       Rv_icpric.baseprice,;
       Rv_icpric.baseunit;
FROM rv_UXDETAIL;
INNER JOIN rv_ARCUS  ON Rv_arcus.idcust  == rv_UXDETAIL.custcode;
INNER JOIN rv_ICPRIC ON Rv_icpric.itemno == rv_UXDETAIL.itemnumber; && I agree with Naomi, there is No need for ALLTRIM()
INTO CURSOR crs_CurrentPrice  
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform