Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with recursive whole_bike as (
- select * from bicycle_parts
- where name = 'whole bicycle'
- union
- select part.*
- from whole_bike, part
- where
- whole_bike.id=part.part_of
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement