┌─────────────────────────────────────┐
╔═══════════════╗ │ ╔══════════════════════════╗ │
║ contacts ║ │ ║ contact_list ║ │
╠═══════════════╣ │ ╠══════════════════════════╣ │
║ contact_id ║──┤ ┌─║ contact_list_id ║──┐ │
║ contact_name ║ │ │ ║ contact_list_description ║ │ │
╚═══════════════╝ │ │ ╚══════════════════════════╝ │ │
│ │ │ │
│ │ │ │
╔═══════════════════════╗ ╔════════════╗ ╔══════════════════════╗
║ contact_list_contacts ║ ║ mass_notes ║ ║ mass_note_recipients ║
╠═══════════════════════╣ ╠════════════╣ ╠══════════════════════╣
║ contact_list_id ║ ║ note_id ║────║ note_id ║
║ contact_id ║ ║ note_text ║ ║ contact_id ║
╚═══════════════════════╝ ╚════════════╝ ╚══════════════════════╝
SELECT mass_notes.note_id, contact_list.contact_ID FROM mass_notes, contact_list WHERE mass_notes.note_id = [passed in note id] AND contact_list.contact_list_ID = [passed in list ID]
SELECT mass_notes.note_id, contact_list.contact_ID INTO mass_notes_relationships FROM mass_notes, contact_list WHERE mass_notes.note_id = [passed in note id] AND contact_list.contact_list_ID = [passed in list ID]
| Subject | Views | Written By | Posted |
|---|---|---|---|
| SELECT INTO from two tables? | 11126 | Christopher Swearingen | 12/08/2009 02:42PM |
| Re: SELECT INTO from two tables? | 2852 | Christopher Swearingen | 12/09/2009 11:25AM |
| Re: SELECT INTO from two tables? | 2596 | Christopher Swearingen | 12/09/2009 11:38AM |
| Re: SELECT INTO from two tables? | 2279 | Peter Brawley | 12/10/2009 03:04PM |
| Re: SELECT INTO from two tables? | 3230 | Roberto Novakosky | 12/18/2009 09:08AM |
| Re: SELECT INTO from two tables? | 2331 | Christopher Swearingen | 12/18/2009 02:36PM |
| Re: SELECT INTO from two tables? | 2270 | Christopher Swearingen | 12/18/2009 04:26PM |
Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.