SQL系列整理 (TBC)

Dana Huang
Jun 19, 2021

--

上次講improve job有提到,好的SQL寫法也很重要,我覺得影響到他效能的主要還是data scope,譬如你如果寫個下面條件在where condition

run-date≥2020–01–01

那麼隨著時間過去,資料量勢必與日遽增,所以要寫成動態日期條件才是王道,更多一些SQL寫法的優缺可以參考網頁的文章。

陸續更多經驗再逐步補充在這一篇:)

參考資料:

一些增加SQL查詢效能的方法

https://www.finereport.com/tw/data-analysis/sqlquery.html

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Dana Huang
Dana Huang

Written by Dana Huang

我做數據處理的工作已超過五年,從資料驗證、報表整理到自動化呈現,形形色色的工具真的用不完,突然覺得透過網址寫寫寫心路歷程還不錯!另外也記錄一些生活、工作與理財相關的心情記錄與訊息!

No responses yet

Write a response