Hmm, can you post the database?
I'm not too sure hey, cause like I'm really lazy, and I hate to think heaps. But I'll give it a go.
I think what you're looking for is a double Inner Join. Not too sure.
Code:
SELECT * FROM ((DETAILS INNER JOIN VEHICLES ON DETAILS.user = VEHICLES.user) INNER JOIN NOTES ON VEHICLES.user = NOTES.user) INNER JOIN HISTORY ON DETAILS.user = HISTORY.user;
I must warn you I haven't actually tried a triple join before, but I have a double join, and in theory it shoudl work. ;)
Sounds good but...problem???
Sounds good but I have been told that
"the result will be all combinations from the 4 tables that matches. For instance, if a user has 5 matching rows in each of the other three tables, you will end up with 5*5*5 = 125 rows for that user only. So maybe you should pull the historic data in a separate query"
Does this sound right? And are there any ways around it?