‎2006 Sep 21 2:44 PM
I am writing a report based on the number of customers.
For ex: if the number of customers are greater than 50, peform this, if the number of customers are greater than 100, perform that etc.
My question is - Should I declare 'number of customers' as integer or numeric ? What difference does it make?
Thanks in advance for your input,
Krishen
‎2006 Sep 21 2:47 PM
‎2006 Sep 21 2:47 PM
‎2006 Sep 21 2:48 PM
Thanks Rich!
If I store the value in a table, should I use numeric ? If so, why?
Regards,
Krishen
Message was edited by: Krishen
‎2006 Sep 21 2:51 PM
‎2006 Sep 21 2:49 PM
hi kishen,
since its customer u declare it integer.
rgds
anver
mark all hlpful answers
‎2006 Sep 21 2:49 PM
‎2006 Sep 21 2:56 PM
hi,
Better you declare it as integer.
If you declare it as numeric, you need to know what will be the upper limit to the no. of customers. Ofcourse, integer also has a limit.
data: v_cnt(4) type n.
it can not hold greater than 9999. So, better declare as integer instead of numeric as you dont know the no of customers.
Regards,
Sailaja.