Date: 04/19/07 (SQL Server) Keywords: no keywords I have a query that connects 4 tables. SELECT h.id, h.first_name, h.last_name, nf.*, f.name AS facility, nft.name AS flagcolor FROM hiree INNER JOIN nurse_flag_list nfl ON nfl.hiree_id = h.id INNER JOIN nurse_flag_type nft ON nft.nurse_flag_lookup_id = nfl.id INNER JOIN facility f ON f.id = nf.facility_id Source: http://community.livejournal.com/sqlserver/58119.html
|