B
Brian Henry
Before i explain this because of a strange situation we're haveing with data
we import from a 3rd party this Many to many relationship has to exist, so
it can not be replaced.
With that said, we have two tables, with a junction table in the middle (a
many to a many relationship) these names are just for example of course. The
first table called Carriers and the second table called coverages. with a
junction table called CarriersJunCoverages. Here's an example DDL really
qucik
Carriers
======
CarrierID PK Number Identity
Name
Coverages
========
CoverageID PK Number Identity
Name
CarrierJunCovearges
================
CarrierID PK (Composite PK)
CoverageID PK (Composite PK)
Now, If I have a Carrier, how do I go about retrieveing all the coverage
rows related to it? I set up relations of course on the dataset between them
in the correct directions with coverages and carriers as the parent table
and carrierjuncoverages as the child table for both..
Say I say give me all the coverages for the carrier with CarrierID = 150,
how would I retrieve those in ADO.NET? a dataview seemed good up to the
point you cant join in dataviews to my understanding.. how would you guys
deal with this? thanks
we import from a 3rd party this Many to many relationship has to exist, so
it can not be replaced.
With that said, we have two tables, with a junction table in the middle (a
many to a many relationship) these names are just for example of course. The
first table called Carriers and the second table called coverages. with a
junction table called CarriersJunCoverages. Here's an example DDL really
qucik
Carriers
======
CarrierID PK Number Identity
Name
Coverages
========
CoverageID PK Number Identity
Name
CarrierJunCovearges
================
CarrierID PK (Composite PK)
CoverageID PK (Composite PK)
Now, If I have a Carrier, how do I go about retrieveing all the coverage
rows related to it? I set up relations of course on the dataset between them
in the correct directions with coverages and carriers as the parent table
and carrierjuncoverages as the child table for both..
Say I say give me all the coverages for the carrier with CarrierID = 150,
how would I retrieve those in ADO.NET? a dataview seemed good up to the
point you cant join in dataviews to my understanding.. how would you guys
deal with this? thanks