Skip to content

Instantly share code, notes, and snippets.

@AbhimanyuAryan
Created March 7, 2022 12:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save AbhimanyuAryan/fc038ef881006e96e4b8143dc1c1295a to your computer and use it in GitHub Desktop.
Save AbhimanyuAryan/fc038ef881006e96e4b8143dc1c1295a to your computer and use it in GitHub Desktop.
genieframework downloads
SELECT SUM(request_count) from stats WHERE package_name IN('Genie',
'SearchLight',
'Stipple',
'StippleCharts',
'StippleUI',
'StipplePlotly',
'SearchLightMySQL',
'SearchLightPostgreSQL',
'GenieAuthentication',
'SearchLightSQLite',
'StippleLatex',
'StipplePlotlyExport',
'GenieAutoreload',
'GenieAuthorisation')
@AbhimanyuAryan
Copy link
Author

SELECT package_name, region, sum(request_count)
FROM stats WHERE package_uuid = 'c43c736e-a2d1-11e8-161f-af95117fbd1e' GROUP BY region

@AbhimanyuAryan
Copy link
Author

SELECT package_name, package_uuid, status, region, date, year, month, sum(request_count)
FROM stats WHERE package_name in ('Genie', 'SearchLight',
'Stipple',
'StippleCharts',
'StippleUI',
'StipplePlotly',
'SearchLightMySQL',
'SearchLightPostgreSQL',
'GenieAuthentication',
'SearchLightSQLite',
'StippleLatex',
'StipplePlotlyExport',
'GenieAutoreload',
'GenieAuthorisation') GROUP BY region, package_name 

@AbhimanyuAryan
Copy link
Author

SELECT * FROM stats WHERE stats.package_name in ('Genie', 'SearchLight',
'Stipple',
'StippleCharts',
'StippleUI',
'StipplePlotly',
'SearchLightMySQL',
'SearchLightPostgreSQL',
'GenieAuthentication',
'SearchLightSQLite',
'StippleLatex',
'StipplePlotlyExport',
'GenieAutoreload',
'GenieAuthorisation') AND stats.date >= '2023-01-01' 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment