私は情報を取得する必要がある場所から以下の3つのテーブルを持っています。以下は nagios_performance_data nagios_large_performance_data client_circuit_mapping3つのテーブルから情報を取得するためのMysqlクエリ
は今、私は
client_circuit_mapping.groupname、nagios_performance_data、以下の出力を得るためにこれらの3つのテーブルを照会する必要が
nagios_performance_data
circuit_name | record_date | latency | packetloss |
+----------------------------+---------------------+---------+------------+
| Device 1 | 2016-11-28 04:40:00 | 72.54 | 0.00
nagios_large_performance_data
+----------------------------+---------------------+---------+------------+
| circuit_name | record_date | latency | packetloss |
+----------------------------+---------------------+---------+------------+
| Device 1 | 0000-00-00 00:00:00 | 83.00 | 0.00 |
+----------------------------+---------------------+---------+------------+
client_circuit_mapping
+-------------------------------+---------------------------------------+
| circuit_name | groupname |
+-------------------------------+---------------------------------------+
| Device1 |Group1 |
+-------------------------------+---------------------------------------+
、それらのテーブルからのサンプルデータです。 circuit_name、nagios_performance_data.record_date、nagios_performance_data.packetloss、nagios_performance_data.latency、nagios_large_performance_data.latency
誰もがcircuit_name
と
あなたは少なくとも何か試したことがありますか? SQLを見ることはできますか? –