blob: 3030abc858a942ba3ce880c75dda0aab08f4d730 [file] [log] [blame]
-- Filters in subqueries
select
sq2.x,
sq2.y
from
(
select
c_date,
c_varchar
from
j1
where
c_bigint is not null
and c_integer in ( -499871720, -499763274, -499564607 , -499395929, -499233550, -499154096, -498966611, -498828740, -498749284 )
and c_boolean is true
) as sq1(x, y)
right outer join
(
select
c_timestamp,
c_varchar
from
j2
) as sq2(x, y)
on ( sq1.x = cast(sq2.x as date))
where
sq2.x not in ( '2015-03-01 01:49:46' , '2015-03-01 01:42:47', '2015-03-01 01:30:41' )
order by sq2.x nulls first limit 5 offset 5
;