|
Hi all i'm going to try and ask this the best way i can because it confuses the hell out of me. Example : 4 tables Now what i want to do is select all the companys with profiles so inner join between company and company profile, but then the tricky bit is i want to join that with the most recent file processed for EACH company which is in the companydatafile table, using the execution table to link between the three. How can i do this??? i.e each company has many files etc.
(comments are locked)
|
|
Sorry, without some test data, expected output and assuming the highest executionid corresponds to most recent file processed, this is kind of a pseudo-code to get you started That's exactly what i've been looking for. I'm still getting familiar with the concept of effectively joining a query back on to itself...
Sep 06 '12 at 11:47 AM
jhowe
(comments are locked)
|

