siang teman2,
sy punya tableA yg isinya kodewilayah, kodesektor,namasektor
sy buat query dgn perintah "select kodewilayah,kodesektor,namasektor from TableA
group by kodewilayah,kodesektor,namasektor"
yg hasilnya sbb :
kodewilayah kodesektor namasektor
W1 S1 sektor 1
W1 S2 sektor 2
W2 S3 sektor 3
W2 S4 sektor 4
W3 S5 sektor 5
nah yg jadi pertanyaan gimana caranya dgn pake query/SQL statment hasilnya sbb :
nourut kodewilayah kodesektor namasektor
1
WX S1 sektor 1
1 WX S2 sektor 2
2
WY S3 sektor 3
2 WY S4 sektor 4
3 WZ S5 sektor 5
thks atas bantuannya,
salam,
Budi