bit of a strange one this one...
Someone wrote a sql that in my mind shouldn\'t work, but it does and it also returns the correct results. I\'ve written a simplified exa
Why would you think it shouldn't work? The last bit of the query is pointless though, and you can take it out. It's a simple join on 3 tables:
select * from #history join #transactions on #history.transid = #transactions.transid join #client on #transactions.clientId = #client.clientId