Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Immediately exit a query if a condition is verified - response (9) by dnoeth

$
0
0

Of course is TD12 ok, but you'll probably not migrate to TD12 as this is still a very old version, there's TD13, TD13.10, TD14 and TD14.10 already :-)
You could tell the IT staff to add some lines to the existing script:

SELECT 'monday' WHERE (CURRENT_DATE - DATE '0001-01-01') MOD 7 = 0;

.IF ACTIVITYCOUNT = 0 THEN GOTO SkipMyQuery;

your SELECT....

.LABEL SkipMyQuery;
 


Viewing all articles
Browse latest Browse all 14773

Trending Articles