Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating SQL structures
Message
From
15/12/1998 05:58:46
 
 
To
15/12/1998 05:50:09
Marcelo Codino
Mystic & Faith - Sistemas -
Buenos Aires, Argentina
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00167573
Message ID:
00167574
Views:
19
>Hi Nancy,I need your help
>
>I have this SQL statement.I want that tdDateTo(in the AND statement) takes the value of tdDateTo(of the BETWEEN statement).I did try with
>{tdDateTo} in the AND statement but the field appears like this{/ /},and not shows the wanted values.
>What's wrong in the structure ?
>
>
>SELECT a.date, a.concept, SUM(a.amount) AS n_impo, a.quotas ;
>  FROM Master a ;
>  WHERE BETWEEN(a.date,tdDateFrom,tdDateTo) ;
>  OR a.plan = .T. ;
>  AND a.date <= {tdDateTo} ; ---->>>> this

encapsulating in {} says "take this literal and treat it as a date".  Since it's already a date, <b>AND a.date <= tdDateTo</b> should be sufficient.

>  AND ALLT(a.quotas) <> "0" ;
>  ORDER BY a.date ;
>  GROUP BY a.nro_oper ;
>  INTO CURSOR c_names
>
>
>TIA.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform