IICS | Scenario Question (First/Last record from Source CSV and Write CSV)

Описание к видео IICS | Scenario Question (First/Last record from Source CSV and Write CSV)

Query example:
-- first+last record output
select
empno
, ename
, job
, mgr
, hiredate
, sal
, comm
, deptno
from (
--first record
select
emp.*
, row_number() over(order by rowid) rec_seq
from emp
union all
--last record
select
emp.*
, row_number() over(order by rowid desc) rec_seq
from emp )
where rec_seq=1;

Комментарии

Информация по комментариям в разработке