Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding to multiple rows in the same biz object
Message
De
22/02/2005 14:04:51
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
00988721
Message ID:
00989352
Vues:
22
Can you create a query like...
select callPK, extra fields,
   (select {probably a field list here} from Address where addresspk = callFK group by addresspk),
   (caller version),
   (report version)
from callertable
where blah, blah, blah
The idea here is that you select a single record from the caller table, where you join the fields (uniquely named) from the other tables right on the original select statment. The important part is realizing that the selects for the addresses would return only a single record for each callertable record.

These types of select statements are possible in Oracle, I just haven't tested them with multiple fields yet.


Good luck

Gordon



>I have a form that needs to display three addresses for a "Call". Part of the Call table looks like this
>
>CallPK
>LocationAddressFK
>CallerAddressFK
>ReportAddressFK
>
>What's the proper way to go about this? Seems like I would have to either create three instances of the address business object, or create three data views, but neither way seems quite right.
>
>TIA,
>Mike
Gordon de Rouyan
DC&G Consulting
Edmonton, Alberta
Email: derouyag@shaw.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform