Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Problem
Message
 
 
À
08/10/2004 01:42:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Divers
Thread ID:
00949437
Message ID:
00951274
Vues:
13
Darren,

I don't have that database to test, bu does it support a HAVING clause? if so this might work for you:
select *, itmg_nm + sub1 + sub2 + sub3 as concatkey 
   from table1 
   having concatkey >= 'GNRLHINCLAAAA' AND 
          concatkey <= 'HANDWICJJJ'
>The fields are used as a drill down of product groups, so what I want the sql statement is to extract all records between (itmgnm='GNRL', sub1='HIN',sub2='CLA', sub3='AAA') and (itmg_nm='HAND', sub1='HIC', sub2='JJJ"). It's hard to explain, but if I was allowed to concatenate the 4 fields together, it would be easy. It would be like
>
>select itmg_nm,sub1,sub2,sub3 from table1 where;
>(itmg_nm_sub1+sub2+sub3)>="GNRLHINCLAAAA" AND ;
>(itmg_nm+sub1+sub2_sub3)<="HANDHICJJJ"
>
>But the SQL89 driver I'm using to access the Progress db doesn't allow me to concatenate the fields.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform