データベースエンジニアの皆様、日々のシステム運用やバッチ処理の開発、本当にお疲れ様です。 システムの監査ログやアーカイブデータを管理する際、「月や年が変わるタイミングで、自動的に新しいテーブルを作成したい」といったご要件に直面する ...
今回も以下のように、前回と同じSQLのチューニングを行います。 select l_orderkey, sum(l_extendedprice * (1 - l_discount)) as revenue, o_orderdate, o_shippriority from customer, orders, lineitem where c_mktsegment = 'BUILDING' and c ...