Join Types

tbpowers

Active member
Joined
Dec 12, 2011
Messages
41
Programming Experience
Beginner
When creating relationships between tables, in the DataSet Designer, is there a way to specify the join type (Inner, Left Outer, etc...)?
 
A relationship isnt a join per se.. or you could think of it as a left join, with the parent on the left.. A parent can have no children but a child cannot lack a parent
 
A relation is not a join. A relation can be one-to-one or one-to-many. A join generally uses a relation, either explicit or implicit, to retrieve data from two tables. An inner join will get only those parents that have children while an outer join will get all parents regardless of whether they have children or not. You could execute two queries on the same pair of tables, one using an inner join and one using an outer join, but that doesn't mean that the relation between the tables changes.
 
We are still trying to cascade comboboxes. The tables are related, however it is not a foreign key relation. We have yet to get it to work by creating the relationships in the dataset. We are at loss on getting this to work!
 
Cascading Comboboxes

We have three tables with lookup information for the comboboxes. These are linked using a sub id. So for instance, the sub id in the first table is linked to the category id in the second table. Respecitvely, the sub id in the second table is linked to the category id in the third table. As you can see, from our example data below, there may be the same value and label assigned to more than one category, so these are not foreign key related. We setup a "Relation Only" relationship in the dataset, but it is not working. We appreciate any help you can provide and just let us know if more information is needed to understand our issue.
CATEGORY_IDSUB_IDVALUELABEL
PCATCONDCONDENSERCondenser
PCATCONTCONTROLLERController
PCATEVAPEVAPORATOREvaporator
PCATSENSSENSORSensor

CATEGORY_IDSUB_IDVALUELABEL
CONDCOMPCOMPOSITEComposites
CONDFASNFASTNERFastner
CONTELCOELECTRIC_CONTROLElectric Control
CONTFASNFASTNERFastner
EVAPCOMPCOMPOSITEComposites
EVAPDTBEDRAIN_TUBEDrain Tube
SENSELCTELECTRIC_CONNECTORElectric Connector
SENSSEFASENSOR_FAILURESensor Failure

CATEGORY_IDSUB_IDVALUELABEL
COMPBRKNBROKENBroken
COMPCRKDCRACKEDCracked
FASNBRKNBROKENBroken
FASNMISGMISSINGMissing
ELCOCNCTCONNECTORConnector
ELCOCPFLCOMPONENT_FAILComponent Fail
ELCTCNCTCONNECTORConnector
ELCTSFTWSOFTWARESoftware
 

Attachments

  • Table Relations.jpg
    Table Relations.jpg
    151 KB · Views: 29
Back
Top