I'm trying to fetch data from database using MySQL, the table has some entries in hindi, I'm looking to filter out those hindi results in google sheets automatically by running SQL queries in google sheets.
I've been able to fetch data into google sheets from database but unable to fetch hindi filtered data
select property, week,
sum(Original_Stories) "Original Stories",
sum(Wire_Stories) "Wire Stories",
sum(Photo_Gallery) "Photo Gallery",
sum(Video_Gallery) "Video Gallery",
from
(select *,
case when a= "Original_Stories" then total end as "Original_Stories",
case when a= "Wire" then total end as "Wire_Stories",
case when a= "Photo" then total end as "Photo_Gallery",
case when a= "Video_Gallery" then total end as "Video_Gallery"
from
(select "Zee Hin" as property,
yearweek(date_format(date_published,"%Y-%m-%d"),6) week,
case
when ((article_type like 'live_blog') or
(article_type like '%article%' and agency_name like 'ज़ी न्यूज़ डेस्क') or
(article_type like '%article%' and agency_name like 'एक्सक्लूसिव') or
(article_type like '%article%' and agency_name like 'ज़ी मीडिया ब्यूरो') or
(article_type like '%article%' and agency_name like 'Exclusive'))
then "Original_Stories"
when (article_type like '%gallery%') then "Photo"
when (article_type like '%video%') then "Video_Gallery"
else 'Wire'
end as a,
count(distinct article_id) total,
count(distinct date_format(date_published, "%Y-%m-%d")) days
from
zeenews_hindi
where date_format(date_published, "%Y-%m-%d") >= '2018-12-30'
group by 2,3
) temp
) agg
group by 1,2
I need data for hindi filters