Enikusuma's Blog

Query untuk Menghitung IP

Posted on: 7 April 2010

SELECT nim, ROUND(SUM(
(CASE
WHEN nilai > 74 THEN sks*4
WHEN nilai > 64 THEN sks*3
WHEN nilai > 54 THEN sks*2
WHEN nilai > 44 THEN sks*1
ELSE sks*0
END))/SUM(sks),2) as IP
FROM mahasiswa
GROUP BY nim
ORDER BY nim

1 Response to "Query untuk Menghitung IP"

wah tambah lgi ni ilmu w gan,,,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: