|
On Thursday, January 08, 2015 7:51 AM Gqcy wrote:
I need to get length and width out of our item master via SQL..Maybe use something like:
database field defined: Packed 11,4 (IXXXX)
<<SNIP>> usage of field:
width: positions 1-05, 3 decimal positions
length: positions 6-11, 3 decimal positions
<<SNIP>>
select cast ( dec13 * .001 AS DECIMAL(13,3) )
from library1/file1
where dec13 is a 13,0 Decimal number
the SQL cast is used to avoid truncation of field or column dec13
in STRSQL that select statement returns:
....+....1....+...
CAST function
1,100.001
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.