If your business uses relational databases to store data, it helps to use the SQL SELECT command with the INTO clause to create new tables from query results. This method isn't ANSI-standard SQL, but ...
CREATE INDEX IDX_QUERY_LOG_TYPE ON QUERY_LOG(QUERY_TYPE); CREATE INDEX IDX_QUERY_LOG_TIME ON QUERY_LOG(EXECUTION_TIME); CREATE INDEX IDX_QUERY_LOG_SUCCESS ON QUERY_LOG(SUCCESS); CREATE INDEX IDX_QUERY ...
create table query_stat_log as select 1 as seq_num,now() as ts,* from query_stat_time; create index query_stat_log_seq_num_key on query_stat_log(seq_num); create index query_stat_log_ts_key on ...
Here’s something that will Blow Your Mind if you’re a Power Query/M fan. Did you know that there’s a way you can get query folding to work if you’re using a native SQL query on SQL Server or Postgres ...