Jump to content
Sign in to follow this  
pelangi pixel

Cari Min N Max

Recommended Posts

Saya nk tanye camne nk cari min n max value dari recordset yang ade dalam page
Sql utk recordset saye:

contoh :

table: evaluation
lect id | eva_a1 | eva_a2 | eva_a3
1 2 2 2
1 3 3 3
2 1 1 1
3 2 4 4
3 1 3 3

then pas sql

Recordset(Recordset8)

SELECT lect_id,sum(eva_a1+eva_a2+eva_a3)
FROM evaluation
GROUP BY lect_id

output:
lect id | sum
1 15
2 3
3 17

so.. cmne nk cari lect_id mane yang ade sum paling max n paling min..

saye try create view utk wat virtual table gune sqlyog tapi tak leh...

thank u

ps: confused nk post kt sql ke kt php

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...