mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Tweak distance-records (filter by station at join as well)
This commit is contained in:
@@ -31,6 +31,7 @@ class Distancerecords_model extends CI_Model {
|
||||
LEFT JOIN (
|
||||
SELECT *, ROW_NUMBER() OVER (PARTITION BY COL_SAT_NAME, COL_DISTANCE ORDER BY COL_TIME_ON asc) AS rn
|
||||
FROM '.$this->config->item('table_name').'
|
||||
WHERE station_id IN ('.implode(', ', $logbooks_locations_array).')
|
||||
) t2
|
||||
ON t1.sat = t2.COL_SAT_NAME
|
||||
AND t1.distance = t2.COL_DISTANCE
|
||||
|
||||
Reference in New Issue
Block a user