Well to expand on your ideas, I'd rather we didn't have to parse, interpret and modify the actual query to determine whether new data is available: there's just too many forms of the SELECT statement that could screw up the parsing.
However, I think a solution to determining if new data
does exist would be to have an area where the user could type in a preliminary SQL request to be issued prior to the actual request.
The user might then enter something like:
SELECT TOP 1 from mytable where status = 'READY'
If that preliminary statement retrieves 1 or more records, then we would issue the actual request.
(Note that I'm not saying we
will be doing that... we're just chatting here... :-P )