sql - LEFT JOIN for current row in primary table -
This is a question about JDBC I have the next job I am running through rows through Table A and For some existing lines, I want to execute some queries in reference to existing row from AR to table B. For example, if I have some query like
AID = B RFID
select from joining at one B.Description then I get all the results Where BRIID = "A from the current line" .ID Please note, I can not modify the query to select the result from B. For example, let's do Table A like this:
ID name 1 name 2 name B
and Table B:
< Pre> id details riffid 1 desc1 1 2 desc2 1 3 decs3 2 4 desc4 2
So if I for example table 2 with table 2 on the row and my query After that I only have to get "desc3" and "desc4".
I suggest that this task can be resolved with the cursor but I am familiar with it. Based on the question
Can anyone give me a hint?
Otherwise, I don do not think we understand this question ...
Comments
Post a Comment