Symptom
Even if you do not touch the mouse, its cursor creeps over the screen.
Solution
Switch it off and on again possibly waiting a couple of seconds inbetween.
Say you have a table without primary key imposed but there are records sporting the same value over a select number of attributes and want to only one record of those to remain within the table, you cannot use a function like ROWID in Oracle because DB2 LUW does not expose such a function/(pseudo) column (see how-to-delete-multiple-records-of-key)
Use sort of subquery, i.e.
delete from (select rownumber() over (partition by <list of attributes over which uniqueness is supposed to be>) as RN
from <table>) as T
where T.RN > 1;
Example
delete from (select rownumber() over (partition by TABLE_NAME,
ROW_SCAN_NUMBER,
DWH_REG_TIME) as RN
from ADW_ETL.ETL_OGG_ROW_SCAN) as T
where T.RN > 1;
with G as
(select *
from ADW_ETL.ETL_GDT_UNIQUE_KEY
where TABLE_NAME in('BAP_KOMMUNIKATION',
'BAP_GESCHAEFTSVORFALL',
'BAP_GFSCHRITT',
'BAP_GFSCHRITTADD',
'BAP_AUFTRAG',
'BAP_AUFTRAGPRODUKT')
)
select G.TABLE_NAME,
C.FLAG_ACTIVE,
G.STORE_FLAG,
G.OGG_PACKER_FREQUENCY,
C.DWH_TIME_DELAY,
I.*
from G
left outer join ADW_STATMON.DWH_ODS_CTRL C
on G.TABLE_NAME = C.DWH_ODSCTRL_GDT_NAME
left outer join ADW_STATMON.DWH_INBOUND_REG I
on I.DWH_TRG_TABLE_NAME = G.TABLE_NAME
where nvl(I.DWH_REG_TS, current_timestamp) >= current_timestamp - 9
;
with G as
(select *
from ADW_ETL.ETL_GDT_UNIQUE_KEY
where TABLE_NAME in('BAP_KOMMUNIKATION',
'BAP_GESCHAEFTSVORFALL',
'BAP_GFSCHRITT',
'BAP_GFSCHRITTADD',
'BAP_AUFTRAG',
'BAP_AUFTRAGPRODUKT')
)
select G.TABLE_NAME,
C.FLAG_ACTIVE,
G.STORE_FLAG,
G.OGG_PACKER_FREQUENCY,
C.DWH_TIME_DELAY,
I.*
from G
left outer join ADW_STATMON.DWH_ODS_CTRL C
on G.TABLE_NAME = C.DWH_ODSCTRL_GDT_NAME
left outer join ADW_STATMON.DWH_INBOUND_REG I
on I.DWH_TRG_TABLE_NAME = G.TABLE_NAME
where I.DWH_REG_TS >= current_timestamp - 9
or I.DWH_REG_TS is null
;
I am pretty sure it is not iso standard behavior, and to me counterintuitive for sure.with G as
(select *
from ADW_ETL.ETL_GDT_UNIQUE_KEY
where TABLE_NAME in('BAP_KOMMUNIKATION',
'BAP_GESCHAEFTSVORFALL',
'BAP_GFSCHRITT',
'BAP_GFSCHRITTADD',
'BAP_AUFTRAG',
'BAP_AUFTRAGPRODUKT')
)
select G.TABLE_NAME,
C.FLAG_ACTIVE,
G.STORE_FLAG,
G.OGG_PACKER_FREQUENCY,
C.DWH_TIME_DELAY,
I.*
from G
left outer join ADW_STATMON.DWH_ODS_CTRL C
on G.TABLE_NAME = C.DWH_ODSCTRL_GDT_NAME
left outer join ADW_STATMON.DWH_INBOUND_REG I
on I.DWH_TRG_TABLE_NAME = G.TABLE_NAME
and I.DWH_REG_TS >= current_timestamp - 9
;
_LOG="$(git log)"
for _COMMIT in "${(@f)$(git cherry -v)}"
# '${(@f)VARIABLE}' splits VARIABLE (can be command substitution) at linebreaks (otherwise it would get split into words)
do
_DATE_STRING=$(echo "${_LOG}" | grep -A2 ${_COMMIT[(w)2]} | grep -F Date)
# (w) spilts into words, [..2] takes the second element
echo "${_DATE_STRING} ${_COMMIT}"
done
or as oneliner
_LOG="$(git log)" ; for _COMMIT in "${(@f)$(git cherry -v)}" ; do _DATE_STRING=$(echo "${_LOG}" | grep -A2 ${_COMMIT[(w)2]} | grep -F Date) ; echo "${_DATE_STRING} ${_COMMIT}" ; done
screenis a terminal multiplexer pretty useful when you want to have several terminals over one single remote connection and also if you want disconnects not effect your sessions.
From the active branch git checkout -b <LOCAL_BRANCH> From a donator branch git checkout -b <LOCAL_BRANCH> <DONATING_BRANCH...