Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 17 Jul 2003 @ 12:35:59 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


Subj:   Re: Check rowcount in bteq utility
 
From:   Jim Downey

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



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023