Maaşları ödediğim tablom var.
Tablo: TabloPersoneller
Alanlar: id, AdSoyad, Tarih, Ucret
İstediğim: Her Personel için ödediğim son satırları getirsin:
Nasıl Bir sorguyla halledebilirim?
Birden fazla yolu var. Bir tanesi:
with byTarih as ( select *, row_number() over (partition by AdSoyad order by Tarih desc) as rNo from TabloPersoneller ) select id, AdSoyad, Tarih, ucret from byTarih where rNo = 1;
How to create a Minimal, Reproducible Example The way to Go. World's most advanced open source (object-) relational Database. Flutter (for mobile, for web & desktop.