Join satellite table needed for orbit filters

This commit is contained in:
phl0
2024-11-24 13:09:02 +01:00
parent 519ffd4024
commit aed46a733c

View File

@@ -718,7 +718,9 @@
$where = "AND $where";
}
$sql = "SELECT count(*) qsos, round(COL_ANT_EL) elevation FROM ".$this->config->item('table_name')." where station_id in (" . implode(',',$logbooks_locations_array) . ") and coalesce(col_ant_el, '') <> ''
$sql = "SELECT count(*) qsos, round(COL_ANT_EL) elevation FROM ".$this->config->item('table_name')."
LEFT JOIN satellite ON satellite.name = ".$this->config->item('table_name').".COL_SAT_NAME
where station_id in (" . implode(',',$logbooks_locations_array) . ") and coalesce(col_ant_el, '') <> ''
$where
group by round(col_ant_el)
order by elevation asc";
@@ -769,6 +771,7 @@
$sql = "SELECT count(*) qsos, round(COL_ANT_AZ) azimuth
FROM ".$this->config->item('table_name')."
LEFT JOIN satellite ON satellite.name = ".$this->config->item('table_name').".COL_SAT_NAME
where station_id in (" . implode(',',$logbooks_locations_array) . ")
and coalesce(col_ant_az, '') <> ''
$where