SELECT train, dest, time FROM (
SELECT train, dest, time,
RANK() OVER (PARTITION BY train ORDER BY time DESC) dest_rank
FROM traintable
) where dest_rank = 1
SELECT train, dest, time FROM (
SELECT train, dest, time,
RANK() OVER (PARTITION BY train ORDER BY time DESC) dest_rank
FROM traintable
) where dest_rank = 1
2 Fungsi untuk Mendapatkan Tahun dari Tanggal di Oracle
Bagaimana saya bisa terhubung ke server Oracle Database 11g melalui rantai terowongan ssh (terowongan ganda, server di jaringan perusahaan)?
Mencari Teks dalam Prosedur Tersimpan Oracle
Perlu mengatur ulang nilai urutan di Oracle
Oracle 11g - Periksa batasan dengan RegEx