Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- layer int
- period tstzrange
- select *
- from t as t1
- where not exists
- (
- select 1
- from t as t2
- where t2.layer < t1.layer and
- t2.period && t1.period
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement