Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get 3rd field from previous 2 fields
Message
De
05/10/2006 16:03:38
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Get 3rd field from previous 2 fields
Divers
Thread ID:
01159849
Message ID:
01159849
Vues:
65
Hi all,

I have mytable with 2 fields ( Name1 and Name2 ) and want to get Newtable
with 1 field called Name3:

blank and blank2 are fixed.

if Name1 = blank then Name3 must = ccccc

if Name1 = aaaaa then Name3 must = aaaaa

if Name1 = blank then Name3 must = blank and not blank2

...............
mytable

Name1:    Name2:

aaaaa    bbbbb
blank    ccccc
blank    blank2
ddddd    eeeee
fffff    ggggg
blank    hhhhh

Newtable 

Name3:

aaaaa
ccccc
blank
ddddd
fffff
hhhhh
How to do this with SQL ?

TIA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform