<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>SQL on Justin Carmony</title>
		<link>https://www.justincarmony.com/tags/sql/</link>
		<description>Recent content in SQL on Justin Carmony</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Tue, 22 May 2018 08:00:46 +0000</lastBuildDate>
		
			<atom:link href="https://www.justincarmony.com/tags/sql/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Strategies for easier Google Analytics &#43; BigQuery Analysis &amp; Custom Dimensions</title>
				<link>https://www.justincarmony.com/2018/05/22/strategies-for-easier-google-analytics-bigquery-analysis-custom-dimensions/</link>
				<pubDate>Tue, 22 May 2018 08:00:46 +0000</pubDate>
				<guid>https://www.justincarmony.com/2018/05/22/strategies-for-easier-google-analytics-bigquery-analysis-custom-dimensions/</guid>
				<description>&lt;p&gt;I’m a &lt;a href=&#34;http://justincarmony.com/blog/2017/04/18/Why-You-Should-Check-Out-BigQuery-for-Big-Data/&#34;&gt;huge fan of BigQuery&lt;/a&gt;, and for Google Analytics 360 users you can automatically have your data go directly into BigQuery. It enabled advanced analysis not possible through the standard reporting tools, and you can join in other datasets you have in BigQuery with your Google Analytics data.&lt;/p&gt;&#xA;&lt;p&gt;With BigQuery you can have nested structures, so each record in the Google Analytics &lt;code&gt;dataset&lt;/code&gt; a visit. Nested inside each visit record is a &lt;code&gt;hits&lt;/code&gt; nested record, which contains every pageview and event that occurred during that visit.&lt;/p&gt;</description>
			</item>
			<item>
				<title>MySQL &amp; PHP  – SQL_CALC_FOUND_ROWS – An easy way to get the total number of rows regardless of LIMIT</title>
				<link>https://www.justincarmony.com/2008/07/01/mysql-php-sql_calc_found_rows-an-easy-way-to-get-the-total-number-of-rows-regardless-of-limit/</link>
				<pubDate>Tue, 01 Jul 2008 20:30:48 +0000</pubDate>
				<guid>https://www.justincarmony.com/2008/07/01/mysql-php-sql_calc_found_rows-an-easy-way-to-get-the-total-number-of-rows-regardless-of-limit/</guid>
				<description>&lt;p&gt;Here is a little trick I found awhile back. I faced a challenge several months ago where I had to query a large, complex data result from MySQL. I &amp;ldquo;paged&amp;rdquo; through the results using LIMIT and OFFSET. However, I wanted to know the total number of rows w/o the LIMIT. The previous coder accomplished this by a query before appending the LIMIT statement at the end. This turned out to be very inefficient due to MySQL put together the 10000+ rows and sent it to PHP ready to be parsed, only to have the function mysql_num_rows() to be executed on it.&lt;/p&gt;</description>
			</item>
			<item>
				<title>MS SQL 2005 (T-SQL) Row Count for Each Table</title>
				<link>https://www.justincarmony.com/2008/02/19/ms-sql-2005-t-sql-row-count-for-each-table/</link>
				<pubDate>Tue, 19 Feb 2008 16:08:38 +0000</pubDate>
				<guid>https://www.justincarmony.com/2008/02/19/ms-sql-2005-t-sql-row-count-for-each-table/</guid>
				<description>&lt;p&gt;At work I needed a solution to give me a count of how many rows each table contained. I&amp;rsquo;ve always liked phpMyAdmin&amp;rsquo;s ability to list all the tables and show their size and row count. I&amp;rsquo;ve found it immensely helpful. However, I couldn&amp;rsquo;t find anything similar for SQL Server Manager Studio 2005. I found a &lt;a href=&#34;http://www.chrisacton.co.uk/code-5002.asp&#34; title=&#34;Blog Post&#34;&gt;blog post&lt;/a&gt; that pointed me in the right direction on how to get the row counts, but I couldn&amp;rsquo;t get their script to run on the SQL Server 2005. Since I figured this would be a useful script to have I would re-write it and comment it for others. Here it is:&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
