<?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[Stories by Chisimdiri Anyaogu on Medium]]></title>
        <description><![CDATA[Stories by Chisimdiri Anyaogu on Medium]]></description>
        <link>https://medium.com/@anyaoguchisim30?source=rss-850411e3a2c6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*BOF0m5PQ8AIUnqtxSlMzRA.jpeg</url>
            <title>Stories by Chisimdiri Anyaogu on Medium</title>
            <link>https://medium.com/@anyaoguchisim30?source=rss-850411e3a2c6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 19:51:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anyaoguchisim30/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[SQL Series: SQL Joins]]></title>
            <link>https://medium.com/@anyaoguchisim30/sql-series-sql-joins-96e1b9fcc6db?source=rss-850411e3a2c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/96e1b9fcc6db</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[ibm-db2]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Chisimdiri Anyaogu]]></dc:creator>
            <pubDate>Fri, 30 Sep 2022 12:53:56 GMT</pubDate>
            <atom:updated>2022-09-30T12:53:56.725Z</atom:updated>
            <content:encoded><![CDATA[<p>I was reading an article on Medium recently and one of the highlights was how the use of Venn diagrams to explain SQL joins poses very confusing to beginners. I was in total agreement with this conclusion because I had problems understanding SQL joins when it was introduced to me, the Venn diagram was the basis of most if not all of the material I used while learning, but all it did was leave me more confused each time I tried to make sense of it. Below are two diagrams trying to explain SQL joins and all I ask is for you to look and see which is easier to understand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uHvXxV66c547H-uFE2AFGg.png" /><figcaption><a href="http://cyberzen.azurewebsites.net/post.html">http://cyberzen.azurewebsites.net/post.html</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4ryedUFxzxQ3QN_rCmedhg.png" /><figcaption><a href="https://ro.onlinecheapbest.ru/content?c=database%20table%20join%20types&amp;id=38">onlinecheapbesta</a></figcaption></figure><p>For me, the second diagram properly explains the concept of joining tables in SQL. One other thing I discovered when learning the concept of joins is to think of them like using Vlookup in an Excel sheet. For instance, if you have information on another sheet but you need that info on the sheet you’re currently working on and both sheets have similar columns, a simple Vlookup function can easily combine the results you need from both sheets, the same thing goes for SQL joins it’s essentially bringing useful table data together.</p><p>Throughout this article, I will discuss the different joins and show examples of using joins to solve different problems.</p><h4>INNER JOIN</h4><p>The INNER JOIN clause takes records that have matching values in the tables in question. Before we take a look at an example of just how the inner join clause works, I’d like to first show you the syntax for using SQL joins.</p><pre>SELECT *<br>FROM table_a <strong><em>JOIN</em></strong> table_b ON table_a.primary_key=table_b.foreign_key</pre><pre>or you can use aliases to shorten your code</pre><pre>SELECT *<br>FROM table_a as a <strong><em>JOIN</em></strong> table_b as b ON a.primary_key=b.foreign_key</pre><p>The primary key of a table is a field with unique values throughout the table. For the employee table, I have been using in previous examples the primary key is the employee ID because it is a value that has to be unique throughout the table because two employees cannot have the same employee ID.</p><p>While the foreign key in any table is a field of values which may be unique or not but acts as a reference between two or more tables. Foreign keys can also be primary keys in different tables. For today&#39;s example, I will be making use of both the employee&#39;s and department&#39;s tables to further explain SQL joins.</p><p>Task: create a report showing employee IDs and their respective departments&#39; names. To create this report you will need to use the INNER JOIN clause because the department names are only in the department&#39;s table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7YWhoJkxt8kqEil8_MJdDA.png" /><figcaption>INNER JOIN QUERY</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZBy3ie_atfvprXRz0DmB8Q.png" /><figcaption>INNER JOIN RESULT</figcaption></figure><h4>LEFT JOIN</h4><p>The LEFT JOIN clause returns all records from the left table and takes only matching records from the right table. The following SQL statement will output a record of all employees on the employee’s table even when there are no corresponding records available in the department’s table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SMqaU06S6DGAHS14VXjYnw.png" /><figcaption>LEFT JOIN QUERY</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0YUTZhehtY39dq93Pe5h2A.png" /><figcaption>LEFT JOIN RESULT</figcaption></figure><p>Notice with the INNER JOIN clause employee IDs E1005 and E1006 are not in the result, but with the LEFT JOIN clause the missing IDs are included even though they have no corresponding records from the department’s table, this is because the left join takes every result from the left table regardless of a corresponding result from the right table.</p><h4>RIGHT JOIN</h4><p>The RIGHT JOIN clause returns all records from the right table and takes only matching records from the left table. The following SQL statement will output only records on the employee’s table that match the ones from the department’s table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Ib34wEwcmqCuSyjSqy1sQ.png" /><figcaption>RIGHT JOIN QUERY</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZBy3ie_atfvprXRz0DmB8Q.png" /><figcaption>RIGHT JOIN RESULT</figcaption></figure><p>The records from the RIGHT JOIN clause are the same as those of the INNER JOIN because the employees with IDs E1005 and E1006 don’t have their department IDs available on the department’s table.</p><h4>FULL OUTER JOIN</h4><p>The FULL OUTER JOIN clause returns both the left and right table disregarding the presence of matching records from either table. The following SQL statement will output all records from both employee’s and department’s tables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qlNiOxZ09VaV3KhQSvQYHA.png" /><figcaption>FULL JOIN QUERY</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MI-u0xzfIF3LQQJANj1OaQ.png" /><figcaption>FULL JOIN RESULT</figcaption></figure><p>The result of the FULL JOIN clause returns the same as the LEFT JOIN clause because it takes all records from both tables. I’m sure you now have a good understanding of SQL joins, while there are many other kinds of ways you can use joins such as self joins, cross joins and joining more than two tables. The most common joins that will come in handy on a daily basis are mentioned in this article, you can always do some research to find out more ways to use SQL joins.</p><p>As usual, thank you for your audience. I am already looking forward to my next article.</p><p><em>If you have any questions, you can reach me on </em><a href="https://mobile.twitter.com/c_anyao9u/"><em>Twitter</em></a><em>. I will be more than happy to help.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96e1b9fcc6db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Series: WHERE Clause (More Predicates)]]></title>
            <link>https://medium.com/@anyaoguchisim30/sql-series-where-clause-more-predicates-ada6ed0a98be?source=rss-850411e3a2c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ada6ed0a98be</guid>
            <dc:creator><![CDATA[Chisimdiri Anyaogu]]></dc:creator>
            <pubDate>Fri, 26 Aug 2022 13:03:54 GMT</pubDate>
            <atom:updated>2022-08-26T13:03:54.885Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rkXJRmH8b1rbK5tmyf65Og.jpeg" /></figure><p>Welcome back! My previous article explored some useful predicates in the WHERE clause for efficient table filtering. This time around I’m prepared to show you even more predicates that have come in handy whenever I find myself using SQL to filter data.</p><h4><strong>Between</strong></h4><p>In SQL, the BETWEENpredicate can pick out values within a specified range, when using the BETWEENpredicate there must be a beginning and an end value which you want in your result. BETWEENcan be used with numeric, date and string values, to use the BETWEENpredicate with string values it’s best practice to use the BETWEENkeyword. Just as the name implies, ORDER BY arranges a table in either ascending or descending order based on one or more columns. Don’t understand? Take a look at this example using the Employee table. If you were asked by your supervisor to provide a report for employees born between the years 1975 and 1980, the BETWEENpredicate is the easiest method to make this report. Coupled with the ORDER BY keyword you can structure this report from the earliest to the latest dates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f-8DkWe1dNXwXOA3JK1nzA.png" /><figcaption>Query</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XtvJwXv00HSwx2YrFpzkLA.png" /><figcaption>Result</figcaption></figure><h4>Like</h4><p>The LIKEpredicate is used to find patterns in a column. The LIKEpredicate works together with wildcards, and SQL wildcards are used with the LIKEpredicate to represent missing values. I understand this might all be confusing but with this easy example, you would see just how useful the LIKEpredicate can be.<em> </em>If you wanted to make a report on employees with first names beginning with the letter A, the LIKEpredicate is perfect for tasks of this nature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c1GBhRSNuX31-rcYaqBAqA.png" /><figcaption>Query</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H7uEuZU6vlSVROgStPx8NA.png" /><figcaption>Result</figcaption></figure><p><em>Note: There are more flexible ways to use SQL wildcards, with more research you will be able to master using them.</em></p><h4>In</h4><p>The IN predicate can pick out values multiple values from a column, Think of the INpredicate as the cousin of OR. Now let’s see how the INpredicate works. If you were asked by your supervisor to make a report on Employees with the following employee IDs, E1002, E1004, E1006, and E1008 rather than using multiple ORs in your query, IN shortens the length of the query like so.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YHIw5wz5BywCBhCoXwo_cQ.png" /><figcaption>Query</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HjYxNcn66c_gsWCGtVfWpA.png" /><figcaption>Result</figcaption></figure><p>The result table displays the employee names and departments with the corresponding employee IDs.</p><p>Thank you for your audience. I am already looking forward to my next article.</p><p><em>If you have any questions, you can reach me on </em><a href="https://mobile.twitter.com/c_anyao9u/"><em>Twitter</em></a><em>. I will be more than happy to help.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ada6ed0a98be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Series: SELECT Statement and WHERE Clause (the sequel)]]></title>
            <link>https://medium.com/@anyaoguchisim30/sql-series-select-statement-and-where-clause-the-sequel-82a6591a9b59?source=rss-850411e3a2c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/82a6591a9b59</guid>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[ibm-db2]]></category>
            <dc:creator><![CDATA[Chisimdiri Anyaogu]]></dc:creator>
            <pubDate>Fri, 22 Jul 2022 09:01:30 GMT</pubDate>
            <atom:updated>2022-07-22T09:01:30.393Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-AQ0dYCmBs5wY6xN" /><figcaption>Photo by <a href="https://unsplash.com/@sunder_2k25?utm_source=medium&amp;utm_medium=referral">Sunder Muthukumaran</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Welcome back! I&#39;m sure you have had time to process and practice the concepts discussed in the previous article. Now, we&#39;ll be exploring more on SELECT statements and WHERE clauses.</p><h4>More on the SELECT statement</h4><p>By now, you should be familiar with the syntax of the SELECT statement so we would skip that this time. This article uses functions with the SELECT statement, specifically aggregate functions. Aggregate functions perform calculations on a range of values and return a single value. Aggregate functions in SQL include; SUM, COUNT, AVG, MIN, and MAX.</p><p>Let&#39;s see just how these functions work in SQL.</p><h4>Aggregate functions in action</h4><p>Take yourself as a data analyst at <em>company X, </em>and your supervisor asks for a report concerning employees at the company. She asks you to identify the count of employees, the sum of salary, the average salary, and the minimum and maximum salary at the company. With the help of a simple query, you can generate a tabular report for your supervisor. Take a look at an example of how to prepare a query on SQL for this problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w0Mg1RRyM4jCIbjUK3FEXg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i67lgPh24NQ9T-nJKOVOFA.png" /></figure><p>The above query gives the result asked by your supervisor. But taking a closer look at the results, you might wonder if this report is readable to your supervisor. At first glance, the column names in the result table might be complex for her to differentiate between columns in the result. This situation makes it a perfect scenario to introduce you to SQL Aliases. Aliases in SQL give a table or column a preferred temporary name. Let&#39;s see the syntax for using SQL Aliases.</p><pre>SELECT column_name <strong>as</strong> preferred_name<br>FROM table_name</pre><pre>SQL aliases are denoted with &#39;as&#39; then the preferred name you want to give the column in question</pre><p>With a good understanding of how to use SQL aliases, let&#39;s make the results from the previous query more readable for your supervisor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9C9gYF204uNThlFFy4qXUg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UzS3PgJsLaVSmpEEQ5GyyA.png" /></figure><p>Looks good! But wait, the AVERAGE_SALARY column isn&#39;t quite there yet; the result table would look better if we could represent the average salary without so many decimal places. To do this, you can use another SQL function called FLOOR().Which returns the nearest integer value of your result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JhWjGyq2CKwjKny3ghX6fQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QtFl0S7SbS5FmTn_Rs5aHQ.png" /></figure><p>Much better! With the above examples, you should understand aggregate functions and how to use them in SQL.</p><h4>More on the WHERE clause</h4><p>In my previous article, I did a brief introduction to the WHERE clause and did an example using a comparison predicate. This time I will show you how to do even more effective filtering with the WHERE clause. For this article, I will like to introduce you to the AND, OR and NOT operators with some examples on how to use them.</p><p>The AND operator provides a result if all conditions specified in the WHERE clause are TRUE. Let&#39;s continue with our <em>company X</em> scenario. Take, for instance. Your supervisor asks you to retrieve the names of employees with DEP_ID &quot;5&quot; and reports to a manager with MANAGER_ID of &quot;30002&quot;. A simple query can give you the result for your supervisor. Before we write the query, I&#39;ll show you how the table looks so you can better understand the task and how the result should look.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LUh5UouINdSJRycDI0sJOQ.png" /></figure><p>Now for the query.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q3VPxhI4ax-g-9aQlbRPbg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YPc2HgsyzGLrSyuxnmKDWA.png" /></figure><p>The result table shows Alice and Steve as employees who belong to DEP_ID &quot;5&quot; and report to MANAGER_ID &quot;30002&quot;.</p><p>Unlike its counterpart, the OR operator would return a result if any of the conditions specified are TRUE. Let&#39;s use the OR operator on the previous example to see if it gives the result your supervisor requires.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7jrRqoImHj4_BPflYtlDhg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aNrwWql5YamgcDWKaO_w9Q.png" /></figure><p>The result table shows Alice, Steve, Santosh and Ann because the OR operator takes the result of both employees who are either under DEP_ID &quot;5&quot; and MANAGER_ID &quot;30002&quot;.</p><p>Finally, we look at the NOT operator, which negates the result of whatever condition specified and returns the opposite. As usual, the best way to explain is with an example showing how the NOT operator works. Assume your supervisor wanted the names of employees who don&#39;t belong to DEP_ID &quot;5&quot;, the best way to run this query with the NOT operator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vTcJmakyprBPV61O0jjYEQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sf5ytC44Znqst-JWX-bAfg.png" /></figure><p>The result table shows the names of all employees asides from Alice and Steve because they are under DEP_ID &quot;5&quot;.</p><p>Thank you for your audience. Next time I will write more on the SELECT statement, and WHERE clause use cases.</p><p><em>If you have any questions, you can reach me on </em><a href="https://mobile.twitter.com/c_anyao9u/"><em>Twitter</em></a><em>. I will be more than happy to help.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82a6591a9b59" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Series: SELECT Statement and WHERE Clause]]></title>
            <link>https://medium.com/@anyaoguchisim30/sql-series-select-statement-and-where-clause-ba98b45dbe11?source=rss-850411e3a2c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba98b45dbe11</guid>
            <category><![CDATA[postgres]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[ibm-db2]]></category>
            <dc:creator><![CDATA[Chisimdiri Anyaogu]]></dc:creator>
            <pubDate>Thu, 30 Jun 2022 18:09:13 GMT</pubDate>
            <atom:updated>2022-06-30T18:09:13.848Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dxRh-B4DPQJNVHLy" /><figcaption>Photo by <a href="https://unsplash.com/@lordarcadius?utm_source=medium&amp;utm_medium=referral">Vipul Jha</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Last time, I introduced the concept of Relational Databases Management Systems and what language is used to interface with them. This time I&#39;ll be writing on how to use the SELECT statement with actual examples on tables. I will also dive into the WHERE clause and show how it works with examples on existing tables.</p><h4><strong>SELECT Statement</strong></h4><p>A quick reminder of the basic syntax for the SELECT statement;</p><pre>SELECT <em>column_name</em><br>FROM <em>table_name</em>;</pre><pre>-- <em>you can easily select all the columns in a table by adding a * right after select, like so</em></pre><pre>SELECT *<br>FROM <em>table_name</em>;</pre><p>The database I have chosen to run my SQL queries throughout this series is IBM db2 on Cloud. I will also use sample datasets from the IBM Data Science Professional Certificate course hosted on Coursera. The tables consist of employee data for a fictional company, and there is a table for Employees, Jobs, Job History and Departments. Throughout this series, we will be able to explore the other tables. Still, today we will focus on the Employees table, which contains essential information like employees&#39; names, IDs, social security numbers, DOBs, Department IDs, addresses, etc. Now here&#39;s an example of the SELECT statement in action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*56CnGB6SL6cR0MtgvP5a9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YO3CDUe14o0FJxV_vxhzMA.png" /></figure><p>Now let&#39;s try using the SELECT statement specifying the EMP_ID, F_NAME, L_NAME, and B_DATE columns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TgfqiYyzHJ4rD6z80lQ6UQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ha78V-t75GqqCqxlnXII9Q.png" /></figure><p>In the second query image, the column names are in lower case, while on the table, they are in upper case. I did this to show that SQL is case insensitive, which means every part of a SQL query can be written in lower case. By now, I am confident you should know to use the SELECT statement to query all columns or just columns of interest.</p><h4>WHERE Clause</h4><p>In my previous article, I did not cover the WHERE clause; this section would serve as an introduction. I would like you to consider the WHERE clause as a filter like in an Excel sheet. The WHERE clause sets conditions to filter rows; conditions contain column names, predicates and values. I&#39;ll explain what I mean shortly with an example, but first, let&#39;s see the syntax for the WHERE clause.</p><pre>SELECT *<br>FROM <em>table_name</em><br>WHERE <em>condition</em></pre><p>Now for an example of the WHERE clause in action using our fictional tables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4wrNLpodiw8viSBWH7pAxA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ubyVOUdIItMUMT4w9y-dSg.png" /></figure><p>The example above shows a simple SQL query using the WHERE clause; The task was to retrieve the EMP_ID, F_NAME, L_NAME, and B_DATE of employees, barring any employee with an ID of &#39;E1002&#39;. To do that, I used the WHERE clause to specify a condition. Earlier, I mentioned a condition would contain a column name, a predicate and a value. In this case, our condition has the EMP_ID column != as a comparison predicate that represents &#39;not equals to,&#39; we finally mentioned the value we wanted to omit being &#39;E1002.&#39; The result table displays every employee&#39;s details except the employee with an&#39;‘E1002&#39;.</p><p>I hope this article helps you understand how and when to use the WHERE clause. Next time I will write about using the SELECT statement and WHERE clause in other scenarios.</p><p><em>If you have any questions, you can reach me on </em><a href="https://mobile.twitter.com/c_anyao9u/"><em>Twitter</em></a><em>. I will be more than happy to help.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba98b45dbe11" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Structured Query Language: an introduction]]></title>
            <link>https://medium.com/@anyaoguchisim30/structured-query-language-an-introduction-572a64107cb8?source=rss-850411e3a2c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/572a64107cb8</guid>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[postgres]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Chisimdiri Anyaogu]]></dc:creator>
            <pubDate>Fri, 17 Jun 2022 06:32:00 GMT</pubDate>
            <atom:updated>2022-06-17T06:32:00.468Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9GvmkKyQJQ4KXpTO" /><figcaption>Photo by <a href="https://unsplash.com/@casparrubin?utm_source=medium&amp;utm_medium=referral">Caspar Camille Rubin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Introduction</strong></p><p>SQL (Structured Query Language), or Sequel commonly pronounced, is a programming language used to manage Relational Database Management Systems (RDBMS) by storing, retrieving and manipulating data. Relational Database Management Systems essentially store data in tables arranged in rows and columns; they support well-defined data structures and relationships of datasets within the databases.</p><p>SQL statements, as they are generally called, comes in three forms; Data Definition Language, Data Manipulation Languages, and Data Contol Language. Together let&#39;s chop down these types of SQL statements to see how, when and where they are used. SQL is relatively easy to understand and pick up.</p><p><strong>Data Definition Language</strong> —CREATE, ALTER, DROP and TRUNCATE. These statements define and change the structure of tables in a database. Note, DDLs can also change other database objects like Views, Schemas, and Indexes but let&#39;s stick with tables for now.</p><p>CREATE, like the word&#39;s actual meaning, allows us to create tables in our dataset. The basic syntax for the CREATE statement is as follows;</p><pre>CREATE TABLE table_name(<br>column_1 datatype constraint<br>column_2 datatype constraint</pre><pre>PRIMARY KEY (column_name)<br>);</pre><p>ALTER allows users to add, drop or modify columns in an existing table. It is also used to add and drop constraints on a current table. Constraints in SQL are rules used to specify the rules for the data in the table. For example, the NOT NULL constraint makes sure NULL values can&#39;t be present in the particular column in question. The syntax for the ALTER statement is as follows;</p><pre>-- alter statement with add<br>ALTER TABLE table_name<br>ADD column_name datatype;</pre><pre>-- alter statement with drop</pre><pre>ALTER TABLE table_name<br>DROP column_name;</pre><pre>--alter statement with modify</pre><pre>ALTER TABLE table_name<br>MODIFY COLUMN column_name datatype;</pre><p>DROP deletes a table in the database or the database itself. It also deletes the Views, Schemas and Indexes in the database. Be careful when using the DROP statement because the DROP statement cannot roll the effects back. The syntax for the DROP statement is as follows;</p><pre>DROP TABLE table_name;</pre><p>TRUNCATE, similar to DROP, deletes the data inside a particular table. It upholds the structure of the table. Running a TRUNCATE statement means less risk of deleting essential objects in the database. The syntax for the TRUNCATE statement is as follows;</p><pre>TRUNCATE TABLE table_name;</pre><p><strong>Data Manipulation Language</strong> — SELECT, UPDATE, INSERT and DELETE are used to manipulate table rows and columns. DMLs allow you to manage the exact output of a table just the way you want to see it.</p><p>The SELECT statement is the most used statement by anyone SQL user. It retrieves desired data in tables based on their column names. There are so many ways to use the SELECT statement, but its most straightforward form comes in the syntax below;</p><pre>SELECT column_name<br>FROM table_name;</pre><pre>-- you can easily select all the columns in a table by adding a * right after select, like so</pre><pre>SELECT *<br>FROM table_name;</pre><p>UPDATE command modifies the data present in the rows of a table. The UPDATE statement works together with the WHERE clause, which allows us to specify what condition must be met for that update to take effect. Without the WHERE clause, you might change all the rows in the table with the UPDATE statement alone. The basic syntax for the UPDATE statement is as follows;</p><pre>UPDATE table_name<br>SET column_1 = value1, column_2 = value2<br>WHERE set_condition;</pre><p>INSERT allows users to add data to an existing table. Note that the INSERT statement will not run if you do not provide a value for every column in the table. The basic syntax for the INSERT statement is as follows;</p><pre>INSERT INTO table_name( column_1, column_2, ... column_n)<br>VALUES(value_1, value_2, ... value_n);</pre><pre>-- you can also insert values without specifying the columns, but make sure the values are in the correct order</pre><pre>INSERT INTO table_name<br>VALUES(value_1, value_2, ... value_n);</pre><pre>-- to insert into multiple rows can be done as follows</pre><pre>INSERT INTO table_name( column_1, column_2, ... column_n)<br>VALUES(value_1, value_2, ... value_n),<br>      (value_1, value_2, ... value_n),<br>      (value_1, value_2, ... value_n);</pre><p>DELETE allows users to delete one or all the records in a table. Just like the UPDATE statement, DELETE works best with the WHERE clause. Without specifying a delete condition, you would remove all the rows in the table. The syntax for the DELETE statement is as follows;</p><pre>DELETE FROM table_name<br>WHERE set_condition;</pre><p><strong>Data Control Language</strong> — COMMIT, ROLLBACK. The COMMIT statement permanently saves changes made to a table/database. Once COMMIT is run, the previous version of that table/database is irretrievable. An example of COMMIT is as follows;</p><pre>DELETE FROM table_name<br>WHERE set_condition;</pre><pre>-- we use commit to save the changes made by the previous code</pre><pre>COMMIT</pre><p>While the ROLLBACK statement is used to undo changes made to tables/databases that have not yet been saved, note that the ROLLBACK cannot reverse the effects of a COMMIT. An example of ROLLBACK is as follows;</p><pre>DELETE FROM table_name<br>WHERE set_condition;</pre><pre>-- we use the rollback to reverse the effects of the previous code<br>ROLLBACK</pre><p><strong>Conclusion</strong></p><p>SQL is not case sensitive, so all of the examples above can appear in the lower case, but to let your code appear in an easier-to-read format, it is best practice to use uppercase letters. I hope this article helped introduce you to the exciting language called Sequel. Next week I will write more about the SELECT statement with examples on actual tables.</p><p><em>I hope you enjoyed this read and that you were able to take something away because I tried my best to tailor it toward beginners.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=572a64107cb8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started In a Data Career — part two]]></title>
            <link>https://medium.com/@anyaoguchisim30/getting-started-in-a-data-career-part-two-7aa07a39f99b?source=rss-850411e3a2c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/7aa07a39f99b</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[r-programming]]></category>
            <category><![CDATA[pandas]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Chisimdiri Anyaogu]]></dc:creator>
            <pubDate>Wed, 20 Apr 2022 11:32:50 GMT</pubDate>
            <atom:updated>2022-04-20T11:32:50.275Z</atom:updated>
            <content:encoded><![CDATA[<h3>Getting Started In a Data Career — part two</h3><p><strong>Selecting the tools that fit your data needs</strong></p><p>Once you can complete the course you used to learn about data analytics or data science, it&#39;s time to develop your skills in the tools relevant to your chosen field. What I&#39;m saying is that the tools needed by a data scientist are different from the tools used by a business analyst, they might be the same in some cases, but the level at which you might be able to make use of some tools might differ in depth from other roles. For example, A data scientist will require a strong knowledge of Python and R, while a business analyst might not even need to use any of those scripting languages to meet the requirements of their jobs. So research on tools primarily used in your desired field and try to master them, do projects, watch videos, read books, anything to increase your knowledge on the ins and out&#39;s of that tool. A great way to find out what tools you might need is to go on LinkedIn and search for your desired job role posted by different organizations and look under the requirements of those jobs.</p><p><strong>Building a data portfolio</strong></p><p>Although not compulsory, you will need to build a portfolio that depicts your skill level in the tools required for the job. There are several ways to create portfolios. I started by pasting my projects on Github, a community for software developers to promote collaboration on projects. But this method might not appeal to recruiters because you can’t assume they all know how to use Github or even have an understanding of the codes contained in your project. The following method appeals more to recruiters. Although it requires you to have some knowledge of web development (HTML, CSS, and Javascript), you create a portfolio website, which contains details on your projects and links to the actual project; here are a couple of portfolio projects from a <a href="https://ipinmi.github.io/">colleague</a> and <a href="https://chisim30.github.io/DataPortfolio.github.io/">myself</a>.</p><p><strong>The place of communities</strong></p><p>You might be thinking, why would I need to belong in a community or a fellowship? As a junior in the data field, it is essential to surround yourself with like-minded individuals with whom you can collaborate on projects and engage in data conversations. A trendy community for data is Kaggle, a website for sharing ideas, getting inspired, competing against other data scientists, learning new information and coding tricks, and seeing various examples of real-world data science applications. Although Kaggle is not the only place to find data-minded individuals, you can find communities on Linkedin. One I belong to is <a href="https://www.linkedin.com/groups/13962674/">People around the world taking the Google Data Analytics Professional Certificate</a>. While on Twitter, I am a member of <a href="https://twitter.com/i/communities/1493622797523984397">All About The Data</a>. I’m confident the content on these communities will appeal to you and your needs.</p><p><strong>Applying for your first job in data</strong></p><p>After taking several courses, practicing tools, and building connections with communities, it is time to start applying for your first job in data. Your first job has a high chance of being an internship because I don’t think employers can hire someone out the gate with no experience and little to no understanding of their business process. But who knows? You can get lucky and land a permanent job in data. Personally, my advice is to narrow your search down to internships or entry-level roles in your chosen field and spend time understanding the position and the business requirements. In time you will be ready to land your first permanent job as a data nerd. This road you are about to take involves long hours and dedication, so find a way to make it fun for you because the fact that you find fun in what you are doing makes you want to do it even in frustrating times. I hope this article has been a great read and I have helped spark the start of your new career interest.</p><p><em>You can connect with me on </em><a href="https://www.linkedin.com/in/chisimdiri-anyaogu-a44848187/"><em>Linkedin</em></a><em> or send me a direct message on </em><a href="https://mobile.twitter.com/c_anyao9u/"><em>Twitter</em></a>, and I<em> would be more than happy to answer any questions.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7aa07a39f99b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started In a Data Career — part one.]]></title>
            <link>https://medium.com/@anyaoguchisim30/getting-started-in-a-data-career-part-one-fc73da218caa?source=rss-850411e3a2c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc73da218caa</guid>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Chisimdiri Anyaogu]]></dc:creator>
            <pubDate>Mon, 18 Apr 2022 11:41:46 GMT</pubDate>
            <atom:updated>2022-04-20T11:33:57.481Z</atom:updated>
            <content:encoded><![CDATA[<h3>Getting Started In a Data Career — part one.</h3><p><strong>Introduction</strong></p><p>I’m guessing you are here because you are searching for a new career path with many opportunities and growth. Then this might be the thing for you because, according to the Indeed editorial team in an article on the <a href="https://www.indeed.com/career-advice/finding-a-job/best-technology-jobs-of-the-future">14 Best Technology Jobs of The Future</a>, careers in data and analytics are on the rise. The expansion of [internet-of-things] and digital connections to everything generates massive data volumes, which firms want to study and comprehend for optimization and advantage. A data career is worth diving into, but you might be asking yourself, “How do I get started?”. That is what this article aims to address.</p><p><strong>Careers in Data</strong></p><p>Once you have completed your research on data and its many uses, it is now time to select a path that sparks your interests. There are numerous career paths to choose from involving data, such as; Data Analyst, Data Scientist, Data Engineer, Machine Learning Engineer, Business Analyst, Data Architect, and Data Specialist, among others. Selecting the right career from the many involving data might also be tricky. I would recommend researching the particular role that piques your interest and find out what you would require to be successful in that role. Just a quick note, to be successful in the field of data and analytics, having a quantitative and analytic mindset is paramount because daily, you would be delving into problems that require you to break them down piece by piece to come up with a solution. Making the right mindset is key to genuinely succeeding in this field. Lastly, I suggest looking through different YouTubers that focus on creating content on Data. A few pages helped me on my data journey;<a href="https://www.youtube.com/c/AlexTheAnalyst"> Alex The Analyst</a>,<a href="https://www.youtube.com/c/LukeBarousse"> Luke Barousse</a>,<a href="https://www.youtube.com/c/TheWorkLifeMan"> The Work-Life Man</a>, and<a href="https://www.youtube.com/c/SundasKhalid"> Sundas Khalid</a>. I’m confident these pages would help you figure out what path would be most interesting to you.</p><p><strong>Courses to aid you on your journey</strong></p><p>After picking the best career in data for you, the next step would be to select a course or several courses that would teach you the tools and skills required to succeed. I would suggest looking into online learning platforms like<a href="https://www.coursera.org/"> Coursera</a>,<a href="http://www.udemy.com/"> Udemy</a>,<a href="http://www.edx.org/"> Edx</a>,<a href="http://www.udacity.com/"> Udacity</a>,<a href="http://www.pluralsight.com/"> Pluralsight</a>, and<a href="https://www.linkedin.com/learning"> Linkedin Learning</a>, among many others, to obtain the required skills.</p><p><strong>Google Data Analytics</strong>: I started with the Google Data Analytics Professional Certificate specialization hosted on<a href="https://www.coursera.org/professional-certificates/google-data-analytics?skipBrowseRedirect=true"> Coursera</a>, broken down into phases of data analytics pioneered by Google, namely, <strong>Ask, Prepare, Process, Analyze, Share and Act</strong>. The specialization makes up eight courses based on the phases of data analytics. Each lesson introduces a new concept or builds on knowledge from previous classes. The course material is in digestible chunks that are easy to understand, especially for beginners just getting into the data field. Tool wise, the material starts with getting you to think like a data analyst because the right mindset is the essential tool in this field. Next, it teaches dealing with data in Google Sheets (Google counterpart of Microsoft Excel). Google Sheets is primarily for dealing with low amounts of data; to deal with more extensive data, SQL (Structured Query Language) is introduced and taught to an advanced level. In my opinion, Google did a good job learning Sheets and SQL. By the end of the specialization, I could quickly write basic queries. Google and Coursera issue a certificate upon completion of this specialization. The cost for a Coursera subscription is $39 a month, There is also an option of applying for financial aid for those who can’t afford the specialization.</p><p><strong>IBM Data Science</strong>: I wasn’t satisfied with being a data analyst. After building a portfolio and completing an internship as a Data Analyst, I decided I wanted more which led me to take the IBM Data Science specialization hosted on<a href="https://www.googleadservices.com/pagead/aclk?sa=L&amp;ai=DChcSEwiy4oTU5vr2AhXJstUKHcOxAo4YABAAGgJ3cw&amp;ae=2&amp;ohost=www.google.com&amp;cid=CAESbOD2gh7cVQcZy_1938KFIevyS1tGq7hudDJS0qh0wAoISaS36CofaMKWbJBMnI4jUMdjWMrBMNIDeB0XaIlt4j86EbwUjh2-cn2ZW_v0DeKyxiuYxVN92teWKngVji8MhrxEpuVSBZxVmqkirw&amp;sig=AOD64_1jetkiZXQMasVULCZwBdYH0G-ZqA&amp;q&amp;adurl&amp;ved=2ahUKEwiNq_vT5vr2AhX-8rsIHbwXBecQ0Qx6BAgCEAE"> Coursera</a> and<a href="https://www.edx.org/professional-certificate/ibm-data-science"> Edx</a>. The IBM Data Science specialization helps those who wish to study and develop career-relevant skills, tools, and a portfolio of projects to get a competitive advantage during the entry-level job search. Students who complete the course are better prepared for this job, proving their ability to address real-world problems and effectively apply diverse data science approaches. This specialization is divided into ten classes with an expected completion time within a year. The first three courses focus on introducing you to the world of data science, equipping you with the knowledge of the tools and methods used in data science. The remaining courses cover topics like; Python for Data Science, Accessing databases with Python, Python for visualization, Machine learning with Python, and finally, an Applied data science capstone project. Python is the primary tool used in this specialization. And it will be taught with Jupyter notebooks, an open-source web application that allows data scientists to create and share documents that integrate live code, equations, computational output, visualizations, and other multimedia resources, along with explanatory text in a single document. I would recommend beginners in the Data Science field looking to learn Python for data science to take this specialization from IBM because it offers so many hands-on lab exercises to build on the concepts covered in the videos. In this specialization, SQL has its course titled, Databases and SQL for Data Science with Python. Comparing SQL from Google Data Analytics and IBM Data Science, IBM comes out top. After each teaching, you are given hands-on labs with questions ranging from easy to challenging difficulty levels, giving you a chance to practice and improve your skills taught in the lectures. IBM and Coursera issue a certificate to you upon completion of the specialization. The cost for a Coursera subscription is $39 a month, There is also an option of applying for financial aid for those who can’t afford the specialization.</p><p>Please find the link to <strong>part </strong><a href="https://medium.com/@anyaoguchisim30/getting-started-in-a-data-career-part-two-7aa07a39f99b"><strong>two</strong></a> of this article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc73da218caa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>