What is AI analytics? A practical guide for product and data teams | Signals & Stories https://share.google/0qsvT3mTe2vTXPTb0
Открыть в TelegramSQL | Data Analytics | AI
SQL, Big Query, Looker and DBT for Data Analytics. https://medium.com/@khavanski
Новые посты
https://claude.com/blog/self-service-data-analytics-in-slack-how-anthropic-deploys-claude-tag-for-ad-hoc-questions
Открыть в Telegram🔥 Top 8 SQL Tricks Every Data Person Should Know 1️⃣ QUALIFY instead of subqueries Filter window function results directly — no wrapping needed: QUALIFY ROW_NUMBER() OVER (PARTITION BY user_id ORDER BY created_at DESC) = 1 2️⃣ EXCEPT in SELECT * (BigQuery) Grab everything but the noise: SELECT * EXCEPT (raw_payload, _synced_at) FROM t 3️⃣ COUNT(DISTINCT x) vs APPROX_COUNT_DISTINCT(x) On billions of rows, approximate counts are 10x faster and usually accurate within ~1%. 4️⃣ NULL-safe comparisons a = b is NULL when either side is NULL. Use IS NOT DISTINCT FROM (or <=> in MySQL) to compare safely. 5️⃣ Window frames are not all the same ORDER BY inside OVER() silently changes the default frame to RANGE UNBOUNDED PRECEDING → CURRENT ROW. Running totals? Fine. Full-partition aggregates? Bug. 6️⃣ Anti-joins done right NOT EXISTS beats NOT IN — the latter returns nothing if the subquery contains a single NULL. 😬 7️⃣ GROUP BY ALL Stop counting column positions. Group by every non-aggregated column automatically (BigQuery, Snowflake, DuckDB). 8️⃣ CTEs ≠ optimization In some engines CTEs are inlined, in others materialized. If a CTE is referenced twice and it's heavy — check the query plan, don't assume. #SQL #BigQuery #DataEngineering #Analytics
Открыть в Telegramhttps://claude.com/blog/how-anthropic-enables-self-service-data-analytics-with-claude
Открыть в Telegram🔰 The 4 Types of SQL Joins SQL joins combine rows from two or more tables based on a related column. Here are the different types of joins you can use: 1⃣ Inner Join Returns only the matching rows between both tables. It keeps common data only. 🔢 Left Join Returns all rows from the left table and matching rows from the right table. If a row in the left table doesn’t have a match in the right table, the right table’s columns will contain NULL values in that row. 🔢 Right Join Returns all rows from the right table and matching rows from the left table. If no matching record exists in the left table for a record in the right table, the columns from the left table in the result will contain NULL values. 🔢 FULL OUTER JOIN Returns all rows from both tables, filling in NULL for missing matches.
Открыть в Telegram