I'm pretty new to SQL writing and trying to learn how to optimize my query. I saw the suggestion online are: explain plan and indexing.(I'm using Teradata)
I have some questions:
Teradata has "Optimizer" after parsing engine, does it mean that the Optimizer pick most efficient plan?
I know that explain plan gives us detailed step of how AMP process, and give confidence and estimated time, how can we use it? As a reference guide?
Can we run explain plan on the view?
Sorry if my questions are silly to you, I was trying to learn and hope if someone could help. (: Thank you so much in advance.