postgresql7.4 SELECT degree_id, stream_name FROM ct_degree WHERE owner_id = :owner_id AND package_id = :package_id