Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A bit tricky math problem
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
A bit tricky math problem
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01462028
Message ID:
01462028
Vues:
151
Hi everybody,

I have the following select statement
select SomeFields, StartPos, EndPos from myTable where StartPos <= m.tnEnd and EndPos >= m.tnStart
to get all records within a passed range.

However, I also pass tnIncrement and my ranges are from tnStart to tnEnd incremented by tnIncrement. So, using the SQL above I also want to add StartRange and EndRange fields to identify which inner range the records fallen into. Somehow I can not really get my math straight and can use a hand here.

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform