Here's the deal, I have a query that is built off two tables.
There is a left outer join from table1 to table2, and table2 has multiple returns for each record in table1.
table1 table2
key --------------> key
key
key
Now this means that one record from table1 will match up with X records from table1 and form X many rows in the query.
There is one column from table2 that I would return the value for only the first occurence of that key combination. And then for each subsequent record of that key combination return "0"
I realize this might be a little difficult to understand since I'm having a tough time explaining it. Please ask any questions you need to help.
Thanks a lot in advance!
-Mike
There is a left outer join from table1 to table2, and table2 has multiple returns for each record in table1.
table1 table2
key --------------> key
key
key
Now this means that one record from table1 will match up with X records from table1 and form X many rows in the query.
There is one column from table2 that I would return the value for only the first occurence of that key combination. And then for each subsequent record of that key combination return "0"
I realize this might be a little difficult to understand since I'm having a tough time explaining it. Please ask any questions you need to help.
Thanks a lot in advance!
-Mike