I have a problem about group by. My database name ayniyat_x and it has 6 fields.
FIELDS
hesap_kodu duzey_1 duzey_2 duzey_3 duzey_4 duzey_5
150 01 01 01 25 null
150 02 01 05
150 01 01 24
253 01 01 19
150 02 01 16
What I explain How I can be group same fields hesap_kodu,duze y_1,duzey_2
150 01 01 01 25
150 01 01 24
150 02 01 05
150 02 01 16
253 01 01 19
I tried tgis sql but it didn't work.
"Select * from ayniyat_x where (hesap_kodu,duz ey_1,duzey_2) in (select * from ayniyat_x group by hesap_kodu,duze y_1,duzey_2)
FIELDS
hesap_kodu duzey_1 duzey_2 duzey_3 duzey_4 duzey_5
150 01 01 01 25 null
150 02 01 05
150 01 01 24
253 01 01 19
150 02 01 16
What I explain How I can be group same fields hesap_kodu,duze y_1,duzey_2
150 01 01 01 25
150 01 01 24
150 02 01 05
150 02 01 16
253 01 01 19
I tried tgis sql but it didn't work.
"Select * from ayniyat_x where (hesap_kodu,duz ey_1,duzey_2) in (select * from ayniyat_x group by hesap_kodu,duze y_1,duzey_2)
Comment