Solved

select all from one table and select one field from another table

Posted on 2006-11-20
2
232 Views
Last Modified: 2008-03-10
Hello

I have this query
SELECT * FROM reg_title_app f, agents a

how can I do something like this
SELECT * FROM reg_title_app f, agents a, company c
but only read one field from company?

I'm using mysql 4.0.27

Thanks,
Sean
0
Comment
Question by:sean-keys
2 Comments
 
LVL 142

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 25 total points
ID: 17982722
SELECT f.*, a.*, c.company_name FROM reg_title_app f, agents a, company c
0
 
LVL 35

Accepted Solution

by:
Raynard7 earned 100 total points
ID: 17982724
Something like

Select f.*, a.*, c.Field FROM reg_title_app f, agents a, company c where f.id = a.id and a.id2 = c.id2
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now