![]() |
|
Archives of the TeradataForumMessage Posted: Thu, 17 Jul 2003 @ 12:35:59 GMT
The select statement only returns one row so the value is 1. I think this is what you want to do: 'sel * from pdata.item_master sample 1;' .if activitycount = 0 then .quit 0; ' The query returns only 1 row if 1 or more rows exist and 0 rows if none exist. Jim
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
![]() | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 30 Jun 2008 | ||||||||||||||||||||||||||||||||||||||||||||||||