Notes
Notes - notes.io |
state,
enodeb_count,
ROUND((enodeb_count * 1.0 / EnodeB_Total * 1.0) * 100.00, 2) AS "Percent"
FROM
(SELECT data_date,
state,
enodeb_count,
'D' As d
FROM
(SELECT
data_date,
state,
COUNT(DISTINCT Enodeb) AS enodeb_count,
SUM(CASE WHEN (anomaly_mt='true' OR anomaly_lt='true' OR anomaly_st='true') then 1 else 0 end) as cnt1
FROM vue_anomaly
WHERE (anomaly_mt='true' OR anomaly_lt='true' OR anomaly_st='true')
AND (data_date IN (select distinct data_date FROM vue_anomaly
where (anomaly_mt='true' OR anomaly_lt='true' OR anomaly_st='true')
AND OEM IN (SELECT DISTINCT OEM FROM vue_anomaly WHERE NOT REGEXP_LIKE(OEM, '^[0-9]'))
AND (Enodeb <> 0)
AND (state <> '')
AND (zip_code <> 0)
AND (zip_code not like '%null')
AND(state <> '')
AND (network_sub_market <> '')
ORDER BY data_date desc limit 1))
AND OEM IN (SELECT DISTINCT OEM
FROM vue_anomaly WHERE NOT REGEXP_LIKE(OEM, '^[0-9]'))
AND (Enodeb <> 0) AND (state <> '') AND (zip_code <> 0) AND (zip_code not like '%null') AND(state <> '')
AND (network_sub_market <> '')
GROUP BY state, data_date
HAVING cnt1 > 354
)
ORDER BY enodeb_count DESC) AS X
INNER JOIN
(SELECT
COUNT(DISTINCT Enodeb) AS EnodeB_Total,
'D' As d
from vue_anomaly
where (anomaly_st = 'true' OR anomaly_mt = 'true' OR anomaly_lt = 'true')
AND OEM IN (SELECT DISTINCT OEM FROM vue_anomaly WHERE NOT REGEXP_LIKE(OEM, '^[0-9]')) AND (Enodeb <> 0)
AND (zip_code <> 0) AND (zip_code NOT LIKE '%null')
AND(state <> '') AND (network_sub_market <> '') AND data_date IN (SELECT DISTINCT data_date from vue_anomaly where (anomaly_st = 'true' OR anomaly_mt = 'true' OR anomaly_lt = 'true')
AND (Enodeb <> 0) AND OEM IN (SELECT DISTINCT OEM FROM vue_anomaly WHERE NOT REGEXP_LIKE(OEM, '^[0-9]')) AND (zip_code <> 0) AND (zip_code NOT LIKE '%null')
AND (network_sub_market <> '') AND (state<>'') AND data_date <> '' ORDER BY data_date desc LIMIT 1)
)AS Y
ON X.d=Y.d
ORDER BY 3 DESC
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team