Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help to build a query
Message
 
 
To
06/02/2003 12:09:07
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00749972
Message ID:
00749996
Views:
16
Edgar,

There's no reason to use SYS(11) because dates can be compared directly
select * from compromisos 
  where compromisos.feccompromiso BETWEEN m.ini AND m.fin ;
     OR ( compromisos.flag AND compromisos.feccompromiso < m.ini) ;
            order by cliente;
            into cursor curcompromisos
            Repor form compromisos previ
>Hello i have the half of my query builded:
>
>select * from compromisos where Sys(11,compromisos.feccompromiso) >= sys(11,m.ini) and;
>            Sys(11,compromisos.feccompromiso) <= Sys(11,m.fin);
>            order by cliente;
>            into cursor curcompromisos
>            Repor form compromisos previ
>this query is for a range of date, but i need to include here
>to validate the date < = to m.ini and a logical field equal .T.
>
>How i do this, do i have to do a subquery if it is so, how?
>
>Thanks for your help.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform