homer.favenir
Verified User
hi to all
could any one please help me with this.
it has an error: "Subquery returns more than 1 row"
please check my code
thanks
could any one please help me with this.
it has an error: "Subquery returns more than 1 row"
Code:
SELECT
tbl_transactions.artid,
sec_to_time(sum(time_to_sec(timediff(dtecompleted,dtestarted)))) as 'Total Time Spent',
tbl_received.dtedue as 'Due Date',
(SELECT tbl_transactions.dtestarted FROM tbl_transactions where tbl_transactions.transcode = 'SH') as 'ship date'
from
tbl_transactions
inner join tbl_user on (tbl_transactions.startedby = tbl_user.userid)
inner join tbl_received on (tbl_transactions.artid = tbl_received.artid)
group by
artid
order by
artid
thanks