You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

902 B

SQL Scripts

You might also be interested in sqlcase.pl in the DevOps Perl tools repo to autocase your SQL code (I use this a lot and call it via hotkey in the .vimrc at the top level)

  • aws_athena_cloudtrail_ddl.sql - AWS Athena DDL to setup up integration to query CloudTrail logs from Athena
  • bigquery_billing_*.sql - Google BigQuery billing queries
  • postgres_*.sql - PostgreSQL queries for DBA investigating + performance tuning. You can quickly test these sql scripts out using postgres.sh which boots a docker container with this directory mounted at /sql and drops you in to the psql shell so you can source the scripts immediately (eg. \i /sql/postgres_query_times.sql)