<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>SQL Server Rider</title>
	<atom:link href="https://sqlserverrider.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://sqlserverrider.wordpress.com</link>
	<description>Data, Analytics, Machine learning, AI, Quantum computing, GenAI, Python</description>
	<lastBuildDate>Sun, 10 Mar 2024 01:45:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>

<image>
	<url>https://sqlserverrider.wordpress.com/wp-content/uploads/2020/06/site_icon.jpg?w=32</url>
	<title>SQL Server Rider</title>
	<link>https://sqlserverrider.wordpress.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<cloud domain='sqlserverrider.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<atom:link rel="search" type="application/opensearchdescription+xml" href="https://sqlserverrider.wordpress.com/osd.xml" title="SQL Server Rider" />
	<atom:link rel='hub' href='https://sqlserverrider.wordpress.com/?pushpress=hub'/>
	<item>
		<title>UUID</title>
		<link>https://sqlserverrider.wordpress.com/2024/02/29/uuid/</link>
					<comments>https://sqlserverrider.wordpress.com/2024/02/29/uuid/#respond</comments>
		
		<dc:creator><![CDATA[Robin]]></dc:creator>
		<pubDate>Fri, 01 Mar 2024 00:26:08 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[GUID]]></category>
		<category><![CDATA[oracle uuid]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[system-design]]></category>
		<category><![CDATA[UUID]]></category>
		<category><![CDATA[UUIDGUID]]></category>
		<category><![CDATA[vmware]]></category>
		<guid isPermaLink="false">http://sqlserverrider.com/?p=8718</guid>

					<description><![CDATA[Universally Unique Identifier (UUID) is a 128-bit label used for information in computer systems. This has standards for generating the identifier for uniqueness and independent code generation. Its existence since year 1980 with Appollo computer used in Network Computer System and later adapted by Open Software Foundation in Distributed Computing Environment. There are other standards organizations has registered and &#8230; <a href="https://sqlserverrider.wordpress.com/2024/02/29/uuid/" class="more-link">Continue reading <span class="screen-reader-text">UUID</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p><strong>U</strong>niversally <strong>U</strong>nique <strong>Id</strong>entifier (<strong>UUID</strong>) is a 128-bit label used for information in computer systems. This has standards for generating the identifier for uniqueness and independent code generation. Its existence since year 1980 with Appollo computer used in Network Computer System and later adapted by Open Software Foundation in Distributed Computing Environment.</p>



<p>There are other standards organizations has registered and make the identifier specification such as RFC, ITU and IETF.</p>



<p>UUID stands for Universal Unique Identifier defined by <a href="https://tools.ietf.org/html/rfc4122">RFC 4122</a></p>



<p>Format:</p>



<figure class="wp-block-table"><table><tbody><tr><th><strong>Field</strong></th><th><strong>NDR Data Type</strong></th><th><strong>Octet #</strong></th><th><strong>Note</strong></th></tr><tr><th><strong>time_low</strong></th><th><strong>unsigned long</strong></th><th>0-3</th><th>The low field of the timestamp.</th></tr><tr><td><strong>time_mid</strong></td><td><strong>unsigned short</strong></td><td>4-5</td><td>The middle field of the timestamp.</td></tr><tr><td><strong>time_hi_and_version</strong></td><td><strong>unsigned short</strong></td><td>6-7</td><td>The high field of the timestamp multiplexed with the version number.</td></tr><tr><td><strong>clock_seq_hi_and_reserved</strong></td><td><strong>unsigned small</strong></td><td>8</td><td>The high field of the clock sequence multiplexed with the variant.</td></tr><tr><td><strong>clock_seq_low</strong></td><td><strong>unsigned small</strong></td><td>9</td><td>The low field of the clock sequence.</td></tr><tr><td><strong>node</strong></td><td><strong>character</strong></td><td>10-15</td><td>The spatially unique node identifier.</td></tr></tbody></table></figure>



<p>how to use?</p>



<p>we can generate UUID in any standard programming language or general-purpose application software.</p>



<p>we are going to look into the following:</p>



<p>Database system:</p>



<p>Database &#8211; function &#8211; data type</p>



<ul class="wp-block-list">
<li>Oracle – sys_guid() &#8211; RAW(16)</li>



<li>SQL Server – NEWID() &#8211; uniqueidentifier</li>



<li>PostgreSQL – gen_random_uuid() &#8211; UUID</li>



<li>MySQL – UUID() &#8211; BINARY(16) </li>
</ul>



<p>Programming language:</p>



<p>Python:</p>



<p>The <a href="https://docs.python.org/3/library/uuid.html">uuid module</a> provides immutable UUID objects (the UUID class) and the following functions </p>



<p><a href="https://docs.python.org/3/library/uuid.html#uuid.uuid1"><code>uuid1()</code></a>, <a href="https://docs.python.org/3/library/uuid.html#uuid.uuid3"><code>uuid3()</code></a>, <a href="https://docs.python.org/3/library/uuid.html#uuid.uuid4"><code>uuid4()</code></a>, <a href="https://docs.python.org/3/library/uuid.html#uuid.uuid5"><code>uuid5()</code></a> </p>



<p>are for generating version 1, 3, 4, and 5 UUIDs as specified in <a href="https://www.rfc-editor.org/rfc/rfc4122">RFC 4122</a>.</p>



<p>note: version 1 may have the privacy issue. please use these functions with full understanding.</p>



<p>acronyms:</p>



<ul class="wp-block-list">
<li>RFC &#8211; Request for Comment</li>



<li>ITU &#8211; International Telecommunication Union</li>



<li>IETF &#8211; Internet Engineering Task Force</li>
</ul>



<p>Ref: </p>



<p><a href="https://en.wikipedia.org/wiki/Universally_unique_identifier" target="_blank" rel="noreferrer noopener">Universally unique identifier &#8211; Wikipedia</a></p>



<p><a href="https://stackoverflow.com/questions/534839/how-to-create-a-guid-uuid-in-python">stackoverflow.com &#8211; uuid-in-python</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sqlserverrider.wordpress.com/2024/02/29/uuid/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://0.gravatar.com/avatar/c5f1a3db7cc2e76868493162758372c3bb918170d48eb1d7594e0e702dba3b97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sqldwh</media:title>
		</media:content>
	</item>
		<item>
		<title>ListAgg function &#8211; Oracle</title>
		<link>https://sqlserverrider.wordpress.com/2024/02/24/listagg-function-oracle/</link>
					<comments>https://sqlserverrider.wordpress.com/2024/02/24/listagg-function-oracle/#respond</comments>
		
		<dc:creator><![CDATA[Robin]]></dc:creator>
		<pubDate>Sat, 24 Feb 2024 18:12:40 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[@SQLhelp]]></category>
		<category><![CDATA[Oracle]]></category>
		<guid isPermaLink="false">http://sqlserverrider.com/?p=8781</guid>

					<description><![CDATA[List aggregation &#8211; LISTAGG() It aggregates values from multiple rows into a single list. Syntax: LISTAGG( Column [, Delimiter] ) WITHIN GROUP (Order by Col_name)   [Over(Partition by Col_name)] This function comes handy when you are looking for an answer with concatenated strings. Usage: Select ListAgg(department_name, &#8216;-&#8216;) within group (order by Depart_sort_no) From department_master; This &#8230; <a href="https://sqlserverrider.wordpress.com/2024/02/24/listagg-function-oracle/" class="more-link">Continue reading <span class="screen-reader-text">ListAgg function &#8211;&#160;Oracle</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p>List aggregation &#8211; LISTAGG()</p>



<p>It aggregates values from multiple rows into a single list. </p>



<p>Syntax:</p>



<p>LISTAGG(</p>



<p>Column [, Delimiter]</p>



<p>)</p>



<p>WITHIN GROUP (Order by Col_name)</p>



<p>  [Over(Partition by Col_name)]</p>



<p></p>



<p>This function comes handy when you are looking for an answer with concatenated strings.</p>



<p>Usage:</p>



<p>Select </p>



<p>ListAgg(department_name, &#8216;-&#8216;) within group (order by </p>



<p>Depart_sort_no)</p>



<p>From department_master;</p>



<p></p>



<p>This query gives output of all department names in a &#8211; delimited list.</p>



<p></p>



<p>In some cases you have to deal with obtaining distinct values in the list. </p>



<p>Using the keyword distinct within the function gets the unique list.</p>



<p>ListAgg(distinct column_name)</p>



<p></p>



<p>Finally, how to deal with overflow. It means if the length of the string exceeds the standard data boundary. What should we do?</p>



<p>Let the system fail by throwing value exceed the length.</p>



<p>Do not worry, to do this there is an option in this function.</p>



<p><code>ON OVERFLOW TRUNCATE [&lt;filler&gt;] WITH[OUT] COUNT</code></p>



<p>This option is the last part of ListAgg()</p>



<p>Usage:</p>



<p>ListAgg(col1, &#8216;delimiter&#8217; on overflow truncate)</p>



<p>Listagg(col1, &#8216;delimiter&#8217;, on overflow truncate with count)</p>



<p>Listagg(col1, &#8216;delimiter&#8217;, on overflow truncate without count)</p>



<p>Filler &#8211; can be used to represent obvious continuous characters such as &#8230;</p>



<p>ListAgg(col1, &#8216;delimiter&#8217; on overflow &#8230;)</p>



<p></p>



<p>That is it, learn by doing, happy coding.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sqlserverrider.wordpress.com/2024/02/24/listagg-function-oracle/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://0.gravatar.com/avatar/c5f1a3db7cc2e76868493162758372c3bb918170d48eb1d7594e0e702dba3b97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sqldwh</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL for everyone &#8211; Day 2</title>
		<link>https://sqlserverrider.wordpress.com/2024/02/17/sql-for-everyone-day-2/</link>
					<comments>https://sqlserverrider.wordpress.com/2024/02/17/sql-for-everyone-day-2/#respond</comments>
		
		<dc:creator><![CDATA[Robin]]></dc:creator>
		<pubDate>Sat, 17 Feb 2024 16:50:22 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[@SQLhelp]]></category>
		<category><![CDATA[Join]]></category>
		<category><![CDATA[SQL Join]]></category>
		<guid isPermaLink="false">http://sqlserverrider.com/2024/02/17/sql-for-everyone-day-2/</guid>

					<description><![CDATA[Joins Database contains many tables to store different conceptual data. Actually we need to see the concept join in the relational database management system. Entities are created with normalization rules. Thus, data for a single domain span across multiple tables in a normalization data model. For instance, the train ticket booking system uses Trains, Passenger &#8230; <a href="https://sqlserverrider.wordpress.com/2024/02/17/sql-for-everyone-day-2/" class="more-link">Continue reading <span class="screen-reader-text">SQL for everyone &#8211; Day&#160;2</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p></p>



<p><strong>Joins</strong></p>



<p>Database contains many tables to store different conceptual data.</p>



<p>Actually we need to see the concept join in the relational database management system. Entities are created with normalization rules.</p>



<p>Thus, data for a single domain span across multiple tables in a normalization data model. For instance, the train ticket booking system uses Trains, Passenger and trip tables. It is a normalized structure where train details, passengers and their trip information are stored separately with key references.</p>



<p>Table key columns </p>



<p>Train &#8211; TrainId</p>



<p>passenger &#8211; Pid</p>



<p>Trip &#8211; TrainId, Pid, fair</p>



<p>Lets look into the types of Joins</p>



<ul class="wp-block-list">
<li>Inner join</li>



<li>Left outer join</li>



<li>Right outer join</li>



<li>Full outer join</li>



<li>Cross join</li>
</ul>



<p></p>



<p><strong>Inner join</strong></p>



<p>It joins two tables and returns the matching records.</p>



<p>Select a.column1, a.column2</p>



<p>From table a</p>



<p><em>Inner join table2</em> b</p>



<p>On a.key_column = b.key_column;</p>



<p>Here, a and b are alias names for the tables. Will be used for shorthand names in the query.</p>



<p></p>



<p><strong>Left join</strong></p>



<p>Left outer join combines two tables. Whereas, it returns all the rows in the left table and the rows match on both sides. Finally, you will get the null on the right side for the unmatched rows.</p>



<p>The idea is, if you want to know the records that are not present in the right table can be filtered using Nul value.</p>



<p>Select a.*</p>



<p>From table a</p>



<p>Left outer join Table b</p>



<p>On a.key_column = b.key_column</p>



<p>Where b.Key_column is null:</p>



<p>Hence, this query output contains records from the left table that are not in the right table.</p>



<p></p>



<p>Right join</p>



<p>Right join combines both sides and focus on the right side of the table. It is similar to the left join. However, it returns all rows from the right table with matched rows and null on the left for the records that are not matched.</p>



<p>Select b.*</p>



<p>From table a</p>



<p>Right outer join table b</p>



<p>On a.key_column = b.key_column</p>



<p>Where a.key_column is null;</p>



<p></p>



<p><strong>Full join</strong></p>



<p>Full outer join takes everything from both sides. It is the combination of left and right table together and leave nothing out. Whereas, the results have null on either side if there is no match.</p>



<p>Select a.*, b.*</p>



<p>From table a</p>



<p>Full out join table b</p>



<p>On a.key_column = b._key_column;</p>



<p><strong>Cross join</strong></p>



<p>Cross join is a Cartesian product. There is no need for key columns in the join clause. It does produce the output by joining each row with every combination between two tables</p>



<p>Select a.*, b.*</p>



<p>From table a</p>



<p>Cross join table b;</p>



<p></p>



<p>There are other joins available in different products along with ANSI join.</p>



<p>Those are, natural join, inner join using(), cross apply, outer apply().</p>



<p>Learn by doing. Good luck.</p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sqlserverrider.wordpress.com/2024/02/17/sql-for-everyone-day-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://0.gravatar.com/avatar/c5f1a3db7cc2e76868493162758372c3bb918170d48eb1d7594e0e702dba3b97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sqldwh</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL for everyone &#8211; Day 1</title>
		<link>https://sqlserverrider.wordpress.com/2024/02/16/sql-for-everyone-day-1/</link>
					<comments>https://sqlserverrider.wordpress.com/2024/02/16/sql-for-everyone-day-1/#respond</comments>
		
		<dc:creator><![CDATA[Robin]]></dc:creator>
		<pubDate>Sat, 17 Feb 2024 00:04:11 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[@SQLhelp; SQL; query]]></category>
		<guid isPermaLink="false">http://sqlserverrider.com/?p=8736</guid>

					<description><![CDATA[It is a buzzword we have been hearing in the data world. We are accumulating humongous amounts of data every single day. However, without finding the useful information from the stored data, it is just a piece of word. Databases are developed to store and retrieve when required. SQL is a declarative programming language for &#8230; <a href="https://sqlserverrider.wordpress.com/2024/02/16/sql-for-everyone-day-1/" class="more-link">Continue reading <span class="screen-reader-text">SQL for everyone &#8211; Day&#160;1</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p>It is a buzzword we have been hearing in the data world. We are accumulating humongous amounts of data every single day. However, without finding the useful information from the stored data, it is just a piece of word.</p>



<p>Databases are developed to store and retrieve when required. SQL is a declarative programming language for that sole purpose.</p>



<p><a href="https://en.wikipedia.org/wiki/SQL" target="_blank" rel="noreferrer noopener"><strong>Structured Query Language</strong></a><a href="https://en.wikipedia.org/wiki/SQL" target="_blank" rel="noreferrer noopener"> (SQL)</a> is language used to store and manage data in the RDBMS (Relational database management system).</p>



<p>it is best suitable to work with structured data such as tabular data structure. Similarly, it is also used in NoSQL and other applications as well.</p>



<p>SQL is a well standardized language by the American National Standards Institute (ANSI) in 1986 and of the International Organization for Standardization (ISO) in 1987 in the early time and it has been evolving since then.</p>



<p>it is adapted by different organizations and added extension programming language such as T-SQL (Microsoft SQL Server) and PL/SQL (Oracle).</p>



<p>SQL is an easy (Basics) to learn language. it has a set of statements to perform the following operations.</p>



<ol class="wp-block-list">
<li>data query language (DQL) &#8211; reading data from a table.</li>



<li>data definition language (DDL) &#8211; creating, modifying or remove a table.</li>



<li>data control language (DCL) &#8211; Granting and revoking the access to a user.</li>



<li>data manipulation language (DML) &#8211; add, modify, delete records to a table.</li>
</ol>



<p>To practice SQL statements, you need a SQL database engine. for simplicity you can use SQLite.</p>



<p><a href="https://www.sqlite.org/index.html" target="_blank" rel="noreferrer noopener">https://www.sqlite.org/index.html</a> - <a href="https://sqlite.org/2024/sqlite-tools-win-x64-3450100.zip" target="_blank" rel="noreferrer noopener">Download </a>and install this software in your computer.</p>



<p><em>Understand the SQL Statements!</em></p>



<p><strong>data query language (DQL)</strong></p>



<p>this statement is used to retrieve the data from a table (entity).</p>



<p><em>Syntax with clauses:</em></p>



<p>SELECT [TOP n rows] <em>column1</em>,<em> column2, &#8230;</em> FROM <em>table_name</em></p>



<p>WHERE column1 <em>condition</em></p>



<p>GROUP BY <em>column</em>1</p>



<p>HAVING <em>column1</em></p>



<p><em>Example:</em></p>



<p>SELECT * from Cars;</p>



<p>Here Cars is an entity. It has tuples (records/rows) of attributes (columns)</p>



<p></p>



<p><strong>data definition language (DDL)</strong></p>



<p>It is used for defining the structure of the storage object Table.</p>



<p>The following statements belong to DDL</p>



<p class="has-text-align-left"><strong><em>CREATE</em></strong> &#8211; to create an object, a table with attributes to store data of a domain</p>



<p><em><strong>RENAME</strong></em> &#8211; is to rename the table</p>



<p><strong><em>ALTER</em></strong> &#8211; is to add, rename and delete attributes</p>



<p><em><strong>TRUNCATE</strong></em> &#8211; remove all records from the table</p>



<p><em><strong>DROP</strong></em> &#8211; remove an object from the database</p>



<p></p>



<p>How to use DDL statements:</p>



<p>CREATE table_name</p>



<p>(</p>



<p>Column1 data_type,</p>



<p>Column2 data_type</p>



<p>);</p>



<p><strong>Data control language (DCL)</strong></p>



<p>As the name control implies, these statements are used to add or remove access for a particular object.</p>



<p>GRANT &#8211; Give access such as select, update, delete, alter and insert permission to a database object.</p>



<p>REVOKE &#8211; Takeaway granted access for a user object.</p>



<p>Usage:</p>



<p>GRANT select on [object name] to User name;</p>



<p>REVOKE select on [object name] from user name;</p>



<p></p>



<p><strong>Data manipulation language</strong> <strong>(DML)</strong></p>



<p>DML statements are for manipulating data in the database tables. You insert, update and delete records in a table.</p>



<p>Usage:</p>



<p>Insert into [table name] </p>



<p>(column1, column2)</p>



<p>Values (value1, value2);</p>



<p></p>



<p>Update [table name]</p>



<p>Set column1 = [value],</p>



<p>Column2 = [value];</p>



<p></p>



<p>Delete from [table name]</p>



<p>Where condition (if deleting selected records);</p>



<p></p>



<p>SQL has become one of the inevitable programming in the data world. </p>



<p></p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sqlserverrider.wordpress.com/2024/02/16/sql-for-everyone-day-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://0.gravatar.com/avatar/c5f1a3db7cc2e76868493162758372c3bb918170d48eb1d7594e0e702dba3b97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sqldwh</media:title>
		</media:content>
	</item>
		<item>
		<title>Python &#8211; Data types &#8211; Day 3</title>
		<link>https://sqlserverrider.wordpress.com/2024/02/14/python-day-3/</link>
					<comments>https://sqlserverrider.wordpress.com/2024/02/14/python-day-3/#respond</comments>
		
		<dc:creator><![CDATA[Robin]]></dc:creator>
		<pubDate>Thu, 15 Feb 2024 05:16:32 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Data Types]]></category>
		<category><![CDATA[python data types]]></category>
		<guid isPermaLink="false">http://sqlserverrider.com/?p=8768</guid>

					<description><![CDATA[Data Types We come across various types of day in the real world. Basically, we invented it to describe any unit of datum. in the same way, programming languages are designed for various purposes and have different data types to process the users input. For example, FORTRAN (Formula Translation) is a computer programming language that &#8230; <a href="https://sqlserverrider.wordpress.com/2024/02/14/python-day-3/" class="more-link">Continue reading <span class="screen-reader-text">Python &#8211; Data types &#8211; Day&#160;3</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p><strong><a href="https://docs.python.org/3/library/stdtypes.html#" target="_blank" rel="noreferrer noopener">Data Types</a></strong></p>



<p>We come across various types of day in the real world. Basically, we invented it to describe any unit of datum.</p>



<p>in the same way, programming languages are designed for various purposes and have different data types to process the users input.</p>



<p>For example, FORTRAN (Formula Translation) is a computer programming language that is used for scientific data processing.</p>



<p>COBOL (Common Business Oriented Language) &#8211; Programming language for business data processing.</p>



<p>these two notable legendary programming languages that have rich data types to handle various application data. </p>



<p>Likewise, Python is capable of handling different type of data for today&#8217;s modern applications.</p>



<ol class="wp-block-list">
<li>numeric &#8211; integer, float, complex</li>



<li>boolean &#8211; values are True, False</li>



<li>set &#8211; {}, it is an unordered, unindexed and deduplicated data collection in a single variable.</li>



<li>mapping &#8211; {&#8220;key&#8221;:&#8221;value&#8221;}, Dictionary data store with key-value pair.</li>



<li>sequence &#8211; string, list is the collection storage of similar data type. tuple contains different types of data.</li>
</ol>



<p>data types are grouped into mutable and immutable. mutable allows the program to update the value in the existing memory and immutable does not allow the program to update the value instead it created new memory and old memory will be given away then freed by garbage collection.</p>



<p><em>examples:</em></p>



<p>interger</p>



<p>a = 1</p>



<p>floating point</p>



<p>b = 1.5</p>



<p>complex number</p>



<p>c = complex(a + b)</p>



<p>boolean</p>



<p>f = True</p>



<p>set</p>



<p>A = {1,2,3,4,True, False, 4,3,2,1}</p>



<p>dictionary</p>



<p>d = {&#8220;name&#8221;:&#8221;dog&#8221;,&#8221;job&#8221;:&#8221;guard&#8221;}</p>



<p><strong>sequence</strong> &#8211; can retrieve value using the index [1&#8230;n]</p>



<p>string</p>



<p>e = &#8220;elephant&#8221;</p>



<p>list</p>



<p>f = [&#8216;f&#8217;,&#8217;u&#8217;,&#8217;n&#8217;]</p>



<p>tuple</p>



<p>g = (1,3,5,&#8217;odd&#8217;,&#8217;natural&#8217;, True)</p>



<p>you can view the output of the variables using print() function</p>



<p><a href="https://www.python.org/shell/" target="_blank" rel="noreferrer noopener">Python interactive shell </a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sqlserverrider.wordpress.com/2024/02/14/python-day-3/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://0.gravatar.com/avatar/c5f1a3db7cc2e76868493162758372c3bb918170d48eb1d7594e0e702dba3b97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sqldwh</media:title>
		</media:content>
	</item>
		<item>
		<title>Bake the data!</title>
		<link>https://sqlserverrider.wordpress.com/2024/02/13/bake-the-data/</link>
					<comments>https://sqlserverrider.wordpress.com/2024/02/13/bake-the-data/#respond</comments>
		
		<dc:creator><![CDATA[Robin]]></dc:creator>
		<pubDate>Wed, 14 Feb 2024 05:53:57 +0000</pubDate>
				<category><![CDATA[AI]]></category>
		<category><![CDATA[Big Data]]></category>
		<category><![CDATA[movies]]></category>
		<category><![CDATA[Statistics]]></category>
		<guid isPermaLink="false">http://sqlserverrider.com/?p=8761</guid>

					<description><![CDATA[Data is a magical word we do use or hear people saying. what does it really do? the amazing thing is that it will show the path to heaven. sometime, if we are biased with data then it will take us to &#8230;&#8230; Mathemetics, Economic, Statistics have given us enough models to grind the data &#8230; <a href="https://sqlserverrider.wordpress.com/2024/02/13/bake-the-data/" class="more-link">Continue reading <span class="screen-reader-text">Bake the data!</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p>Data is a magical word we do use or hear people saying. what does it really do? </p>



<p>the amazing thing is that it will show the path to heaven. sometime, if we are biased with data then it will take us to &#8230;&#8230;</p>



<p>Mathemetics, Economic, Statistics have given us enough models to grind the data to predict the future or finding facts.</p>



<p>there are many stories revolving around the data in this world. it has been picturized for the audience. </p>



<ol class="wp-block-list">
<li>Moneyball &#8211; is a movie, a general manager, Billy Beane assembled a winning team by using an analytical and scientific approach.</li>



<li>Lover, Stalker, Killer: in this movie, police forensic IT team used the database to process and find the answers to the puzzling question using SQL.</li>



<li>Her &#8211; another movie that shows how effective a computer system connected with AI server to assist its users.</li>



<li>Margin Call &#8211; is another one that showed the world how not to use this sophisticated data tools.</li>
</ol>



<p>many more movie like this. the point is data is everywhere and we are contributing our part one way or another to someone to take decision. </p>
]]></content:encoded>
					
					<wfw:commentRss>https://sqlserverrider.wordpress.com/2024/02/13/bake-the-data/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://0.gravatar.com/avatar/c5f1a3db7cc2e76868493162758372c3bb918170d48eb1d7594e0e702dba3b97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sqldwh</media:title>
		</media:content>
	</item>
		<item>
		<title>Python &#8211; keywords, operators &#8211; Day 2</title>
		<link>https://sqlserverrider.wordpress.com/2024/02/12/python-day-2/</link>
					<comments>https://sqlserverrider.wordpress.com/2024/02/12/python-day-2/#respond</comments>
		
		<dc:creator><![CDATA[Robin]]></dc:creator>
		<pubDate>Tue, 13 Feb 2024 02:04:35 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[constants]]></category>
		<category><![CDATA[data-science]]></category>
		<category><![CDATA[identifiers]]></category>
		<category><![CDATA[keywords]]></category>
		<category><![CDATA[machine-learning]]></category>
		<category><![CDATA[operators]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Python]]></category>
		<guid isPermaLink="false">http://sqlserverrider.com/?p=8750</guid>

					<description><![CDATA[in the context of a programming language, following are the Jargons to keep in our mind for understanding and communicating to your fellow programmers. It is also important for the writing a software program. whilst, programming language uses it interpret or compile the code for execution. keywords: these are the special words that are already &#8230; <a href="https://sqlserverrider.wordpress.com/2024/02/12/python-day-2/" class="more-link">Continue reading <span class="screen-reader-text">Python &#8211; keywords, operators &#8211; Day&#160;2</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p>in the context of a programming language, following are the Jargons to keep in our mind for understanding and communicating to your fellow programmers. It is also important for the writing a software program. whilst, programming language uses it interpret or compile the code for execution.</p>



<ul class="wp-block-list">
<li>keywords</li>



<li>identifiers</li>



<li>operators</li>



<li>constants</li>
</ul>



<p><strong>keywords</strong>:</p>



<p>these are the special words that are already taken by the programming language for its own use. we should not use that name as our identifier. </p>



<p><a href="https://docs.python.org/3/reference/lexical_analysis.html#keywords" target="_blank" rel="noreferrer noopener">Keywords</a>: if, import, for and etc&#8230;..</p>



<p><strong>Identifiers</strong>:</p>



<p>it is the name user defines to store and evaluate in the expressions. it is case sensitive in python. there is a set of rules to define identifier in python.</p>



<ul class="wp-block-list">
<li>it should not start with numbers. eg: 7name</li>



<li>it should not be a keyword. eg: import</li>
</ul>



<p>however, you can do the following.</p>



<ul class="wp-block-list">
<li>it can start or contains underscore. eg: _myself or my_self</li>



<li>it can have numbers. eg: my_guess_6, OO7 (is it letter o), get2gether</li>



<li>it is case sensitive. eg: cat and Cat</li>
</ul>



<p><strong>Operators</strong>:</p>



<p>operators are a symbol or word used to perform some operations. it can be an expression to compute or just assign a literal.</p>



<p>following are the classification of python operator.</p>



<ul class="wp-block-list">
<li>Arithmetic operators are <strong>+, -, *, /, **, //, %</strong></li>



<li>Assignment operators are <strong>=, +=, -=, /=, *%=, //=</strong> and with bitwise operators</li>



<li>Comparison operators<strong> </strong>are<strong> ==, &gt;=, &lt;=, !=, &lt;, &gt; </strong></li>



<li>Logical operators are <strong>and, or, not</strong></li>



<li>Bitwise operators are <strong>&amp;, |, ^, ~, &lt;&lt;, &gt;&gt;</strong></li>



<li>Identity operators are <strong>is, is not</strong></li>



<li>Membership operators are <strong>in, not in</strong></li>



<li>Concatenation&nbsp;operator  <strong>+</strong></li>



<li>repetitive operator *</li>
</ul>



<p> demo, learn by doing:</p>



<ul class="wp-block-list">
<li>a = 8</li>



<li>b = 2</li>



<li>a + b</li>



<li>a &#8211; b</li>



<li>a == b</li>



<li>a &amp; b</li>



<li>&#8216;a&#8217; * 3</li>



<li>((4+5) + -3 / 3)</li>
</ul>



<p>use the python interactive shell for this experiment: <a href="https://www.python.org/shell/" target="_blank" rel="noreferrer noopener">https://www.python.org/shell/</a></p>



<p>expression precedence as follows</p>



<ul class="wp-block-list">
<li>P  ()</li>



<li>E   **</li>



<li>M  *</li>



<li>D  /</li>



<li>A +</li>



<li>S -</li>
</ul>



<p><strong>Constants</strong>:</p>



<p>it is another way of defining a variable that never changes in the program. We must have come across the name constant in our daily lives Pi, it is not the one we like to eat. Instead, it is a mathematical constant for ratio of a circle’s circumference to its diameter.</p>



<p>you can define a constant like the one as given below. we must follow the identifier rules for constant as well.</p>



<p>PI = 3.1415</p>



<p>want to learn more. Learn about operator as a <a href="https://docs.python.org/3/library/operator.html" target="_blank" rel="noreferrer noopener">function</a>.</p>



<p></p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sqlserverrider.wordpress.com/2024/02/12/python-day-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://0.gravatar.com/avatar/c5f1a3db7cc2e76868493162758372c3bb918170d48eb1d7594e0e702dba3b97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sqldwh</media:title>
		</media:content>
	</item>
		<item>
		<title>Python &#8211; Introduction &#8211; Day 1</title>
		<link>https://sqlserverrider.wordpress.com/2024/02/07/python-day-1/</link>
					<comments>https://sqlserverrider.wordpress.com/2024/02/07/python-day-1/#respond</comments>
		
		<dc:creator><![CDATA[Robin]]></dc:creator>
		<pubDate>Wed, 07 Feb 2024 06:10:56 +0000</pubDate>
				<category><![CDATA[Application]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[AI]]></category>
		<category><![CDATA[basics of python]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[technology]]></category>
		<guid isPermaLink="false">http://sqlserverrider.com/?p=8731</guid>

					<description><![CDATA[This name has a power to transform this world. it can be taught to a young people to senior citizens. Since, the nature of this language is simple to read and write. You can write a program to print &#8220;hello, world!&#8221; or send a rocket to the moon. Python is an interpreted language. It is &#8230; <a href="https://sqlserverrider.wordpress.com/2024/02/07/python-day-1/" class="more-link">Continue reading <span class="screen-reader-text">Python &#8211; Introduction &#8211; Day&#160;1</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p>This name has a power to transform this world. it can be taught to a young people to senior citizens. Since, the nature of this language is simple to read and write. You can write a program to print &#8220;hello, world!&#8221; or send a rocket to the moon.</p>



<p>Python is an interpreted language. It is a high level, Object-oriented programming language.</p>



<p>There are some basic to learn a programming language. It is vital to understand the following and it is same for all languages.</p>



<ol class="wp-block-list">
<li>Language Syntax &#8211; to construct the program structure.</li>



<li>Variables &#8211; a name use to store a value. </li>



<li>Data Type &#8211; Type of the value to be stored in a variable or as a literal for computation.</li>



<li>Operators &#8211; symbols that represent operations to be performed.</li>



<li>Control Structure &#8211; Control structures are used to perform different actions in a program. such as, conditional flow, repetitive code block and catch exceptions.</li>



<li>Module &#8211; is a collection of subroutines that are essential or readily available for developer&#8217;s use instead of creating. for instance, print() is a standard function for output.</li>
</ol>



<p>We will get to learn each item as given above. Learning the basic of a programming language basics gives you confidence to do more. Therefore, more you do will make you an expert. </p>



<p>There is a concept called 10K hours rule. If you practice a complex skill dedicatedly for 10K hours, you will become master in it.</p>



<p>Same goes for mastering a programming language. </p>



<p>Start your first day and wish you to reach the 10K hour.</p>



<p>Ref: <a href="https://www.python.org/" target="_blank" rel="noreferrer noopener">https://www.python.org/</a></p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sqlserverrider.wordpress.com/2024/02/07/python-day-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://0.gravatar.com/avatar/c5f1a3db7cc2e76868493162758372c3bb918170d48eb1d7594e0e702dba3b97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sqldwh</media:title>
		</media:content>
	</item>
		<item>
		<title>How to be SMART</title>
		<link>https://sqlserverrider.wordpress.com/2024/02/03/how-to-be-smart/</link>
					<comments>https://sqlserverrider.wordpress.com/2024/02/03/how-to-be-smart/#respond</comments>
		
		<dc:creator><![CDATA[Robin]]></dc:creator>
		<pubDate>Sun, 04 Feb 2024 05:56:27 +0000</pubDate>
				<category><![CDATA[time]]></category>
		<category><![CDATA[me]]></category>
		<category><![CDATA[technique]]></category>
		<category><![CDATA[you]]></category>
		<guid isPermaLink="false">http://sqlserverrider.com/2024/02/03/how-to-be-smart/</guid>

					<description><![CDATA[Make the maximum out of your time. Pomodoro Technique is a time management method developed by Francesco Cirillo in the late 1980s. If you can understand the clock, it will be simple to experiment. Pick up a task, work for 25 minutes and take a 5 break and repeat it for 3 to 4 times and &#8230; <a href="https://sqlserverrider.wordpress.com/2024/02/03/how-to-be-smart/" class="more-link">Continue reading <span class="screen-reader-text">How to be&#160;SMART</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p>Make the maximum out of your time.</p>



<p></p>



<p>Pomodoro Technique is a time management method developed by Francesco Cirillo in the late 1980s.</p>



<p>If you can understand the clock, it will be simple to experiment.</p>



<p>Pick up a task, work for 25 minutes and take a 5 break and repeat it for 3 to 4 times and in the round take a longer break for 20 to 25 minutes. That is it. Key is to break the tasks into smaller pieces and pick them in order to accomplish it.</p>



<p>25 / 5 = Work / Break</p>



<p>25 / 5 = Work / Break</p>



<p>25 / 5 = Work / Break</p>



<p>25 / 20 = Work / Break</p>



<p>REPEAT, Numbers are represented in minutes.</p>



<p></p>



<p>Next is SMART technique, goal setting methodology.</p>



<p>S &#8211; specific</p>



<p>What do you want to do?</p>



<p>M &#8211; measurable</p>



<p>How much do you want do?</p>



<p>A &#8211; achievable</p>



<p>How will you complete it?</p>



<p>R &#8211; Relevant</p>



<p>How is it related to what you want to do?</p>



<p>T &#8211; TIimely</p>



<p>When will you be able to complete it?</p>



<p></p>



<p>Again, this can be done with breaking tasks into small pieces and applying this technique.</p>



<p>That is all for now.</p>



<p>Thanks.</p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sqlserverrider.wordpress.com/2024/02/03/how-to-be-smart/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://0.gravatar.com/avatar/c5f1a3db7cc2e76868493162758372c3bb918170d48eb1d7594e0e702dba3b97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sqldwh</media:title>
		</media:content>
	</item>
		<item>
		<title>DECODE &#8211; Function &#8211; Oracle</title>
		<link>https://sqlserverrider.wordpress.com/2023/05/07/decode-function-oracle/</link>
					<comments>https://sqlserverrider.wordpress.com/2023/05/07/decode-function-oracle/#respond</comments>
		
		<dc:creator><![CDATA[Robin]]></dc:creator>
		<pubDate>Mon, 08 May 2023 05:33:14 +0000</pubDate>
				<category><![CDATA[DBMS]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[decode]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[pl/sql]]></category>
		<category><![CDATA[SQL]]></category>
		<guid isPermaLink="false">http://sqlserverrider.com/?p=8721</guid>

					<description><![CDATA[The word decode triggers our mind to think of a mysterious task. But, in this context, it is a function in DBMS Oracle to perform a search task. Functional usage: DECODE compares expression to each search value one by one. If expression is equal to a search, then it returns the corresponding result. If no &#8230; <a href="https://sqlserverrider.wordpress.com/2023/05/07/decode-function-oracle/" class="more-link">Continue reading <span class="screen-reader-text">DECODE &#8211; Function &#8211;&#160;Oracle</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p>The word decode triggers our mind to think of a mysterious task. But, in this context, it is a function in DBMS Oracle to perform a search task.</p>



<p><strong>Functional usage:</strong></p>



<p><code>DECODE</code> compares <code>expression</code> to each <code>search</code> value one by one. </p>



<p>    If <code>expression</code> is equal to a <code>search</code>, then it  returns the corresponding <code>result</code>. </p>



<p>    If no match is found, then it returns the assigned <code>default</code> value. </p>



<p>    If <code>default</code> is omitted, then it returns null.</p>



<p>In a simple words to remember, this function is a simplified form of nested IF-Then-Else or a expression based Case statement.</p>



<p><strong>Syntax</strong>:</p>



<pre class="wp-block-preformatted">DECODE(expression, search, result [, search, result ]...  [, default ])</pre>



<p><strong>Example:</strong></p>



<p>This example is to give you a basic understanding on the function decode in the SQL statement. This example has hard coded values to show directions. But, you can also use this function in PL/SQL program.</p>



<pre class="wp-block-preformatted">SELECT 
       DECODE (3, 1, 'East', 
                  2, 'West', 
                  3, 'North', 
                  4, 'South',
                     'You are here') "Direction" 
  FROM Dual;</pre>



<p></p>



<p></p>



<p></p>



<p></p>



<p>Thanks for reading. You can write the comment and share the usage of this function in your code.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sqlserverrider.wordpress.com/2023/05/07/decode-function-oracle/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		
		<media:content url="https://0.gravatar.com/avatar/c5f1a3db7cc2e76868493162758372c3bb918170d48eb1d7594e0e702dba3b97?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sqldwh</media:title>
		</media:content>
	</item>
	</channel>
</rss>
