You are on page 1of 1

select a.*, b.jumlah_proyek from pegawai as a, (select c.kid, count(c.kid) as jumlah_proyek from proyek as c where pmulai>='2011-1-1' group by c.

kid) as b where a.kid=b.kid

select a.pid, a.pnama, a.pselesai, a.kid, b.knama from proyek as a, pegawai as b where a.kid=b.kid and a.pselesai>='2012-1-1'

select c.pnama, count(c.pnama) as jumlah_proyek from proyek as c group by c.pnama

You might also like