sql - If my subquery is returning multiple value then i need to perform normalization? -
select title movie movie_no = (select movie_no customer inner join issues on customer.`cus_id`=issues.`cus_id` name = 'shyam')
no. need use in
or any
:
select title movie movie_no in (select movie_no customer inner join issues on customer.cus_id = issues.cus_id name = 'shyam' );
i mean, might need normalize data other reasons, subquery returning more 1 value not such reason. and, data structure seems reasonable, based on 1 query.
Comments
Post a Comment