load jadwal kuliah sesuai jurusan

Berikut ini merupakan query untuk meload jadwal kuliah sesuai periode,kode semester dan jurusan yang dipilih

declare
@priod char(4),
@kdsem char(1),
@kdjur char(2)
select
@priod=’2011′,
@kdsem=’1′,
@kdjur=’22’

select a.* from master_jadwal_kuliah a with(nolock)
left join transaksi_gugus_matakuliah b with(nolock)
on a.priod=b.priod and a.kdsem=b.kdsem and a.kdmtk=b.kdmtk and b.stsrc=’A’
left join tbjur c with(nolock)
on b.kdggs=c.kdggs and c.stsrc=’A’
where a.priod=@priod and a.kdsem=@kdsem and a.stsrc=’A’
and c.kdjur=@kdjur

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.