ratcateme Posted September 5, 2008 Share Posted September 5, 2008 i have two tables one with logins and a file called domain_id domain_id corresponds to the ID filed in another table. i want to run a query that select the domain_id from the users table and then gets the domain name from the domains table. Scott. Quote Link to comment Share on other sites More sharing options...
fenway Posted September 5, 2008 Share Posted September 5, 2008 You need a JOIN: select d.name from domains as d inner join logins as l using (domain_id) where l.username = <whatever> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.