Commit 840985b9 authored by kuhan's avatar kuhan
Browse files

Delabole update

parent a6bd8bd8
SELECT c.`SITE_CODE`, c.`CHANNEL_ID`, c.`CHANNEL_NAME`, c.`MAST_ID`, c.`HEIGHT` as `height`,
c.`SIGNAL_TYPE`, m.`MAST_NO`, m.`DESCRIPTION` as `mast_description`, m.`MAST_HEIGHT` as `mast_height`,
m1.`MANUFACTURER` as `instrument_manufacturer`, m1.`MODEL_SPEC` as `instrument_spec`, m1.`INSTR_TYPE` as `instrument_type`,
m1.`DESCRIPTION` as `instrument_description`
FROM `channels` c, `masts` m, `models` m1
WHERE
(c.`SITE_CODE` = 'delabole')
AND (c.`RESOURCE_DATA` = 'T')
AND (m.`MAST_ID` = c.`MAST_ID`)
AND (m1.`MODEL_ID` = c.`MODEL_ID`)
union
SELECT DISTINCT c.`SITE_CODE`, c.`CHANNEL_ID`, c.`CHANNEL_NAME`,
c.`WT_INDEX` AS Mast_id, c.`HEIGHT`as `height`, c.`SIGNAL_TYPE`, w.`TURBINE_NO` AS Mast_id,
w.`DESIGNATION` AS mast_description, c.`HEIGHT` AS mast_height, m.`MANUFACTURER` as `instrument_manufacturer`, m.`MODEL_SPEC` as `instrument_spec`,
m.`INSTR_TYPE` as `instrument_type`, m.`DESCRIPTION`as `instrument_description`
FROM `channels` c, `wind_turbines` w, `models` m
WHERE
(c.`SITE_CODE` = 'delabole')
AND (c.`TIME_SERIES` = 'F')
AND (c.`RESOURCE_DATA` = 'T')
AND (w.`WT_INDEX` = c.`WT_INDEX`)
AND (m.`MODEL_ID` = c.`MODEL_ID`);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment