Hi all,

Thanks everyone for the tips on querying related tables with inner joins. 
On that note, I'd like to check the following: when I use INSERT or UPDATE 
statements in that scenario (related tables), I'd need to do it 
individually for each table in the relation, right?

So, using a previous example, if I have these 4 tables:

Table 1: "Word"
Field: word PK (many-to-many) (one-to-many)
Field: pronunciation FK (one-to-many)
Field: URLName FK (one-to-many)
Field: meaning

Table 2: "Type"
Field: word FK
Field: type PK  (many-to-many)

Table: "WordTypeLinking"
Field: word FK
Field: type FK

Table 3: "Pronunciation"
Field: word FK (one-to-many)
Field: pronunciation PK (one-to-many)

Table 4: "URL"
Field: word FK (one-to-many)
Field: URLName PK (one-to-many)
Field: URLLink
Field: URLDescription

....am I correct in assuming I'll have to use 4 different INSERT queries (I 
understand you can specify only 1 table per query when using INSERT)? Or, 
what would be a better way to enter that data? Any best practices/tricks 
you could suggest?

Thanks in advance for any suggestions/ideas/sample scripts you can provide :-)

Regards,

Roberto Perez
[EMAIL PROTECTED]



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194889
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to