H
Size: a a a
H
H
const _ans = await createQueryBuilder(ChatEntity, "chat")
.where("chat.isGroup = :value", { value: false })
.leftJoin("chat.participance", "participance")
.where("participance.participant_id IN (:...ids)", {
ids: [tokenVer.id, partsUser],
})
.getMany();
H
IT
VY
IT
mm
tstzrangeselect ..... from tstzrange(2021-01-01, 2021-01-02)mm
VY
mm
mm
YS
AS
AN
AN
АЯ
o.start_date
, o.end_date
, format('%s - %s', to_char(o.start_date, 'TMMon DD'), to_char(o.end_date, 'TMMon DD')) as interval_name
from (select greatest(src.start_date, :p_start_date) as start_date
, least(src.end_date, :p_end_date) as end_date
from (select t.start_date
, coalesce(lead(t.start_date) over (order by t.start_date) - interval '1 microsecond', date_trunc('month', :p_end_date) + interval '1 month' - interval '1 microsecond') as end_date
from (select init_date + step * interval '15 day' as start_date
from generate_series(date_trunc('month', :p_start_date), date_trunc('month', :p_end_date) + interval '1 month' - interval '1 microsecond', interval '1 month') as init_date
cross join generate_series(0, 1) as step) as t) as src
where (src.start_date, src.end_date + interval '1 microsecond') overlaps (:p_start_date, :p_end_date + interval '1 microsecond')) as oAS
K
AB
АЯ