<?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 Kristina Paseru on Medium]]></title>
        <description><![CDATA[Stories by Kristina Paseru on Medium]]></description>
        <link>https://medium.com/@kristinapaseru?source=rss-3403e59dd606------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*QWqo7ncYqIZVpeO1.</url>
            <title>Stories by Kristina Paseru on Medium</title>
            <link>https://medium.com/@kristinapaseru?source=rss-3403e59dd606------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 15 Nov 2026 12:45:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kristinapaseru/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[Python- Chapter 7 | by Kristina Paseru]]></title>
            <link>https://medium.com/@kristinapaseru/python-chapter-7-by-kristina-paseru-65fa3b949ef7?source=rss-3403e59dd606------2</link>
            <guid isPermaLink="false">https://medium.com/p/65fa3b949ef7</guid>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[business-analysis]]></category>
            <category><![CDATA[analysis]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Kristina Paseru]]></dc:creator>
            <pubDate>Fri, 19 Jun 2020 18:48:07 GMT</pubDate>
            <atom:updated>2020-06-19T18:48:07.268Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*7hFAXSqYekM7JbRZma2zUw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*23wpkbFTrkOOHxmtB94DmA.png" /></figure><p>Hey guys, what’s up new ? Anyway, on this section we are focus on how is a SET used in Python. So set is a collection which is unordered and unindexed. In python, set is written with curly brackets.</p><p>Step for creating a set :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*SyptjTbmwHwLXp8hv6VKSg.png" /></figure><h3>Access Items</h3><p>Loop through the set and prints the values :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*C8NnZvD1BZKCsBGNajUGrA.png" /></figure><h3>Check If Item Exists</h3><p>Option 1 :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/322/1*B37nsCX4LMwj7QXARt4fIA.png" /></figure><p>Option 2 :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*0MD7gNxvUQbOMxGXM4FW0Q.png" /></figure><h3>Add Item</h3><p>If you add only one item :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/1*vizEybZdRE9LR8-AugEg1w.png" /></figure><p>If you add more than 1 item :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*XdRUTmg8PSqGTbKgTjefxw.png" /></figure><h3><strong>Count Item On a Set</strong></h3><p>Example :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*l3hIzI8bADzPH4aZoVmM_A.png" /></figure><h3>Remove Item</h3><p>Example :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*piUUjF9M2GK8DDdHiwj1yg.png" /></figure><h3>Join Two Items</h3><p>Example :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*hlzjye7GhVebEfJ9HghVJg.png" /></figure><h3><strong>Insert a Set into Other Set</strong></h3><p>Example :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*p-2BOnuAJBhP6N_6RM4XWQ.png" /></figure><p>On this example, I insert the items on b into a.</p><p>Okay friends, so that’s all for this section. See you on the next chapters. Thank you :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65fa3b949ef7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL-Part 16 | by Kristina Paseru]]></title>
            <link>https://medium.com/@kristinapaseru/sql-part-16-by-kristina-paseru-62d05c281571?source=rss-3403e59dd606------2</link>
            <guid isPermaLink="false">https://medium.com/p/62d05c281571</guid>
            <category><![CDATA[accounting]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Kristina Paseru]]></dc:creator>
            <pubDate>Fri, 19 Jun 2020 16:54:06 GMT</pubDate>
            <atom:updated>2020-06-19T16:54:06.069Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*kapbaePNQSJAVkXVvdR88g.png" /></figure><p>Many times, we need to work on more than 1 tables of data. Means, table one needs to connect with other tables. In SQL, we called it joining. So, on this section, we are going to answer some questions regarding to joining table. So we have tables like below :</p><p>Bonus table :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/342/1*y5PybBt5hVGFAxXK45z6Aw.png" /></figure><p>Title table :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/1*ZSPh3onuc532lJ0GB1YH7g.png" /></figure><p>Employee table :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*N8tThMNA8M_zCElOBuw0fQ.png" /></figure><p>Questions :</p><ol><li>Select the employee(s) that got salary</li><li>List the employees along with their title</li><li>List the employees who got bonus in 2016</li><li>List the employees who didn’t get bonus</li></ol><p>Answer :</p><ol><li>Select the employee(s) that got salary</li></ol><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*qGyETgftTgnoZgaI8fbOyQ.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/1*cvvNwa4tnpEuLd7WtDA1mw.png" /></figure><p>2. List the employees along with their title</p><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/322/1*-ZnnFr-AZ8RvNx7zVy4rMg.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*KSzepBDAsehYCTNW6q4Jmw.png" /></figure><p>3. List the employees who got bonus in 2016</p><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/316/1*gXKpPHwACKDqPo5138nlCw.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*MLKhMDp1fg39zky6qEx3EQ.png" /></figure><p>4. List the employees who didn’t get bonus</p><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*65S8Wo_Swngrj4sGl7B2tg.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*uYAhiGnDowyeMKnkIBkhWg.png" /></figure><p>Okay, so this section will be end up here. See you all on the next parts. Thank you :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62d05c281571" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python- Chapter 6 | by Kristina Paseru]]></title>
            <link>https://medium.com/@kristinapaseru/python-chapter-6-by-kristina-paseru-23dabc3b7d17?source=rss-3403e59dd606------2</link>
            <guid isPermaLink="false">https://medium.com/p/23dabc3b7d17</guid>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[business-analysis]]></category>
            <dc:creator><![CDATA[Kristina Paseru]]></dc:creator>
            <pubDate>Thu, 18 Jun 2020 17:11:48 GMT</pubDate>
            <atom:updated>2020-06-18T17:11:48.012Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*7hFAXSqYekM7JbRZma2zUw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*bOkabl5VLs0CVozyEY54gQ.png" /></figure><p>Have you familiar withTuples ? I gues you have not if you are reading this writing. So on this chapter, we are going to discuss about Tuples. How are tuples used in Python. Okay, in order to make the time efficient, let’s start :</p><p>A tuple is a collection which is ordered and unchangable. In ptyhon, tuples are written in round brackets.</p><p>Example 1 :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*0AS30yUwjblESubVqFkWcQ.png" /></figure><p>Here, we are creating a tuple.</p><p>Example 2 :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*VbdV1PzBa3Ld9t9lAw6qYQ.png" /></figure><p>On this, we are select the second item on m tuple.</p><p>Example 3 :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*1LesImWzI5g4dzPSG6kiaw.png" /></figure><p>On this example, I am printing the last item on m tuple.</p><p>Example 4 :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*AkJPj9mbirxSngUAgzj0kQ.png" /></figure><p>Here, we are choose items that range from second to fourth.</p><h3><strong>Change Tuples Values</strong></h3><p>Once a tuple is created, you can not change its values. Tuples are unchangeable, or immutable. But don’t worry, there is an alternative way to do that. You can convert the value into a list, change the list, and convert the list back into a tuple.</p><p>Example :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*oLwH4pYuOlC_vNqmbWHQLA.png" /></figure><p>On this example, at first m, we can not make a change so that we need to convert it into list x first. after that, we select the item (second) that we want to change.</p><h3><strong>Loop Through A Tuple</strong></h3><p>Example :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*bJvxQ81X-kNiME0CuaIYZg.png" /></figure><h3>Check If Item Exists</h3><p>Example :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*NphS5K6OJJl60xgKqtK14g.png" /></figure><h3><strong>Remove Items</strong></h3><p>Example :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*oFDWo1HPQFdvASO8eTlRyA.png" /></figure><h3>Join Three Tuples</h3><p>Example :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*X8yJMkpFAk6Cpb9_3cnfSw.png" /></figure><p>Okay guys, so that is all for this section. Thank you, I hope this is usefull for you. See you on the next chapters. :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23dabc3b7d17" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL-Part 15 | by Kristina Paseru]]></title>
            <link>https://medium.com/@kristinapaseru/sql-part-15-by-kristina-paseru-8d81d58d6e77?source=rss-3403e59dd606------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d81d58d6e77</guid>
            <category><![CDATA[business-analysis]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[finance-analyst]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Kristina Paseru]]></dc:creator>
            <pubDate>Thu, 18 Jun 2020 14:01:33 GMT</pubDate>
            <atom:updated>2020-06-18T14:01:33.714Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*kapbaePNQSJAVkXVvdR88g.png" /></figure><p>Hi guys, actually this part should be 16 but because yesterday I accidently erased it. So sad because already wrote it perfectly but nothing to do because it’s already gone so just let go it with happy.</p><p>Okay guys, so on this moment we are going to continue the exercise on last part. So, below is the table that we have :</p><p>Employee table :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*OmQ3BwJqdZCakwp_1Q1nGw.png" /></figure><p>Question :</p><ol><li>How many employees on each department? Ordered it from the top to buttom</li><li>Take out the employees that join in 2024 and order it from the last to the old year</li><li>Select the employees that join in February</li><li>Who is the top gainer ?</li><li>Who is the buttom gainer ?</li></ol><p>Okay guys, so those are the questions that we are going to answer. Let’s get started :</p><ol><li><strong>How many employees on each department? Ordered it from the top to buttom</strong></li></ol><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*NHd2haQzT_9os0_O9-3WNQ.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/249/1*UU0YwCNNNml_o6a3sYx1Sg.png" /></figure><p>On the output, we then can know the number of each employee on each department</p><p><strong>2. Take out the employees that join in 2024 and order it from the last to the old year</strong></p><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/257/1*RxfN4aeGwmzDxf0kHHK59Q.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*nWwv7iBAMfEmxpynI-TCdg.png" /></figure><p>As we can see that all information on Employee table is</p><p><strong>3. Select the employees that join in February</strong></p><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/241/1*WKUUaLp6zMUS9KYufsJQRg.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*ZR6INgGEv7TF2FUtSloODw.png" /></figure><p>As the table showed that only employees that joined in February that selected.</p><p><strong>4. Who is the gainer ?</strong></p><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/226/1*hA8zJSq0DsLpNUthwjMrGQ.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*e-RHcUnmVIA-Nb-V-2f_jg.png" /></figure><p>So the top gainer is Kristina Paseru.</p><p><strong>5. Who is the buttom gainer ?</strong></p><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/221/1*PbDIKpfbXph8qJE2mRmptg.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*lFgchGqDopdGQgwz4DAGYQ.png" /></figure><p>Okay friends, so this section will be end up here. Another exercises will be coming on the next parts. Thank you :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d81d58d6e77" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python- Chapter 5 | by Kristina Paseru]]></title>
            <link>https://medium.com/@kristinapaseru/python-chapter-5-by-kristina-paseru-382c7f9cdb0e?source=rss-3403e59dd606------2</link>
            <guid isPermaLink="false">https://medium.com/p/382c7f9cdb0e</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[business-analysis]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Kristina Paseru]]></dc:creator>
            <pubDate>Sat, 13 Jun 2020 20:50:42 GMT</pubDate>
            <atom:updated>2020-06-13T20:50:42.921Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*7hFAXSqYekM7JbRZma2zUw.png" /><figcaption>image source : codepolitan.com</figcaption></figure><p>Hey everyone, last part about this subject discussed about OPERATORS used in Python. On this chapter, I am going to share about COLLECTIONS in Pyhton.</p><p>In Python, there are four collection data types, that is :</p><ul><li>List : a collection which is ordered and can be changed. It allows duplicate members.</li><li>Tuple : a collection which is ordered and unchangeable. It allows duplicate members.</li><li>Set : a collection which is unordered and unindexed. Duplicate members are allowed</li><li>Dictionary : a collection which is unordered, changeable and indexed. No duplicate members.</li></ul><blockquote><strong>List</strong></blockquote><p>Example 1 (creating list) :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*DlMYjOnFTepIKlQ1o4NV0A.png" /></figure><p>Example 2 (Access item) :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*Lz509ax2PF6uUluL-Ll-qw.png" /></figure><p>Example 3 (Negative indexing) :</p><p>Index -1 means refer to the last item, index -2 means refer to the second last item.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/1*lfoitdPfc04NC_G9exBIMA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*lv5ivW47uSup5WbVluU5YA.png" /></figure><blockquote><strong>Change item value</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*VexT-3GIB9Da2RXA9-A0qw.png" /></figure><blockquote><strong>Loop through a list</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*fjIIcajI88Q8qQe7XZepvw.png" /></figure><blockquote><strong>Check if item exists</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/1*p98bvi8UuuGLnMHFuBrAMQ.png" /></figure><blockquote><strong>List length</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/409/1*0j-jAKhaB6Wq_U-kG5bYjg.png" /></figure><blockquote><strong>Append item</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*ejNK7Mt4k5pRnma2-ddTug.png" /></figure><blockquote><strong>Insert item into third position</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*wGIuNCDDOWfVTA-aZI46jQ.png" /></figure><blockquote><strong>Join two lists</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/1*xR-DmJYviPegflM2F8ujNg.png" /></figure><blockquote><strong>The list constructor</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*V8UlCBkcp_iwTe0AIXgpIg.png" /></figure><p>So that’s all for this section guys, see you on the next parts. Thank you :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=382c7f9cdb0e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL- Part 14 |by Kristina Paseru]]></title>
            <link>https://medium.com/@kristinapaseru/sql-part-14-by-kristina-paseru-de74212d1e9?source=rss-3403e59dd606------2</link>
            <guid isPermaLink="false">https://medium.com/p/de74212d1e9</guid>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[business-analysis]]></category>
            <dc:creator><![CDATA[Kristina Paseru]]></dc:creator>
            <pubDate>Sat, 13 Jun 2020 18:30:54 GMT</pubDate>
            <atom:updated>2020-06-13T18:30:54.635Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*kapbaePNQSJAVkXVvdR88g.png" /><figcaption>image source : allvectorlogo.com</figcaption></figure><p>Hey guys, how is your day ? I hope each of us have a great day. On this section, as I mentioned in the previous post that after understanding the definition and functions of commands in SQL, we are going to move to practiceable questions as an exercises.</p><p>Related to the last section about this topic, I am going to continue to make some questions and answer that on this part. Let’s started :</p><ol><li><strong>Write a query to order the employee ranging from biggest to smallest- salary</strong></li></ol><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*fYKKUpv1AceEFoUhOIa_Pw.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*D1FMZfeKymaU1JYDiWH10Q.png" /></figure><p><strong>2. Write a query to list the employee that earns biggest salary.</strong></p><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*NB5SkTk1Mw6-FyOpKVqqxw.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*Jl1-t1RUWQ3GSMqruLOj2g.png" /></figure><p><strong>3. Write a query to list the employee that earns the smallest salary.</strong></p><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*eKYnWCUy8M33iVUo3aa4Iw.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*3OYhj81Womfmi4gHSG4DmQ.png" /></figure><p><strong>4. Write a query to list two buttom employees based on salary.</strong></p><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/311/1*vhmJLUb0wKorYVGTSlyMyw.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*pA-c7f3Zlmv1xKzD8A3nMw.png" /></figure><p><strong>5. Write a query to sum salary paid for each department and order it from the biggest to the lowest.</strong></p><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*DbHCieEKlMiX-i1u0-aE6w.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/283/1*UUjYIgkx-a417BTErw0C6Q.png" /></figure><p>Okay guys, so this section will be ended up here and to be continued on the next sections. See you and thank you :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de74212d1e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL-Part 13 | by Kristina Paseru]]></title>
            <link>https://medium.com/@kristinapaseru/sql-part-13-by-kristina-paseru-dd936409f969?source=rss-3403e59dd606------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd936409f969</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[business-analysis]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <dc:creator><![CDATA[Kristina Paseru]]></dc:creator>
            <pubDate>Fri, 12 Jun 2020 20:49:50 GMT</pubDate>
            <atom:updated>2020-06-12T20:49:50.007Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*kapbaePNQSJAVkXVvdR88g.png" /><figcaption>image source : allvectorlogo.com</figcaption></figure><p>Hi friends, finally we meet here again after a week I did not post anything here due to work on some urgent and crucial projects. Last section about this topic, we did some exercises. We are going to do exercise as well, but for different cases. Let’s get started :</p><p>So, here we are going to learn about how to create table and how to insert data into the created tables. Besides, we are going to answer some questions regarding to the provided tables. Firstly, we are going to create some related tables as shown below :</p><blockquote><strong>Write a query to create table Employee :</strong></blockquote><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*pINbjHd-oILN3884R7NPgA.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*B1jyPL4R8KDGl71LqPwjEg.png" /></figure><blockquote><strong>Write a query to create a table Bonus :</strong></blockquote><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*q5f-4Cs6HTpoV2YIn6YPCQ.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/1*xSum15i5RyAwmO3Pxdrdcw.png" /></figure><blockquote><strong>Write a query to create table Title :</strong></blockquote><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*ksLywOy7ULKapfi4nMbx6w.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*ljaCGVTylpj4jCLigv5C1Q.png" /></figure><p>As we can see that three related tables already created. So now, we are going to answers some questions related to these 3 tables :</p><ol><li>From the table Employee, write a query to fetch “first_name” using the alias name as Employee_name.</li></ol><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/331/1*HI-JqDIkJFZ4axzQNBK7kQ.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/134/1*NsQW9IbbpJYORubnhKHShw.png" /></figure><p>2. Write a query to fetch “First_name” employee table in upper case.</p><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/233/1*Fvg_cTZGZczMAdjPVwXAZw.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/154/1*UVfvVz0wPNkzTxZ0Lcs0yA.png" /></figure><p>3. Write a query to fetch unique value of Department from Employee table.</p><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/1*43p8QiYBG3-bXtJz27moiQ.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/120/1*wOJ6m7_scSBcbP42qQuW8Q.png" /></figure><p>4. Write a query to print the first four characters of first_name from Employee table.</p><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/1*dpRdaKPIlrcMm3C2t1cSug.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/223/1*p1kkowLDzM78BTlLGf3Ksw.png" /></figure><p>5. Write a query to select employee_id and first name and then order the first_name from A to Z alphabet.</p><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/1*quIzWHhm5frOz7z7CNw6rQ.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*Ex456pxo7Lluyw5XJ0qVxQ.png" /></figure><p>Okay guys, so this section will be ended up here and we are going to continue this topic on the next sections. Please stay tuned and thank you :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd936409f969" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python-Chapter 4 | by Kristina Paseru]]></title>
            <link>https://medium.com/@kristinapaseru/python-chapter-4-by-kristina-paseru-244ff4327783?source=rss-3403e59dd606------2</link>
            <guid isPermaLink="false">https://medium.com/p/244ff4327783</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[business-analysis]]></category>
            <dc:creator><![CDATA[Kristina Paseru]]></dc:creator>
            <pubDate>Thu, 04 Jun 2020 19:44:46 GMT</pubDate>
            <atom:updated>2020-06-04T19:44:46.506Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/860/1*7hFAXSqYekM7JbRZma2zUw.png" /></figure><p>Hi everyone, how is everything going? Anyway, we already at June and it seems that many of us still work from home, especially we in Indonesia where the virus started to attack us early on last March. But it does not meant that such kind of issue will anticipate us to be productive.</p><p>On this part, I am going to share to you about OPERATORS in Python. Popular operator that we know is addition (+), subtraction (-), multiplication (*), and Division (/). But hey, there are more operators beside those that already mentioned.</p><p>So OPERATORS are used to perform operations on variables and values. In python, operators are divided into some groups, that is :</p><ul><li>Arithmetic operators</li><li>Assignment operators</li><li>Comparison operators</li><li>Logical operators</li><li>Identity operators</li><li>Membership operators</li></ul><p>Let’s go thru those one by one.</p><blockquote><strong>Arithmetic operators</strong></blockquote><p>Arithmetic operators are used with numeric values to perform common mathematical operations. this include +, /, -, x. For instance :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/397/1*Nt6ZtM24V70Ph31LuoYelg.png" /></figure><blockquote><strong>Assignment operators</strong></blockquote><p>Assignment operators are used to assign values to variables. Let’s have a look for the examples below :</p><p>Example 1 :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/1*sYftG2IrvNCKnCbTJ9vR5g.png" /></figure><p>We can see that x=x+3 is same with a +=3, where x and a have the same value.</p><p>Example 2 :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/333/1*GjzjoUnFVP7wYqEuBDT_Bw.png" /></figure><p>So on the example 2, we can see that y -=5 is equal to x=x-5 where x and y have the same value.</p><blockquote><strong>Comparison operators</strong></blockquote><p>Comparison operators are used to compare two values. For instance :</p><p>Example 1 :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/276/1*cVUdR1MvPoirDChEgWq0xw.png" /></figure><p>On the example above, because a is not equal to b so that the result is False.</p><p>Example 2 :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*LW8us3i7Jtp3E8QZPqPYNg.png" /></figure><p>Meanwhile,the result above is True because value a is equal to value b.</p><p>Example 3 :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/283/1*EQBU9DkEnK7-VRMVWflIQA.png" /></figure><p>The result is False because a is smaller than b.</p><p>Example 4 :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/271/1*ntuacJXYFUpMse6rKqpypw.png" /></figure><p>The result is True because value a is greater than b. So, actually this applicable to another comparison operators, the result is True or False is depent on the condition.</p><blockquote><strong>Logical operators</strong></blockquote><p>Logical operators are used to combine conditional statements. The examples can be seen below :</p><p>Example 1 :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/325/1*_APL5HBYy3wxjWTrd2fvEA.png" /></figure><p>The result is False because 13 is greated than 12, other words one of the statement is is not true. So both statement will be True only if both statements are true as below :</p><p>Example 2 :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*3da1jC0Eeq_nWHJP0p5GKg.png" /></figure><p>It is different with OR. The result could be true if there is one statement that met the condition as shown below :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*fK5_zDpd-nBNQ9GmKhMT9w.png" /></figure><blockquote><strong>Identify Operators</strong></blockquote><p>Identify operators are used to compare the objects, not if they are equal, but if they are actually the same object, with the same memory location. For instance :</p><p>Example 1 :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/307/1*8eV2r1nh-CidUo4eeqU54A.png" /></figure><p>The result is true because the value of x and y is equal.</p><p>Example 2 :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*0ZMrQ_c0YxYc7ewD_bUY-w.png" /></figure><p>The result if True because x and y is not equal.</p><blockquote><strong>Membership operators</strong></blockquote><p>Members operators are used to test if a sequence is presented in an object. For instance :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/1*gCQVJhEq4MM2DHN6KBZnNA.png" /></figure><p>The result is True because there 7 in sequence y.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/398/1*AzEFIY77ea8NT8jKD1VC3A.png" /></figure><p>The result is True because Mango indeed is not present in y.</p><p>Okay guys, so I will stop this part here and will see you on the next sections. Thank you :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=244ff4327783" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL-Part 12 | by Kristina Paseru]]></title>
            <link>https://medium.com/@kristinapaseru/sql-part-12-by-kristina-paseru-41991b1b714c?source=rss-3403e59dd606------2</link>
            <guid isPermaLink="false">https://medium.com/p/41991b1b714c</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[business-analysis]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[sql-server]]></category>
            <dc:creator><![CDATA[Kristina Paseru]]></dc:creator>
            <pubDate>Thu, 04 Jun 2020 16:51:57 GMT</pubDate>
            <atom:updated>2020-06-04T16:51:57.393Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*kapbaePNQSJAVkXVvdR88g.png" /><figcaption>image source : allvectorlogo.com</figcaption></figure><p>Hi guys, on this part and the next parts, we are going to concentrate on exercises because all the important and frequently used commands, operator, clauses in SQL already exposured together. So, let’s jump into the exercise :</p><p>Below is a table named “sql_exercise”. The table consists of id, first name, last name and department. Below are some questions that we are going to answer regarding to the provided table :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*8IadNDIgW4X0RsjjfLJEJw.png" /><figcaption>table. sql_exercise</figcaption></figure><ol><li>Based on the orginal table, write a query in SQL to display all information showed on the table</li></ol><blockquote>Answer</blockquote><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/243/1*oEbLLMINSL99DJJT4Eht1A.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*kBime8kzPTIsjK2uaJ0bwA.png" /></figure><p>2. Based on the orginal table, write a query to show all information showed in the column first_name and department</p><blockquote>Answer</blockquote><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/243/1*F5KKIVvw-kFG-ANG1Gtwsg.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/229/1*AJEdKgqhMaAXVIS8D0pmGQ.png" /></figure><p>3. Based on the orginal table, write a query to display a unique apartments that available.</p><blockquote>Answer</blockquote><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/217/1*hLUyTXiAy6WOCJGjERXQTQ.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/153/1*cREF2wqUMrGDJ_AzpQNTgg.png" /></figure><p>4. Based on the orginal table, write a query to count how many unique department available.</p><blockquote>Answer</blockquote><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*2f0lwQE3NzSwKcYXWTYfHw.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/206/1*eviJOH3kLdfys2CJIpxzew.png" /></figure><p>5. Based on the orginal table, write a query to select all information on department 95.</p><blockquote>Answer</blockquote><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/248/1*8hc4n-Z_MI1K8r1GwXPm8Q.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/321/1*Ghzn8gIR6K6rqmVJtVFJkQ.png" /></figure><p>Okay friends, so this section will be end up here. See you on the next exercises. Thank you :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41991b1b714c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL-Part 11 | by Kristina Paseru]]></title>
            <link>https://medium.com/@kristinapaseru/sql-part-11-by-kristina-paseru-962e30eda1e3?source=rss-3403e59dd606------2</link>
            <guid isPermaLink="false">https://medium.com/p/962e30eda1e3</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[business-analysis]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[data-scientist]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Kristina Paseru]]></dc:creator>
            <pubDate>Mon, 01 Jun 2020 17:24:01 GMT</pubDate>
            <atom:updated>2020-06-01T17:24:01.963Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/481/1*2U5gzo2dv1VpfCeDFpW2xg.png" /><figcaption>image resource : udemy</figcaption></figure><p>Thankfully for being able to write here again. Guys, so on this section I am going to share about the usage of INSERT INTO SELECT and CASE in SQL. Let’s discuss it one by one :</p><p>The INSERT INTO SELECT statement copies data from one table and inserts it into another table. Important to remember that :</p><ul><li>INSERT INTO SELECT requires that data types in source and target tables match</li><li>The existing records in the target table are unaffected</li></ul><p>Take a look on the example below :</p><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/357/1*E8d-1LvLhCiSG-LvXez4ng.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*Vb6xlQVO2KsQbMoOv0pciA.png" /></figure><p>So, from the example above, I want to insert data into table Pelanggan1 from table Pelanggan.</p><p>the CASE statement goes through conditions and returns a value when the first condition is met (like an IF-THEN-ELSE statement). So once a condition is true, it will stop reading and return the result. If no conditions are true, it returns the value in the ELSE clause. If there is no ELSE part and no conditions are true, it returns null.</p><p>Let’s jump into the example to make this clear.</p><p>Input :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*97PhFoI2J1ddKlD8f_sc9w.png" /></figure><p>Output :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*Y-Gqj9O6GjWqMiJIfqZbAg.png" /></figure><p>Okay, so that is all for this part and see you on the next sections. Thank you :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=962e30eda1e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>