Structured Query Language (SQL) is famously known as the romance language of data. Even thinking of extracting the single correct answer from terabytes of relational data seems a little overwhelming. So understanding the logical flow of query is very important.

Image for post

Photo by Glenn Carstens-Peters on Unsplash

Query Execution Plan

SQL is a declarative language, this means SQL query logically describes the question to the SQL Query Optimizer which later decides on the best way to physically execute the query. This method of execution is called the query execution plan. There can be more than one execution plan, so when we say optimize a query that in turn referring to make the query execution plan more efficient.

#data-science #sql #data-analyst #data-analysis #database

Logical Flow of SQL Query | SQL Through the Eye of Database
2.85 GEEK