Skip to content

Instantly share code, notes, and snippets.

@boy3vil
Created February 21, 2014 08:17
Show Gist options
  • Save boy3vil/9130580 to your computer and use it in GitHub Desktop.
Save boy3vil/9130580 to your computer and use it in GitHub Desktop.
SELECT
kelas_pendidik.pendidik,
kelas_pendidik.kelas,
kelas_pendidik.tahun,
kelas_pendidik.bulan,
kelas_pendidik.hari,
kelas_pendidik.jam,
kelas_pendidik.kode_pilih_kelas,
(SELECT COUNT( kelas_peserta.kode_pilih_kelas )
FROM kelas_peserta
WHERE kelas_peserta.kode_pilih_kelas = kelas_pendidik.kode_pilih_kelas ) AS kapasitas
FROM `kelas_pendidik`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment