turbot/hackernews_insights

Query: hackernews_sources_domain_input

Usage

powerpipe query hackernews_insights.query.hackernews_sources_domain_input

SQL

with domains as (
select
distinct substring(
url
from
'http[s]*://([^/$]+)'
) as domain
from
hackernews_new
where
$1 = 'New'
union
select
distinct substring(
url
from
'http[s]*://([^/$]+)'
) as domain
from
hackernews_top
where
$1 = 'Top'
union
select
distinct substring(
url
from
'http[s]*://([^/$]+)'
) as domain
from
hackernews_best
where
$1 = 'Best'
)
select
domain as label,
domain as value
from
domains
order by
domain

Params

ArgsNameDefaultDescriptionVariable
$1story_type

    Dashboards

    The query is used in the dashboards: