#156

Captain or Guest

The platform splits users between earners (captains who own cabins) and consumers (guests). For each user output id, name, and a captain or guest label. If a person owns multiple cabins they will appear multiple times — one row per cabin.

Expected output sample

This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables.

idnamestatus
1Sophiacaptain
1Sophiacaptain
2Liamcaptain

Your query result will appear here