Solved

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

Posted on 2006-11-20
2
245 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Introduction In this installment of my SQL tidbits, I will be looking at parsing Extensible Markup Language (XML) directly passed as string parameters to MySQL 5.1.5 or higher. These would be instances where LOAD_FILE (http://dev.mysql.com/doc/refm…
More Fun with XML and MySQL – Parsing Delimited String with a Single SQL Statement Are you ready for another of my SQL tidbits?  Hopefully so, as in this adventure, I will be covering a topic that comes up a lot which is parsing a comma (or other…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

813 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

17 Experts available now in Live!

Get 1:1 Help Now