If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Given that table T1 needs to hold specific numeric values up to 99999.99 in column C1.
Which of the following would be the most exact definition for C1?
1. REAL
2. INTEGER
3. NUMERIC(7,2)
4. DECIMAL(5,2)
Given that table T1 needs to hold specific numeric values up to 99999.99 in column C1.
Which of the following would be the most exact definition for C1?
1. REAL
2. INTEGER
3. NUMERIC(7,2)
4. DECIMAL(5,2)
What's your answer?
Thanks,
Is this from a test or something?
3.
REAL rounds, INTEGER can't store decimals, and your (5,2) definition would only store up to 999.99
__________________
--
Jonathan Petruk
DB2 Database Consultant