That's why I suggested....
sel * from pdata.item_master sample 1; .if activitycount = 0 then .quit 8
This will give the results that are being looked for.
Rob Bankston Teradata Certified Professional UnumProvident - Data Warehouse
Recent Threads
Attachments
Library
Quick Reference
Useful Links
Rules of Conduct
FAQs
Join the Forum
Archives
Sample Index
2003 Indexes