<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Starfox Analytics - Medium]]></title>
        <description><![CDATA[Welcome to the official publication of Starfox Analytics, a leading agency in Analytics Engineering and Data Marketing. Our experts share articles on tracking, web analytics, data engineering, BI, and data science. - Medium]]></description>
        <link>https://medium.com/starfox-analytics?source=rss----4fffd5180c22---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Starfox Analytics - Medium</title>
            <link>https://medium.com/starfox-analytics?source=rss----4fffd5180c22---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 22:21:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/starfox-analytics" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Understanding SQL Window Functions — Part I]]></title>
            <link>https://medium.com/starfox-analytics/understanding-sql-window-functions-part-i-81bde21e1dc8?source=rss----4fffd5180c22---4</link>
            <guid isPermaLink="false">https://medium.com/p/81bde21e1dc8</guid>
            <category><![CDATA[bigquery]]></category>
            <category><![CDATA[google-cloud]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Fadouatarbouchi]]></dc:creator>
            <pubDate>Wed, 09 Oct 2024 12:16:05 GMT</pubDate>
            <atom:updated>2024-12-19T13:41:32.295Z</atom:updated>
            <content:encoded><![CDATA[<h3>Understanding SQL Window Functions — Part I</h3><p>I began working with SQL in 2021 during an apprenticeship with the web analytics team at the company where I eventually secured my first job. Initially, many queries intimidated me, particularly those involving joins, unnesting, and ranking. I hesitated to learn the functions used in these queries, believing they were too complex to grasp and apply. However, I discovered that taking a gradual approach was key to understanding how and when to use them effectively.</p><p>While this might sound like I’ve mastered these functions completely, that’s not the case. I still face challenges and am actively working to improve my skills. Among these complex kind of queries, window functions stood out as particularly tricky. Their syntax seemed unintuitive to me, especially compared to SQL’s reputation for clarity.</p><p>Today, After I thoroughly understood window functions, I decided to explain them with concrete examples:</p><p>Let’s break down these functions, which aren’t as tricky as they first appear:</p><h4><em>1. ROW_NUMBER():</em></h4><p><strong>What does it do</strong>: It assigns a unique number to each row.</p><pre>SELECT <br>  product_name,<br>  category,<br>  price,<br>  ROW_NUMBER() OVER (PARTITION BY category ORDER BY price DESC) AS price_rank<br>FROM products;</pre><p><strong>Why we use it</strong>: This assigns a unique number to each product within its category, — ordered by price descending.</p><p><strong>When to use it: </strong>Let’s say you work for an e-commerce website selling ready-to-wear clothing. The website contains several clothing categories: pants, jackets, socks, and T-shirts. Within each category, you have multiple products. Your manager asked you to determine the five most expensive products within each category. Then, you’ll have to use the row_number window function to retrieve this kind of data.</p><h4><em>2. RANK():</em></h4><p><strong>What does it do</strong>: It’s similar to ROW_NUMBER, but allows for ties</p><pre>SELECT <br>  athlete_name,<br>  event,<br>  time,<br>  RANK() OVER (PARTITION BY event ORDER BY time ASC) AS position<br>FROM race_results;</pre><p><strong>Why we use it</strong><em>: </em>In this example<em>, </em>athletes are ranked within each event based on their time. If two athletes have the same time, they get the same rank, and the next rank is skipped.</p><p><strong>When to use it</strong>: Use this when you want to allow for ties in your ranking while preserving the total number of items, as it helps maintain a sense of how many unique levels there are in your dataset.</p><blockquote>Did you know that in Olympic rankings, if two athletes tie for gold, they both get gold, and the next best performer gets bronze (silver is skipped).</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1sQdsiJ0Kv2Ar5uC" /><figcaption>Photo by <a href="https://unsplash.com/@sean_mccammon?utm_source=medium&amp;utm_medium=referral">Sean McCammon</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4><em>3. DENSE_RANK():</em></h4><p><strong>What does it do: </strong>Like RANK, but without gaps in ranking</p><pre>SELECT <br>  student_name,<br>  subject,<br>  score,<br>  DENSE_RANK() OVER (PARTITION BY subject ORDER BY score DESC) AS score_rank<br>FROM exam_results;</pre><p><strong>Why to use it</strong>: This ranks students within each subject based on their scores. If two students have the same score, they get the same rank, but the next rank is not skipped.</p><p><strong>When to use it</strong>: DENSE_RANK() should be used when you want to allow for ties but keep your ranking sequence continuous.</p><p>Here is a recap of these 3 window functions:</p><pre>SELECT <br>    student_name,<br>    score,<br>    RANK() OVER (ORDER BY score DESC) as rank,<br>    ROW_NUMBER() OVER (ORDER BY score DESC) as row_num,<br>    DENSE_RANK() OVER (ORDER BY score DESC) as dense_rank<br>FROM (<br>    VALUES <br>        (&#39;Alice&#39;, 95),<br>        (&#39;Bob&#39;, 95),<br>        (&#39;Charlie&#39;, 94),<br>        (&#39;David&#39;, 94),<br>        (&#39;Eve&#39;, 92)<br>) as exam_results(student_name, score);<br><br>-- Result:<br>-- student_name | score | rank | row_num | dense_rank<br>-- Camile       | 95    | 1    | 1       | 1<br>-- Antoine      | 95    | 1    | 2       | 1<br>-- Charlie      | 94    | 3    | 3       | 2<br>-- David        | 94    | 3    | 4       | 2<br>-- Steve        | 92    | 5    | 5       | 3</pre><p>In this example:</p><ul><li><strong>RANK()</strong> shows that there’s a tie for first place and a tie for third place.</li><li>The jump from rank 1 to 3 indicates that two students tied for the top score.</li><li>The highest rank (5) tells us there are 3 distinct score levels.</li></ul><p>Comparing <strong>RANK()</strong> to other ranking functions:</p><p><strong>ROW_NUMBER()</strong> would assign unique numbers (1, 2, 3, 4, 5) even for tied scores, which don’t reflect the ties.</p><p><strong>DENSE_RANK()</strong> would give ranks 1, 1, 2, 2, 3, which shows ties but doesn’t indicate how many students are tied for each rank.</p><p>I hope these examples make window functions much simpler than they seem!</p><p>Keep an eye out for part II, where we’ll explore the remaining window functions in greater detail!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81bde21e1dc8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/starfox-analytics/understanding-sql-window-functions-part-i-81bde21e1dc8">Understanding SQL Window Functions — Part I</a> was originally published in <a href="https://medium.com/starfox-analytics">Starfox Analytics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unveiling the hidden data of Google Search Console]]></title>
            <link>https://medium.com/starfox-analytics/unveiling-the-hidden-data-of-google-search-console-3837fe67f2be?source=rss----4fffd5180c22---4</link>
            <guid isPermaLink="false">https://medium.com/p/3837fe67f2be</guid>
            <category><![CDATA[bigquery]]></category>
            <category><![CDATA[search-console]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Fadouatarbouchi]]></dc:creator>
            <pubDate>Thu, 26 Sep 2024 11:40:44 GMT</pubDate>
            <atom:updated>2024-09-26T12:34:43.994Z</atom:updated>
            <content:encoded><![CDATA[<p>While many SEO professionals focus on surface-level metrics, the true treasure trove of insights lies within the bulk data export of Google Search Console on BigQuery. This guide will explore the often-overlooked dimensions within this export and explain their significance for comprehensive SEO analysis.</p><h4>The Significance of Bulk Data Export Dimensions</h4><p>Google Search Console’s bulk data exports offer a granular view of search performance beyond basic metrics. In this article, I will not go over the classic dimensions such as URL pages, queries, search types, devices, and countries, instead, I will explain in detail how the different dimensions of the search appearance that are often overlooked, provide strategic insights into how Google interprets and displays your content in search results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JM6Fdz7DS7G8rMfr" /><figcaption>Photo by <a href="https://unsplash.com/@justin_morgan?utm_source=medium&amp;utm_medium=referral">Justin Morgan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>You can find these dimensions if you activated the bulk data export of your search console to BigQuery in the table <em>“yourdatasetname.searchdata_url_impression”.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*StUlAS_ubcMRrn2yjSu52w.png" /><figcaption>Screenshot of the table schema of the search console bulk export table</figcaption></figure><blockquote>I will intentionally not go over two specific dimensions : <strong>is_anonymized_query</strong> and <strong>is_anonymized_discover </strong>as I will write about them in a separate article.</blockquote><h4>AMP related dimensions</h4><p>1. AMP Articles (is_amp_top_stories)</p><ul><li><strong>Column name</strong>: AMP_TOP_STORIES</li><li><strong>What it means</strong>: This dimension represents Accelerated Mobile Pages (AMP), which appear as the Top Stories carousel.</li><li><strong>Why it is important in SEO</strong>: Tracking this metric is important because it indicates how well your content performs in high-visibility areas of search results. A strong presence here can significantly impact your mobile traffic and visibility for news-related queries. Publishers and news sites need to monitor this dimension to ensure their AMP implementation is effective and their content is featured prominently.</li></ul><p>2. Unenriched AMP Results (is_amp_blue_link)</p><ul><li><strong>Column name</strong>: AMP_BLUE_LINK</li><li><strong>What it means</strong>: These AMP pages appear as standard blue links in search results, without enhanced features.</li><li><strong>Why is it important in SEO</strong>: This metric helps you understand how your AMP pages are performing in standard search results. It’s important to monitor because it shows whether your AMP implementation is benefiting your overall search presence, even when not appearing in enhanced features. A high number here with low numbers in other AMP categories might indicate that your pages are fast but lack the necessary markup for rich results.</li></ul><p>3. AMP in Image Results (is_amp_image_result)</p><ul><li><strong>Column name</strong>: AMP_IMAGE_RESULT</li><li><strong>What it means</strong>: This dimension tracks when images from your AMP pages appear in image search results.</li><li><strong>Why is it important in SEO</strong>: This metric is vital for understanding how your visual content performs in mobile search. It’s particularly strategic for e-commerce sites, publishers with image-heavy content, or any site where images are key in attracting users. Monitoring this can help you optimize your image strategy for AMP pages and improve visibility in image search.</li></ul><p>4. Web Stories (is_amp_story)</p><ul><li><strong>Column name</strong>: AMP_STORY</li><li><strong>What it means</strong>: Web Stories are immersive, full-screen experiences built with AMP. They appear in various places in Google Search and Discover.</li><li><strong>Why it is important in SEO</strong>: This dimension is important for understanding the performance of your Web Stories. As a relatively new format, Web Stories can drive significant engagement and visibility. Monitoring this metric helps you gauge the effectiveness of your visual storytelling efforts and can inform decisions about investing more resources in this format.</li></ul><h3>Rich Results and Enhanced Search Appearances</h3><p>1. Frequently Asked Questions (is_tpf_faq)</p><ul><li><strong>Column name</strong>: TPF_FAQ</li><li><strong>What it means</strong>: This dimension represents FAQ-style content that appears directly in search results, allowing users to expand and collapse answers to questions.</li><li><strong>Why it is important in SEO</strong>: Tracking this metric is valuable for understanding how well your FAQ content is performing in search. It can provide insights into whether your content is effectively answering user queries. High visibility here can increase your search presence without necessarily driving clicks, so it’s important to balance this with other metrics to ensure you’re not cannibalizing your own traffic.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D5PIHt_8qo0G6nYRy_eRAA.png" /><figcaption>Screenshot of my Google Search Results</figcaption></figure><p>2. Q&amp;A Rich Results</p><ul><li><strong>Column name</strong>: TPF_QA</li><li><strong>What it means</strong>: Similar to FAQ results, but typically representing single question-and-answer pairs.</li><li><strong>Why it is important in SEO</strong>: This metric helps you understand how well your content answers specific user questions. It’s particularly important for sites focused on providing expert answers or advice. Monitoring this can help you identify opportunities to create more targeted, question-answering content that Google considers authoritative.</li></ul><p>3. Educational Q&amp;A (is_edu_q_and_a)</p><ul><li><strong>Column name</strong>: EDU_Q_AND_A</li><li><strong>What it means</strong>: This dimension is specific to educational content, particularly in STEM fields.</li><li><strong>Why it is important in SEO</strong>: For educational websites or those providing academic content, this metric is important. It helps you understand how well your content is performing for educational queries, which can be highly competitive. A strong performance here indicates that Google considers your content valuable for learners, which can be a significant trust signal.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MTXUC_VmvFZciF7Mj3aCag.png" /><figcaption>Screenshot of my Google Search Results</figcaption></figure><p>4. Training Videos</p><ul><li><strong>Column name</strong>: is_learning_videos</li><li><strong>What it means</strong>: Your educational videos appeared as rich results in search.</li><li><strong>Why it matters in SEO</strong>: It helps you understand the performance of your video content in educational contexts.</li></ul><p>5. Mathematical Problem Solvers</p><ul><li><strong>Column name</strong>:is_math_solvers</li><li><strong>What it means</strong>: Your math problem-solving content appeared as a rich result.</li><li><strong>Why it matters in SEO</strong>: It is for educational sites focusing on mathematics to track their visibility in specific math-related queries.</li></ul><p>6. Exercises to Practice</p><ul><li><strong>Column name</strong>: is_practice_problems</li><li><strong>What it means</strong>: Your practice exercises or problems appeared in search results.</li><li><strong>Why it matters in SEO</strong>: Helps educational sites understand how their interactive content performs in search.</li></ul><h3>Product and Shopping Dimensions</h3><ol><li>Product Results</li></ol><ul><li><strong>Column name</strong>: is_organic_shopping</li><li><strong>What it means</strong>: Your product appeared in enhanced shopping results.</li><li><strong>Why it matters</strong>: It is strategic for e-commerce sites to track product visibility in search.</li></ul><p>2. Product Fragments</p><ul><li>Column name: is_product_snippets</li><li><strong>What it means</strong>: Parts of your product information appeared as rich snippets in search.</li><li><strong>Why it matters in SEO</strong>: It helps you understand how your product data is being displayed in search results.</li></ul><p>3. Business Cards</p><ul><li><strong>Column name</strong>: is_merchant_listings</li><li><strong>What it means</strong>: Your business information appeared in rich business listings.</li><li><strong>Why it matters in SEO</strong>: It is important for local SEO and tracking visibility of your business information.</li></ul><h3>Multimedia Dimensions</h3><ol><li>Multimedia Actions</li></ol><ul><li>Column name: is_action</li><li><strong>What it means</strong>: Your audio or video content appeared with playable actions in search results.</li><li><strong>Why it matters</strong>: It helps you understand how your multimedia content performs in search and its potential for direct engagement.</li></ul><p>2. Videos</p><ul><li><strong>Column name</strong>: is_video</li><li><strong>What it means</strong>: Your video content appeared in video features or carousels in search results.</li><li><strong>Why it matters in SEO</strong>: It is strategic for tracking the visibility and performance of your video content in search.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c3cn2OMl1gzXNafHJA69nQ.png" /><figcaption>Screenshot of My Google Search Results</figcaption></figure><h3>Miscellaneous Dimensions</h3><ol><li>Android Application</li></ol><ul><li><strong>Column name</strong>: is_search_appearance_android_app</li><li><strong>What it means</strong>: Your Android app appeared in mobile search results.</li><li><strong>Why it matters in SEO</strong>: It is important for your ASO strategy to track the visibility of your apps in search.</li></ul><p>2. Recipe Galleries</p><ul><li><strong>Column name</strong>: is_recipe_feature</li><li><strong>What it means</strong>: Your recipes appeared in recipe collections or carousels.</li><li><strong>Why it matters in SEO</strong>: It is crucial for food blogs or recipe sites to understand their visibility in recipe-specific search features.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oclVLeVAaq4x8PIQxX5Dqw.png" /><figcaption>Screenshot of Google Search Result</figcaption></figure><p>3. Rich Recipe Results</p><ul><li><strong>Column name</strong>: is_recipe_rich_snippet</li><li><strong>What it means</strong>: Your recipe appeared as a rich result with additional information.</li><li><strong>Why it matters in SEO</strong>: Helps food-related sites track how their recipes perform with enhanced visibility in search.</li></ul><p>4. Special Notices</p><ul><li><strong>Column name</strong>: is_special_announcement</li><li><strong>What it means</strong>: Your special announcements (like COVID-19 information) appeared in search results.</li><li><strong>Why it matters in SEO</strong>: It is important for tracking the visibility of critical, time-sensitive information.</li></ul><p>5. Content Available for Subscribers</p><ul><li><strong>Column name</strong>: is_subscribed_content</li><li><strong>What it means</strong>: Your subscriber-only content appeared in “From your subscription” rich results — only subscribers from Google.</li><li><strong>Why it matters in SEO</strong>: It is key for sites with subscription models to understand how their exclusive content performs in search.</li></ul><p>6. Translated Results</p><ul><li><strong>Column name</strong>: is_translated_result</li><li><strong>What it means</strong>: Your content appeared as a translated result for queries in other languages.</li><li><strong>Why it matters in SEO</strong>: Important for understanding your content’s reach across language barriers and the potential for international SEO.</li></ul><p>These dimensions in Google Search Console’s bulk data exports are not just extra data points — they’re important indicators of your website’s performance across the diverse landscape of Google’s search features. By understanding and regularly analyzing these metrics, not only you can get insights but you can also optimize your strategies to achieve your business goals.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3837fe67f2be" width="1" height="1" alt=""><hr><p><a href="https://medium.com/starfox-analytics/unveiling-the-hidden-data-of-google-search-console-3837fe67f2be">Unveiling the hidden data of Google Search Console</a> was originally published in <a href="https://medium.com/starfox-analytics">Starfox Analytics</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>