Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Single Row for SQL Union
Message
 
 
À
01/12/2000 03:35:04
Peter Walburn
Omega Data Services Ltd
Aberdeen, Royaume Uni
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00447397
Message ID:
00447974
Vues:
13
>>
>>Try something like:
>>select proread.la_idla,desc1 = case usertab.us_type when 'IT' then usertab.us_desc else '' end,
>>   desc2 = case usertab.us_type when 'RE' then usertab.us_desc else '' end
>>   from proread, usertab
>>   where proread.pr_inttype=usertab.us_code
>>HTH.
>
>This doesn't do what I need, but it will probably help. It's somehting for me to play with.
>
>Thanks,
>
>Pete

Yes you could add the 'IT' and 'RE' criteria to the WHERE clause so it only picks up those records. Otherwise, it picks up everything and you could conceivably have both fields blank (which isn't what you want).
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform