<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Count on Data Trenches</title><link>https://data-trenches.leandrof.space/tags/count/</link><description>Recent content in Count on Data Trenches</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><managingEditor>leandrojlfernandes@gmail.com (Leandro Fernandes)</managingEditor><webMaster>leandrojlfernandes@gmail.com (Leandro Fernandes)</webMaster><lastBuildDate>Sun, 10 Jul 2022 11:44:01 -0600</lastBuildDate><atom:link href="https://data-trenches.leandrof.space/tags/count/index.xml" rel="self" type="application/rss+xml"/><item><title>SQL Count - What the count() function acually counts?</title><link>https://data-trenches.leandrof.space/posts/sqlcount/</link><pubDate>Sun, 10 Jul 2022 11:44:01 -0600</pubDate><author>leandrojlfernandes@gmail.com (Leandro Fernandes)</author><guid>https://data-trenches.leandrof.space/posts/sqlcount/</guid><description>&lt;h1 id="sql-count--what-the-count-function-actually-counts">SQL Count — What the count() function actually counts?&lt;/h1>
&lt;p>The count() function is widely used in SQL and sometimes without fully understanding the impact that the entry parameter to the function can alter the output of your results. Most commonly, the functions can have the following as inputs parameters:&lt;/p>
&lt;ol>
&lt;li>Count(*)&lt;/li>
&lt;li>Count(1)&lt;/li>
&lt;li>Count(column name)&lt;/li>
&lt;/ol>
&lt;h3 id="test-scenario">Test Scenario&lt;/h3>
&lt;p>Let’s create a table and insert a few records to try each count variation and compare the results.&lt;/p></description></item></channel></rss>