Ceriwis

Ceriwis (https://forum.ceriwis.com/forum.php)
-   Programming (https://forum.ceriwis.com/forumdisplay.php?f=63)
-   -   [help] sub query (https://forum.ceriwis.com/showthread.php?t=574644)

Badguy13 20th November 2011 09:46 AM

[help] sub query
 

gan tolongin ane dah otak-atik tetep gak berhasil. ane newbie banget ama sub query. gini gan ane punya 2 tabel



tabel pegawai

| id | nama |

| 1 | ane |

| 2 | udin |

| 3 | jamal |



tabel absen

|id | keterangan |

| 1 | tepat |

| 2 | tepat |

| 3 | telat |

| 1 | telat |

| 2 | telat |

| 3 | telat |

| 2 | telat |

| 1 | telat |

| 3 | tepat |





hasil yang diharapkan:

| nama | jumlah absen telat|

| ane | 2

| udin | 2

| jamal | 1





ada yg bisa bantuin ga gan? :ceriwislove: help

</div>


All times are GMT +7. The time now is 11:50 PM.