This content originally appeared on DEV Community and was authored by Query Filter
SELECT
row_identifier,
RTRIM(XMLAGG(XMLELEMENT(E, chunk_content).EXTRACT('/text()') ORDER BY chunk_num).GETCLOBVAL()) as full_text
FROM (
SELECT
t.ROWID as row_identifier,
c.chunk_num,
blob_to_text_range(t.CONTRAGRP, c.start_byte, c.end_byte) as chunk_content
FROM
ZExecDetail t
CROSS JOIN LATERAL (
SELECT
level as chunk_num,
(level * 4000 - 3999) as start_byte,
(level * 4000) as end_byte
FROM dual
CONNECT BY level <= CEIL(blob_length(t.CONTRAGRP) / 4000)
) c
WHERE
t.INTERNTIMESTAMP = to_orating_from_syb('May 25 2012 12:50:13:406PM')
AND t.ORDERID = '1214650eat6'
ORDER BY t.ROWID, c.chunk_num
)
WHERE chunk_content IS NOT NULL
GROUP BY row_identifier
This content originally appeared on DEV Community and was authored by Query Filter
Print
Share
Comment
Cite
Upload
Translate
Updates
There are no updates yet.
Click the Upload button above to add an update.
APA
MLA
Query Filter | Sciencx (2025-11-24T15:08:31+00:00) select1. Retrieved from https://www.scien.cx/2025/11/24/select1/
" » select1." Query Filter | Sciencx - Monday November 24, 2025, https://www.scien.cx/2025/11/24/select1/
HARVARDQuery Filter | Sciencx Monday November 24, 2025 » select1., viewed ,<https://www.scien.cx/2025/11/24/select1/>
VANCOUVERQuery Filter | Sciencx - » select1. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/11/24/select1/
CHICAGO" » select1." Query Filter | Sciencx - Accessed . https://www.scien.cx/2025/11/24/select1/
IEEE" » select1." Query Filter | Sciencx [Online]. Available: https://www.scien.cx/2025/11/24/select1/. [Accessed: ]
rf:citation » select1 | Query Filter | Sciencx | https://www.scien.cx/2025/11/24/select1/ |
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.