SQL Class 6 PPT
SQL Class 6 PPT
TRIGGERS IN SQL
• Pivoting :
Pivoting is the process of converting row-level data into column-level data. This is useful when you have data in a "long" format, and
you want to summarize it or make it more readable.
• Unpivoting :
Unpivoting is the process of converting column-level data into row-level data. This is useful when you have data in a "wide" format,
and you want to normalize it or make it suitable for further analysis.
SQL Performance Tuning
Performance tuning in SQL involves optimizing the performance of your SQL queries and database operations to ensure they run
efficiently. Poorly performing SQL queries can lead to slow response times, which can negatively impact application responsiveness
and user experience.
METHODS:
• INDEX OPTIMIZATION
• QUERY OPTIMIZATION
• HARDWARE UPGRADES
Query Optimization in SQL
9. Consider denormalizing data for frequently used reports to reduce the need for complex joins
10. Implement caching mechanisms (e.g., in-memory caching or database query caching) to store and reuse query results for a
certain period.
QUESTIONS
07 FIND THE TOP 5 MOST EXPENSIVE RESTAURANTS THAT OFFER CUISINE OTHER
THAN INDIAN CUISINE.
09 RETRIEVE THE DETAILS OF RESTAURANTS THAT HAVE THE SAME NAME BUT
ARE LOCATED IN DIFFERENT CITIES.
12 WHICH IS THE RESTAURANT PROVIDING THE LOWEST AVERAGE PRICE FOR ALL
ITEMS?