> commented... First it returns anything in notes_to_the_record with the user id. Then the internal or subquery returns anything from the shared database that has the user id. But why does it have to do n.n_r_id IN? Is that just to append the query and actually does no more filtering? Is having a subquery make it automatically do a join since we no longer do it, but it still seems to join fields?
Sorry to seem dense here but this new territory for me. I just want to make sure that I can replicate the idea in the future. > n.n_r_id IN (SELECT n_r_id FROM notes_to_the_record_shared WHERE id = > > #session.user.id#) > /**This is probably the part that gave you the most trouble...think of > > the subquery the same way you might a list of values...say that query > > returns the values 123,345,678...then you can think of this part of > the > query the same as "n.n_r_id IN (123,345, 678)"**/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267950 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4