Filter
Exclude
Time range
-
Near
How to use SQL subqueries like a pro Most people overcomplicate SQL. Pros donโ€™t. They break problems into smaller queries inside the main query. Thatโ€™s what a subquery is: A query inside another query. Instead of doing everything at once, you: Solve a smaller problem first Then reuse it in the main query Itโ€™s especially useful for: Finding values above average Filtering using calculated results Comparing a row against a group total If your SQL feels messy you donโ€™t need a bigger query. You need a smarter one. Subqueries are where SQL starts to feel structured, not stressful.
1
3
6
216
ู…ุนู„ู… ุญุงุณุจ ูˆู…ู‚ุจู„ ุนู„ู‰ ุงู„ุฑุฎุตุฉ ุงู„ู…ู‡ู†ูŠุฉุŸ ุงู„ู…ุนูŠุงุฑ ุงู„ุณุงุฏุณ (ู‚ูˆุงุนุฏ ุงู„ุจูŠุงู†ุงุช) ูŠุดูƒู‘ู„ ูจูช ู…ู† ุงู„ุงุฎุชุจุงุฑ โ€” ูˆุฃุณุฆู„ุชู‡ ุชุฌูŠ ุฃูƒูˆุงุฏ ู…ูˆ ู†ุธุฑูŠ. ุฌู…ุนุช ู„ูƒ ูƒู„ ุดูŠ ุชุญุชุงุฌู‡ ููŠ ู…ู‚ุงู„ ูˆุงุญุฏ: โ€ข ุฎุฑูŠุทุฉ ุฃูˆุงู…ุฑ SQL ุงู„ูƒุงู…ู„ุฉ ุจุงู„ุชุตู†ูŠู โ€ข DDL ยท DML ยท DCL ยท TCL ยท JOIN ยท Subquery โ€ข ุฃู…ุซู„ุฉ ุนู…ู„ูŠุฉ ู„ูƒู„ ุฃู…ุฑ โ€ข ูกูก ุณุคุงู„ ู…ุชูƒุฑุฑ ู…ู† ุงู„ุชุฌู…ูŠุนุงุช ู…ุน ุงู„ุฅุฌุงุจุงุช โ€ข ุชุฑุชูŠุจ ูƒุชุงุจุฉ SELECT ุงู„ุตุญูŠุญ ุงุญูุธู‡ ู…ุฑุฌุน โ€” ู…ุง ุชุญุชุงุฌ ุบูŠุฑู‡ #ุงู„ุฑุฎุตุฉ_ุงู„ู…ู‡ู†ูŠุฉ_ุญุงุณุจ #ู…ุนู„ู…_ุญุงุณุจ #SQL #ู‚ูˆุงุนุฏ_ุงู„ุจูŠุงู†ุงุช #ู‡ูŠุฆุฉ_ุชู‚ูˆูŠู…_ุงู„ุชุนู„ูŠู… #ุงู„ุฑุฎุตุฉ_ุงู„ู…ู‡ู†ูŠุฉ x.com/GitArabia/status/20176โ€ฆ

