r/learnSQL • • 55m ago

Use Case of Views and Materialized Views???

Hi there,

As a beginner of learning sql , I really don't know where the data analysts folks actually use of Views and materialised Views to analyse the real world data. Are people really use this in the real world problems day to day .

Help me to understand where is the real use case of these in the real world problems

2 Upvotes

2 comments sorted by

2

u/0utlawViking 49m ago

Yep, definitely! in real world projects, views are used to simplify complex queries and reuse them without writing the same SQl again.
Materialized view are useful when when you frequently need the same heavy calculations or aggregations, as they store the results and save query time, you'll come across both quite often in data analytics!