I have some problems on how to output this...
Here's an example of my table
table1
-------------------------------------------------------
jobid
transcode dtestarted startedby
-------------------------------------------------------
0001
AR 2008-06-15 07:42:26 dave
0001
SH 2008-06-18 17:21:10 justine
0002
AR 2008-06-18 08:21:10 dave
0002
SH 2008-06-18 17:30:10 justine
0003
AR 2008-06-18 17:21:10 jonas
0003
SH 2008-06-18 18:21:10 cruz
I must output the number counts of jobid of every person who's transcode is AR and I must display the dtestarted of that certain jobid where the transcode is SH
I did the query like this:
Quote:
select
count(jobid) as `counts`,
startedby,
dtestarted
from table1 where transcode = 'AR'
group by startedby
|
But I have no idea on how to output the dtestarted of the jobid (where the transcode is SH) along with it...