Code Library
Home Submit Free Hosting Link To Us Contacts

SQL Three table JOIN old-style

SQL Three table JOIN old-style SQL SQL Three table JOIN old-style Download (.zip)



USE Pubs
GO
SELECT 
'Author'=RTRIM(au_lname) + ', ' + au_fname,
'Title'=title
FROM authors A, titles T, titleauthor TA
WHERE 
A.au_id=TA.au_id AND T.title_id=TA.title_id  -- JOIN CONDITIONS
AND A.state <> 'CA'
ORDER BY 1






Tatet