This looks reasonable, based on what I have to guess about your DB structure. Without some context around where this code lives, it's hard to say more.
Is it doing what you want?
Please use CODE tags when posting source code for better readability. See my signature block for how to do that.




Reply With Quote

Bookmarks