Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need elegant SQL for Dueling Ranges Ages and FY
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Need elegant SQL for Dueling Ranges Ages and FY
Divers
Thread ID:
00758122
Message ID:
00758122
Vues:
55
Hi...I'm tearing my hair out trying to get an elegant SQL query for finding:

People who were 16 - 21 years of age,
during our Fiscal Year 2001 (which is 07/1/2000 - 06/30/2001)

I'm using bdate BETWEEN CTOD('07/01/1985') AND CTOD('06/30/1986'),
and subqueries,
etc...

But what I want is something like:

SELECT names;

--stuff goes here--

AND age between 16 and 21

TIA
-- Larry Keyes
Remember only You can prevent Gray Goo. Never release nanobot assembers without replication limiting code.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform