This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stop; | |
-- Publish the data within a table using SQL | |
with json_rows (j) as ( | |
select json_object( | |
key 'EMPNO' value empno, key 'FIRSTNME' value firstnme, | |
key 'MIDINIT' value midinit, key 'LASTNAME' value lastname, | |
key 'WORKDEPT' value workdept, key 'PHONENO' value phoneno, | |
key 'HIREDATE' value hiredate, key 'JOB' value job, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- Lets say I have this character data, how do I extract the numeric? | |
-- | |
-- Q: Library . . . . . . : SYSIBM Number of objects . : 65 | |
-- A: Use the TRANSLATE built-in function to convert all the noise characters to blanks | |
values bigint( | |
translate( | |
'Library . . . . . . : SYSIBM Number of objects . : 65', | |
' ', |
NewerOlder