109
Replying to @ezekiel_aleke
Subquery in SQL
69
Cutting through the noise in Web3 is hard, but @Bitcast_network is proving itโ€™s possible The idea is simple: only work with real projects. With partners like Bittensor, Bitget, SubQuery, and Score, Bitcast is building with actual infrastructure, not just making promises Instead of chasing hype, it rewards real engagement and turns attention into measurable value Thatโ€™s how you build something that lasts in Web3
42
53
6,581
Supabase RLS performance trap: Wrong: USING (business_id = auth.uid()) Right: USING (business_id = (SELECT auth.uid())) Bare auth.uid() re-evaluates on every row. Subquery gets hoisted once. 50k rows: 40ms vs 800ms. #Supabase #PostgreSQL #Performance
11
Top 100 Data Analytics Interview Questions ๐Ÿ“Š SQL Interview Questions 1. What is SQL? 2. What is the difference between SQL and MySQL? 3. What are primary keys and foreign keys? 4. What is normalization? 5. What is denormalization? 6. Difference between WHERE and HAVING? 7. Difference between DELETE, DROP, and TRUNCATE? 8. Difference between INNER JOIN and LEFT JOIN? 9. What is RIGHT JOIN? 10. What is FULL OUTER JOIN? 11. What is SELF JOIN? 12. What is CROSS JOIN? 13. What are aggregate functions? 14. Difference between COUNT and COUNT DISTINCT? 15. What is GROUP BY? 16. Difference between GROUP BY and ORDER BY? 17. What is a subquery? 18. What are CTEs? 19. What are window functions? 20. Explain ROW_NUMBER(). 21. Explain RANK() and DENSE_RANK(). 22. What are indexes? 23. What causes slow SQL queries? 24. How do you optimize SQL queries? 25. What are views? 26. What are stored procedures? 27. What are transactions? 28. Explain ACID properties. 29. Find duplicate records in SQL. 30. Find second-highest salary using SQL. 31. Calculate running totals using SQL. 32. Find top-selling products using SQL. 33. Calculate month-over-month growth. 34. Difference between UNION and UNION ALL? 35. What are NULL values? 36. Difference between CHAR and VARCHAR? 37. What is a primary key? 38. What is a foreign key? 39. Difference between clustered and non-clustered indexes? 40. Explain query execution plans. *Excel Interview Questions* 41. What is VLOOKUP? 42. Difference between VLOOKUP and XLOOKUP? 43. What are Pivot Tables? 44. What are slicers in Excel? 45. Explain conditional formatting. 46. Difference between COUNT, COUNTA, and COUNTIF? 47. What are absolute and relative references? 48. What is data validation? 49. Explain IFERROR(). 50. What is Power Query? 51. What are dashboards in Excel? 52. Difference between SUMIF and SUMIFS? 53. Explain INDEX MATCH. 54. What are macros? 55. What is VBA? 56. How do you clean data in Excel? 57. How do you remove duplicates? 58. What is flash fill? 59. What are named ranges? 60. Explain text functions in Excel. 61. What are charts in Excel? 62. How do you create dynamic dashboards? 63. What is Goal Seek? 64. What is Solver? 65. Explain What-If Analysis. *Power BI Interview Questions* 66. What is Power BI? 67. Difference between Power BI Desktop and Service? 68. What is DAX? 69. What is Power Query? 70. What are calculated columns? 71. Difference between measures and calculated columns? 72. Explain relationships in Power BI. 73. What is star schema? 74. What is snowflake schema? 75. What are slicers? 76. What are bookmarks? 77. What is drill-through? 78. Explain row-level security. 79. What are KPIs? 80. Difference between dashboard and report? 81. What is data modeling? 82. Explain CALCULATE(). 83. Explain FILTER(). 84. Explain ALL(). 85. Explain time intelligence functions. 86. What is incremental refresh? 87. Difference between Import and DirectQuery? 88. Explain Power BI gateways. 89. How do you optimize dashboards? 90. What causes slow reports? 91. How do you handle large datasets? 92. What are custom visuals? 93. Explain workspace management. 94. How do you publish reports? 95. Explain deployment pipelines. *Tableau Interview Questions* 96. What is Tableau? 97. Difference between Tableau and Power BI? 98. What are dimensions and measures? 99. Explain Tableau filters. 100. What are calculated fields? FOR PART 2 COMMENT "INTERVIEW"
7
32
159
5,404
Master SQL SQL MASTER TREE โ”‚ โ”œโ”€โ”€ 1. Database Fundamentals โ”‚ โ”œโ”€โ”€ What is DB / DBMS / RDBMS โ”‚ โ”œโ”€โ”€ Tables, Rows, Columns โ”‚ โ”œโ”€โ”€ Primary Key โ”‚ โ”œโ”€โ”€ Foreign Key โ”‚ โ”œโ”€โ”€ Candidate Key โ”‚ โ”œโ”€โ”€ Composite Key โ”‚ โ”œโ”€โ”€ Constraints โ”‚ โ”‚ โ”œโ”€โ”€ NOT NULL โ”‚ โ”‚ โ”œโ”€โ”€ UNIQUE โ”‚ โ”‚ โ”œโ”€โ”€ PRIMARY KEY โ”‚ โ”‚ โ”œโ”€โ”€ FOREIGN KEY โ”‚ โ”‚ โ”œโ”€โ”€ CHECK โ”‚ โ”‚ โ””โ”€โ”€ DEFAULT โ”‚ โ””โ”€โ”€ Data Integrity โ”‚ โ”œโ”€โ”€ 2. SQL Data Types โ”‚ โ”œโ”€โ”€ Numeric โ”‚ โ”‚ โ”œโ”€โ”€ INT โ”‚ โ”‚ โ”œโ”€โ”€ BIGINT โ”‚ โ”‚ โ”œโ”€โ”€ DECIMAL โ”‚ โ”‚ โ””โ”€โ”€ FLOAT โ”‚ โ”œโ”€โ”€ String โ”‚ โ”‚ โ”œโ”€โ”€ CHAR โ”‚ โ”‚ โ”œโ”€โ”€ VARCHAR โ”‚ โ”‚ โ””โ”€โ”€ TEXT โ”‚ โ”œโ”€โ”€ Date & Time โ”‚ โ”‚ โ”œโ”€โ”€ DATE โ”‚ โ”‚ โ”œโ”€โ”€ TIME โ”‚ โ”‚ โ”œโ”€โ”€ DATETIME โ”‚ โ”‚ โ””โ”€โ”€ TIMESTAMP โ”‚ โ””โ”€โ”€ Boolean / Binary โ”‚ โ”œโ”€โ”€ 3. DDL (Data Definition Language) โ”‚ โ”œโ”€โ”€ CREATE โ”‚ โ”‚ โ”œโ”€โ”€ DATABASE โ”‚ โ”‚ โ”œโ”€โ”€ TABLE โ”‚ โ”‚ โ””โ”€โ”€ INDEX โ”‚ โ”œโ”€โ”€ ALTER โ”‚ โ”‚ โ”œโ”€โ”€ ADD COLUMN โ”‚ โ”‚ โ”œโ”€โ”€ MODIFY COLUMN โ”‚ โ”‚ โ””โ”€โ”€ DROP COLUMN โ”‚ โ”œโ”€โ”€ DROP โ”‚ โ”‚ โ”œโ”€โ”€ DATABASE โ”‚ โ”‚ โ””โ”€โ”€ TABLE โ”‚ โ””โ”€โ”€ TRUNCATE โ”‚ โ”œโ”€โ”€ 4. DML (Data Manipulation Language) โ”‚ โ”œโ”€โ”€ INSERT โ”‚ โ”œโ”€โ”€ UPDATE โ”‚ โ”œโ”€โ”€ DELETE โ”‚ โ””โ”€โ”€ MERGE / UPSERT โ”‚ โ”œโ”€โ”€ 5. DQL (Data Query Language) โ”‚ โ”œโ”€โ”€ SELECT โ”‚ โ”œโ”€โ”€ DISTINCT โ”‚ โ”œโ”€โ”€ WHERE โ”‚ โ”‚ โ”œโ”€โ”€ AND โ”‚ โ”‚ โ”œโ”€โ”€ OR โ”‚ โ”‚ โ””โ”€โ”€ NOT โ”‚ โ”œโ”€โ”€ ORDER BY โ”‚ โ”œโ”€โ”€ GROUP BY โ”‚ โ”œโ”€โ”€ HAVING โ”‚ โ””โ”€โ”€ LIMIT / OFFSET โ”‚ โ”œโ”€โ”€ 6. SQL Operators โ”‚ โ”œโ”€โ”€ Arithmetic ( - * /) โ”‚ โ”œโ”€โ”€ Comparison (= != > < >= <=) โ”‚ โ”œโ”€โ”€ Logical (AND OR NOT) โ”‚ โ”œโ”€โ”€ BETWEEN โ”‚ โ”œโ”€โ”€ IN โ”‚ โ”œโ”€โ”€ LIKE โ”‚ โ””โ”€โ”€ IS NULL โ”‚ โ”œโ”€โ”€ 7. SQL Functions โ”‚ โ”œโ”€โ”€ Aggregate โ”‚ โ”‚ โ”œโ”€โ”€ COUNT โ”‚ โ”‚ โ”œโ”€โ”€ SUM โ”‚ โ”‚ โ”œโ”€โ”€ AVG โ”‚ โ”‚ โ”œโ”€โ”€ MIN โ”‚ โ”‚ โ””โ”€โ”€ MAX โ”‚ โ”œโ”€โ”€ String โ”‚ โ”‚ โ”œโ”€โ”€ CONCAT โ”‚ โ”‚ โ”œโ”€โ”€ SUBSTRING โ”‚ โ”‚ โ”œโ”€โ”€ LENGTH โ”‚ โ”‚ โ””โ”€โ”€ TRIM โ”‚ โ”œโ”€โ”€ Numeric โ”‚ โ”‚ โ”œโ”€โ”€ ROUND โ”‚ โ”‚ โ””โ”€โ”€ ABS โ”‚ โ””โ”€โ”€ Date โ”‚ โ”œโ”€โ”€ NOW โ”‚ โ”œโ”€โ”€ DATEADD โ”‚ โ””โ”€โ”€ DATEDIFF โ”‚ โ”œโ”€โ”€ 8. Joins โ”‚ โ”œโ”€โ”€ INNER JOIN โ”‚ โ”œโ”€โ”€ LEFT JOIN โ”‚ โ”œโ”€โ”€ RIGHT JOIN โ”‚ โ”œโ”€โ”€ FULL JOIN โ”‚ โ”œโ”€โ”€ CROSS JOIN โ”‚ โ””โ”€โ”€ SELF JOIN โ”‚ โ”œโ”€โ”€ 9. Subqueries โ”‚ โ”œโ”€โ”€ Scalar Subquery โ”‚ โ”œโ”€โ”€ Correlated Subquery โ”‚ โ””โ”€โ”€ Nested Subquery โ”‚ โ”œโ”€โ”€ 10. Views โ”‚ โ”œโ”€โ”€ CREATE VIEW โ”‚ โ”œโ”€โ”€ UPDATE VIEW โ”‚ โ””โ”€โ”€ MATERIALIZED VIEW โ”‚ โ”œโ”€โ”€ 11. Indexing โ”‚ โ”œโ”€โ”€ Clustered Index โ”‚ โ”œโ”€โ”€ Non-Clustered Index โ”‚ โ”œโ”€โ”€ Composite Index โ”‚ โ””โ”€โ”€ Index Optimization โ”‚ โ”œโ”€โ”€ 12. Transactions โ”‚ โ”œโ”€โ”€ BEGIN โ”‚ โ”œโ”€โ”€ COMMIT โ”‚ โ”œโ”€โ”€ ROLLBACK โ”‚ โ””โ”€โ”€ SAVEPOINT โ”‚ โ”œโ”€โ”€ 13. ACID Properties โ”‚ โ”œโ”€โ”€ Atomicity โ”‚ โ”œโ”€โ”€ Consistency โ”‚ โ”œโ”€โ”€ Isolation โ”‚ โ””โ”€โ”€ Durability โ”‚ โ”œโ”€โ”€ 14. Normalization โ”‚ โ”œโ”€โ”€ 1NF โ”‚ โ”œโ”€โ”€ 2NF โ”‚ โ”œโ”€โ”€ 3NF โ”‚ โ”œโ”€โ”€ BCNF โ”‚ โ””โ”€โ”€ Denormalization โ”‚ โ”œโ”€โ”€ 15. Advanced SQL โ”‚ โ”œโ”€โ”€ Stored Procedures โ”‚ โ”œโ”€โ”€ Triggers โ”‚ โ”œโ”€โ”€ CTE (WITH) โ”‚ โ”œโ”€โ”€ Window Functions โ”‚ โ”‚ โ”œโ”€โ”€ ROW_NUMBER โ”‚ โ”‚ โ”œโ”€โ”€ RANK โ”‚ โ”‚ โ”œโ”€โ”€ DENSE_RANK โ”‚ โ”‚ โ””โ”€โ”€ PARTITION BY โ”‚ โ””โ”€โ”€ Recursive Queries โ”‚ โ”œโ”€โ”€ 16. Performance Optimization โ”‚ โ”œโ”€โ”€ Query Optimization โ”‚ โ”œโ”€โ”€ Execution Plan โ”‚ โ”œโ”€โ”€ Index Tuning โ”‚ โ””โ”€โ”€ Query Caching โ”‚ โ”œโ”€โ”€ 17. SQL Ecosystem โ”‚ โ”œโ”€โ”€ MySQL โ”‚ โ”œโ”€โ”€ PostgreSQL โ”‚ โ”œโ”€โ”€ SQLite โ”‚ โ”œโ”€โ”€ SQL Server โ”‚ โ””โ”€โ”€ Oracle DB โ”‚ โ””โ”€โ”€ 18. Real-World Usage โ”œโ”€โ”€ Backend APIs โ”œโ”€โ”€ Data Analytics โ”œโ”€โ”€ Reporting Systems โ”œโ”€โ”€ ETL Pipelines โ””โ”€โ”€ Data Warehousing
2
2
129
Master SQL SQL MASTER TREE โ”‚ โ”œโ”€โ”€ 1. Database Fundamentals โ”‚ โ”œโ”€โ”€ What is DB / DBMS / RDBMS โ”‚ โ”œโ”€โ”€ Tables, Rows, Columns โ”‚ โ”œโ”€โ”€ Primary Key โ”‚ โ”œโ”€โ”€ Foreign Key โ”‚ โ”œโ”€โ”€ Candidate Key โ”‚ โ”œโ”€โ”€ Composite Key โ”‚ โ”œโ”€โ”€ Constraints โ”‚ โ”‚ โ”œโ”€โ”€ NOT NULL โ”‚ โ”‚ โ”œโ”€โ”€ UNIQUE โ”‚ โ”‚ โ”œโ”€โ”€ PRIMARY KEY โ”‚ โ”‚ โ”œโ”€โ”€ FOREIGN KEY โ”‚ โ”‚ โ”œโ”€โ”€ CHECK โ”‚ โ”‚ โ””โ”€โ”€ DEFAULT โ”‚ โ””โ”€โ”€ Data Integrity โ”‚ โ”œโ”€โ”€ 2. SQL Data Types โ”‚ โ”œโ”€โ”€ Numeric โ”‚ โ”‚ โ”œโ”€โ”€ INT โ”‚ โ”‚ โ”œโ”€โ”€ BIGINT โ”‚ โ”‚ โ”œโ”€โ”€ DECIMAL โ”‚ โ”‚ โ””โ”€โ”€ FLOAT โ”‚ โ”œโ”€โ”€ String โ”‚ โ”‚ โ”œโ”€โ”€ CHAR โ”‚ โ”‚ โ”œโ”€โ”€ VARCHAR โ”‚ โ”‚ โ””โ”€โ”€ TEXT โ”‚ โ”œโ”€โ”€ Date & Time โ”‚ โ”‚ โ”œโ”€โ”€ DATE โ”‚ โ”‚ โ”œโ”€โ”€ TIME โ”‚ โ”‚ โ”œโ”€โ”€ DATETIME โ”‚ โ”‚ โ””โ”€โ”€ TIMESTAMP โ”‚ โ””โ”€โ”€ Boolean / Binary โ”‚ โ”œโ”€โ”€ 3. DDL (Data Definition Language) โ”‚ โ”œโ”€โ”€ CREATE โ”‚ โ”‚ โ”œโ”€โ”€ DATABASE โ”‚ โ”‚ โ”œโ”€โ”€ TABLE โ”‚ โ”‚ โ””โ”€โ”€ INDEX โ”‚ โ”œโ”€โ”€ ALTER โ”‚ โ”‚ โ”œโ”€โ”€ ADD COLUMN โ”‚ โ”‚ โ”œโ”€โ”€ MODIFY COLUMN โ”‚ โ”‚ โ””โ”€โ”€ DROP COLUMN โ”‚ โ”œโ”€โ”€ DROP โ”‚ โ”‚ โ”œโ”€โ”€ DATABASE โ”‚ โ”‚ โ””โ”€โ”€ TABLE โ”‚ โ””โ”€โ”€ TRUNCATE โ”‚ โ”œโ”€โ”€ 4. DML (Data Manipulation Language) โ”‚ โ”œโ”€โ”€ INSERT โ”‚ โ”œโ”€โ”€ UPDATE โ”‚ โ”œโ”€โ”€ DELETE โ”‚ โ””โ”€โ”€ MERGE / UPSERT โ”‚ โ”œโ”€โ”€ 5. DQL (Data Query Language) โ”‚ โ”œโ”€โ”€ SELECT โ”‚ โ”œโ”€โ”€ DISTINCT โ”‚ โ”œโ”€โ”€ WHERE โ”‚ โ”‚ โ”œโ”€โ”€ AND โ”‚ โ”‚ โ”œโ”€โ”€ OR โ”‚ โ”‚ โ””โ”€โ”€ NOT โ”‚ โ”œโ”€โ”€ ORDER BY โ”‚ โ”œโ”€โ”€ GROUP BY โ”‚ โ”œโ”€โ”€ HAVING โ”‚ โ””โ”€โ”€ LIMIT / OFFSET โ”‚ โ”œโ”€โ”€ 6. SQL Operators โ”‚ โ”œโ”€โ”€ Arithmetic ( - * /) โ”‚ โ”œโ”€โ”€ Comparison (= != > < >= <=) โ”‚ โ”œโ”€โ”€ Logical (AND OR NOT) โ”‚ โ”œโ”€โ”€ BETWEEN โ”‚ โ”œโ”€โ”€ IN โ”‚ โ”œโ”€โ”€ LIKE โ”‚ โ””โ”€โ”€ IS NULL โ”‚ โ”œโ”€โ”€ 7. SQL Functions โ”‚ โ”œโ”€โ”€ Aggregate โ”‚ โ”‚ โ”œโ”€โ”€ COUNT โ”‚ โ”‚ โ”œโ”€โ”€ SUM โ”‚ โ”‚ โ”œโ”€โ”€ AVG โ”‚ โ”‚ โ”œโ”€โ”€ MIN โ”‚ โ”‚ โ””โ”€โ”€ MAX โ”‚ โ”œโ”€โ”€ String โ”‚ โ”‚ โ”œโ”€โ”€ CONCAT โ”‚ โ”‚ โ”œโ”€โ”€ SUBSTRING โ”‚ โ”‚ โ”œโ”€โ”€ LENGTH โ”‚ โ”‚ โ””โ”€โ”€ TRIM โ”‚ โ”œโ”€โ”€ Numeric โ”‚ โ”‚ โ”œโ”€โ”€ ROUND โ”‚ โ”‚ โ””โ”€โ”€ ABS โ”‚ โ””โ”€โ”€ Date โ”‚ โ”œโ”€โ”€ NOW โ”‚ โ”œโ”€โ”€ DATEADD โ”‚ โ””โ”€โ”€ DATEDIFF โ”‚ โ”œโ”€โ”€ 8. Joins โ”‚ โ”œโ”€โ”€ INNER JOIN โ”‚ โ”œโ”€โ”€ LEFT JOIN โ”‚ โ”œโ”€โ”€ RIGHT JOIN โ”‚ โ”œโ”€โ”€ FULL JOIN โ”‚ โ”œโ”€โ”€ CROSS JOIN โ”‚ โ””โ”€โ”€ SELF JOIN โ”‚ โ”œโ”€โ”€ 9. Subqueries โ”‚ โ”œโ”€โ”€ Scalar Subquery โ”‚ โ”œโ”€โ”€ Correlated Subquery โ”‚ โ””โ”€โ”€ Nested Subquery โ”‚ โ”œโ”€โ”€ 10. Views โ”‚ โ”œโ”€โ”€ CREATE VIEW โ”‚ โ”œโ”€โ”€ UPDATE VIEW โ”‚ โ””โ”€โ”€ MATERIALIZED VIEW โ”‚ โ”œโ”€โ”€ 11. Indexing โ”‚ โ”œโ”€โ”€ Clustered Index โ”‚ โ”œโ”€โ”€ Non-Clustered Index โ”‚ โ”œโ”€โ”€ Composite Index โ”‚ โ””โ”€โ”€ Index Optimization โ”‚ โ”œโ”€โ”€ 12. Transactions โ”‚ โ”œโ”€โ”€ BEGIN โ”‚ โ”œโ”€โ”€ COMMIT โ”‚ โ”œโ”€โ”€ ROLLBACK โ”‚ โ””โ”€โ”€ SAVEPOINT โ”‚ โ”œโ”€โ”€ 13. ACID Properties โ”‚ โ”œโ”€โ”€ Atomicity โ”‚ โ”œโ”€โ”€ Consistency โ”‚ โ”œโ”€โ”€ Isolation โ”‚ โ””โ”€โ”€ Durability โ”‚ โ”œโ”€โ”€ 14. Normalization โ”‚ โ”œโ”€โ”€ 1NF โ”‚ โ”œโ”€โ”€ 2NF โ”‚ โ”œโ”€โ”€ 3NF โ”‚ โ”œโ”€โ”€ BCNF โ”‚ โ””โ”€โ”€ Denormalization โ”‚ โ”œโ”€โ”€ 15. Advanced SQL โ”‚ โ”œโ”€โ”€ Stored Procedures โ”‚ โ”œโ”€โ”€ Triggers โ”‚ โ”œโ”€โ”€ CTE (WITH) โ”‚ โ”œโ”€โ”€ Window Functions โ”‚ โ”‚ โ”œโ”€โ”€ ROW_NUMBER โ”‚ โ”‚ โ”œโ”€โ”€ RANK โ”‚ โ”‚ โ”œโ”€โ”€ DENSE_RANK โ”‚ โ”‚ โ””โ”€โ”€ PARTITION BY โ”‚ โ””โ”€โ”€ Recursive Queries โ”‚ โ”œโ”€โ”€ 16. Performance Optimization โ”‚ โ”œโ”€โ”€ Query Optimization โ”‚ โ”œโ”€โ”€ Execution Plan โ”‚ โ”œโ”€โ”€ Index Tuning โ”‚ โ””โ”€โ”€ Query Caching โ”‚ โ”œโ”€โ”€ 17. SQL Ecosystem โ”‚ โ”œโ”€โ”€ MySQL โ”‚ โ”œโ”€โ”€ PostgreSQL โ”‚ โ”œโ”€โ”€ SQLite โ”‚ โ”œโ”€โ”€ SQL Server โ”‚ โ””โ”€โ”€ Oracle DB โ”‚ โ””โ”€โ”€ 18. Real-World Usage โ”œโ”€โ”€ Backend APIs โ”œโ”€โ”€ Data Analytics โ”œโ”€โ”€ Reporting Systems โ”œโ”€โ”€ ETL Pipelines โ””โ”€โ”€ Data Warehousing
5
36
125
3,367
aggression.","But ClickHouse SQL compatibility has edges. You'll miss window functions, full JOIN flexibility, and certain subquery patterns. If your analysts write complex ad-hoc queries across many tables, Snowflake's ANSI SQL support will save you from
1
24
Replying to @javarevisited
The query breaks if the subquery returns a NULL.
3
20/ What is a Subquery? A query inside another query. Example: Find employees earning above the average salary. Very common in analytical problems.
1
8
Kalian kok bisa ngoding CSS sih? Apalah dayaku yang hanya bisa query, subquery, left join, inner join, replikasi, trigger
3
4
149
Replying to @leoxs22 @Sentdex
Nope, its terrible. He suggested removing security policies from the table and still performing a select without limit on a table with millions of records. A query with a subquery would have solved the problem, and he didn't even suggest it; I had to guide him.
1
15
Replying to @leoxs22 @Sentdex
Fable sequer conecta direito, รฉ impreciso e arbitrรกrio. Ontem se recusou a analisar e sugerir melhorias de performance no administrativo de uma aplicaรงรฃo Opus 4.8 sugeriu fazer select de todas as rows e ainda remover policies de seguranรงa. Uma query com subquery e resolveria
21
๐Ÿš€ Top 200 Data Analytics Interview Questions ๐Ÿ“Š SQL Interview Questions 1. What is SQL? 2. What is the difference between SQL and MySQL? 3. What are primary keys and foreign keys? 4. What is normalization? 5. What is denormalization? 6. Difference between WHERE and HAVING? 7. Difference between DELETE, DROP, and TRUNCATE? 8. Difference between INNER JOIN and LEFT JOIN? 9. What is RIGHT JOIN? 10. What is FULL OUTER JOIN? 11. What is SELF JOIN? 12. What is CROSS JOIN? 13. What are aggregate functions? 14. Difference between COUNT and COUNT DISTINCT? 15. What is GROUP BY? 16. Difference between GROUP BY and ORDER BY? 17. What is a subquery? 18. What are CTEs? 19. What are window functions? 20. Explain ROW_NUMBER(). 21. Explain RANK() and DENSE_RANK(). 22. What are indexes? 23. What causes slow SQL queries? 24. How do you optimize SQL queries? 25. What are views? 26. What are stored procedures? 27. What are transactions? 28. Explain ACID properties. 29. Find duplicate records in SQL. 30. Find second-highest salary using SQL. 31. Calculate running totals using SQL. 32. Find top-selling products using SQL. 33. Calculate month-over-month growth. 34. Difference between UNION and UNION ALL? 35. What are NULL values? 36. Difference between CHAR and VARCHAR? 37. What is a primary key? 38. What is a foreign key? 39. Difference between clustered and non-clustered indexes? 40. Explain query execution plans. Excel Interview Questions 41. What is VLOOKUP? 42. Difference between VLOOKUP and XLOOKUP? 43. What are Pivot Tables? 44. What are slicers in Excel? 45. Explain conditional formatting. 46. Difference between COUNT, COUNTA, and COUNTIF? 47. What are absolute and relative references? 48. What is data validation? 49. Explain IFERROR(). 50. What is Power Query? 51. What are dashboards in Excel? 52. Difference between SUMIF and SUMIFS? 53. Explain INDEX MATCH. 54. What are macros? 55. What is VBA? 56. How do you clean data in Excel? 57. How do you remove duplicates? 58. What is flash fill? 59. What are named ranges? 60. Explain text functions in Excel. 61. What are charts in Excel? 62. How do you create dynamic dashboards? 63. What is Goal Seek? 64. What is Solver? 65. Explain What-If Analysis. Power BI Interview Questions 66. What is Power BI? 67. Difference between Power BI Desktop and Service? 68. What is DAX? 69. What is Power Query? 70. What are calculated columns? 71. Difference between measures and calculated columns? 72. Explain relationships in Power BI. 73. What is star schema? 74. What is snowflake schema? 75. What are slicers? 76. What are bookmarks? 77. What is drill-through? 78. Explain row-level security. 79. What are KPIs? 80. Difference between dashboard and report? 81. What is data modeling? 82. Explain CALCULATE(). 83. Explain FILTER(). 84. Explain ALL(). 85. Explain time intelligence functions. 86. What is incremental refresh? 87. Difference between Import and DirectQuery? 88. Explain Power BI gateways. 89. How do you optimize dashboards? 90. What causes slow reports? 91. How do you handle large datasets? 92. What are custom visuals? 93. Explain workspace management. 94. How do you publish reports? 95. Explain deployment pipelines. Tableau Interview Questions 96. What is Tableau? 97. Difference between Tableau and Power BI? 98. What are dimensions and measures? 99. Explain Tableau filters. 100. What are calculated fields? 101. What are parameters? 102. What are sets and groups? 103. Explain dashboards in Tableau. 104. What are stories in Tableau? 105. Explain hierarchies. 106. What is Tableau Prep? 107. Difference between live and extract connections? 108. Explain joins and blending. 109. What are LOD expressions? 110. Explain table calculations. 111. What are actions in Tableau? 112. How do you optimize dashboards? 113. Explain context filters. 114. What is dual-axis chart? 115. Explain data source filters. Python Interview Questions 116. What is Python? 117. Difference between lists and tuples? 118. Difference between sets and dictionaries? 119. What are functions in Python? 120. Explain lambda functions. 121. What is Pandas? 122. What is a DataFrame? 123. How do you handle missing values? 124. Difference between loc and iloc? 125. Explain groupby(). 126. What is NumPy? 127. Difference between NumPy arrays and lists? 128. Explain vectorization. 129. What is broadcasting? 130. Explain array indexing. 131. What is Matplotlib? 132. What is Seaborn? 133. Difference between bar chart and histogram? 134. Explain box plots. 135. Explain scatter plots. 136. How do you remove duplicates in Python? 137. How do you detect outliers? 138. Explain feature engineering. 139. How do you merge datasets? 140. How do you export data? 141. What is exception handling? 142. Explain try-except blocks. 143. What are APIs? 144. How do you automate reports? 145. Explain web scraping basics. Statistics Interview Questions 146. Mean vs Median vs Mode? 147. What is standard deviation? 148. Explain variance. 149. What is probability? 150. What is correlation? 151. Difference between correlation and causation? 152. What is hypothesis testing? 153. Explain p-value. 154. What is confidence interval? 155. What is regression? 156. What is A/B testing? 157. Explain normal distribution. 158. What are outliers? 159. What is sampling? 160. Explain Type I and Type II errors. Data Visualization Interview Questions 161. What makes a good dashboard? 162. Which charts should be avoided? 163. Difference between bar and line charts? 164. When should you use pie charts? 165. Explain dashboard storytelling. 166. What are KPIs? 167. How do you improve dashboard performance? 168. Explain dashboard UX. 169. What are common visualization mistakes? 170. How do you present insights to stakeholders? Case Study Interview Questions 171. Analyze declining sales. 172. Why are customers leaving a platform? 173. How would you improve app engagement? 174. Analyze delivery delays. 175. Why is profit decreasing? 176. Analyze marketing campaign performance. 177. How would you detect fraud? 178. Analyze employee attrition. 179. How would you improve customer retention? 180. Analyze product performance. Behavioral & HR Interview Questions 181. Tell me about yourself. 182. Why do you want to become a Data Analyst? 183. Explain your projects. 184. What challenges did you face in projects? 185. How do you handle deadlines? 186. Explain a difficult situation at work. 187. Why should we hire you? 188. What are your strengths? 189. What are your weaknesses? 190. Where do you see yourself in 5 years? 191. Explain your career gap. 192. Why are you switching careers? 193. Explain your resume. 194. How do you handle pressure? 195. Explain teamwork experience. 196. How do you deal with conflicts? 197. Describe leadership experience. 198. Explain a project failure. 199. How do you prioritize tasks? 200. Do you have any questions for us? Bookmark This For Later ๐Ÿ”–
1
1
269
Jun 10
correlated subquery is going to be the death of me
29