Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Single Row for SQL Union
Message
 
 
À
30/11/2000 11:26:45
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:
00447413
Vues:
10
>Hello,
>
>I have some SQL that is:
>
>select proread.la_idla,usertab.us_desc as desc1, '' as desc2
>from proread, usertab
>where proread.pr_inttype=usertab.us_code and usertab.us_type='IT'
>union
>select proread.la_idla,'',usertab.us_desc
>from proread, usertab
>where proread.pr_type=usertab.us_code and usertab.us_type='RE'
group by 1

Does adding the GROUP BY above work?
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform