Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's to like about a datetime
Message
From
04/09/2018 16:54:06
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
 
 
To
04/09/2018 09:23:11
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
MS SQL Server
Miscellaneous
Thread ID:
01661714
Message ID:
01661817
Views:
63
>>An exact match and >= or (worse) BETWEEN are not the same thing.

The OP asks about using LIKE which IMHO will involve an explicit or implicit cast to string that's unlikely to benefit from a datetime index.

Whereas exact match, >= and BETWEEN are very likely to use an index if there is one. Nobody is so silly as to suggest all these are the same thing AFAICS.

My answer to Dragan was that his example can be achieved by BETWEEN. If you disagree, the question already has been asked how else LIKE might be intended so unless there are examples, I'm not about to be drawn into straw man arguments.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform