That sql has a bad taste - @schiesbn would it be possible to setup a unit test for this? THX