<?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 Cheryl on Medium]]></title>
        <description><![CDATA[Stories by Cheryl on Medium]]></description>
        <link>https://medium.com/@adultingwithcheryl?source=rss-e1b8ce4bb683------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*v3vVhGBTJAjxtdJ0SSD28Q.png</url>
            <title>Stories by Cheryl on Medium</title>
            <link>https://medium.com/@adultingwithcheryl?source=rss-e1b8ce4bb683------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 05:42:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adultingwithcheryl/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[Database 101 For Idiots Part 2: OLTP vs OLAP]]></title>
            <link>https://adultingwithcheryl.medium.com/database-101-for-idiots-part-2-oltp-vs-olap-8b8068da7482?source=rss-e1b8ce4bb683------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b8068da7482</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Cheryl]]></dc:creator>
            <pubDate>Wed, 09 Nov 2022 05:54:41 GMT</pubDate>
            <atom:updated>2022-11-09T05:54:41.586Z</atom:updated>
            <content:encoded><![CDATA[<p>Before going onto data normalisation, I would like to talk about the definition of database/data warehouse/data lake as well as OLAP/OLTP and how they come together.</p><p>We&#39;ve gone through quite an overview of databases previously. Now what is the difference between that and data warehouse and data lakes?</p><h3>Data Warehouse</h3><p>A data warehouse typically stores historical data from multiple data sources. It is usually optimised for analytics rather than writing of the data. Data is moved from the original database to the data warehouse through ETL processes. That usually happens on a regular basis. As such, data warehouse&#39;s data might not be the most updated. The data in here are still relatively structured and examples include Amazon Redshift, Google BigQuery, IBM Db2 Warehouse.</p><h3>Data Lake</h3><p>A data lake is similar to a data warehouse except that data is stored in the raw format. Data lakes can store data in a variety of format and does not need to be transformed. Examples include AWS S3, Azure Data Lake Storage Gen2, Google Cloud Storage.</p><p>You can read more about the difference <a href="https://www.mongodb.com/databases/data-lake-vs-data-warehouse-vs-database">here</a> but one key difference I want to highlight is the processing type.</p><h3>Processing Type: OLTP vs OLAP</h3><p>A key difference for various databases and datawarehouse is how they process data.</p><h3>Online transaction processing (OLTP)</h3><p>Online transaction processing (OLTP) captures, stores, and processes data from transactions in real time. It is purely operational and optimised for reading and writing. It enables real time execution of large number of data and is usually available 24/7.</p><h3>Online analytical processing (OLAP)</h3><p>Online analytical processing (OLAP) uses complex queries to analyze aggregated historical data from OLTP systems. It performs multi-dimensional analysis at high speed and is usually read only.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b8068da7482" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Database 101 For Idiots Part 1]]></title>
            <link>https://adultingwithcheryl.medium.com/database-101-for-idiots-part-1-c8e81e202f2?source=rss-e1b8ce4bb683------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8e81e202f2</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Cheryl]]></dc:creator>
            <pubDate>Tue, 08 Nov 2022 07:03:35 GMT</pubDate>
            <atom:updated>2022-11-08T07:03:35.446Z</atom:updated>
            <content:encoded><![CDATA[<p>Similar to many who self learnt SQL and Python, while I do have a decent grasp of querying/coding, I struggle to understand the basics of databases and how they interact with each other. What is a OLTP/OLAP? What is a database warehouse? What is Hadoop/Spark/MongoDB? This gap in knowledge poses quite a problem as I deepen my data learning journey. After all, how can one be a data “expert” if we don’t even know the data ecosystem? With that in mind, thanks to help of my amazing mentor, I decided to pen down some of my learnings on databases for idiots.</p><h3>Database Ecosystem</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W_esJg-R9l3KjdxC.jpeg" /></figure><p><strong>Databases</strong></p><p>Let’s start by first looking at the database ecosystem. Whenever we query, it might be easy to fall under the impression that the data we need is stored in only one database. The truth is that data in a company are often stored in various database management system (DBMS). They do so as a company would have various types of data and one DBMS may not fulfil the needs of the company. Examples of these includes Oracle, MySQL, PostgreSQL.</p><p><strong>Data Query Engine</strong></p><p>To access all these various DBMS when we are querying data, we would need a data query engine which is a unified interface to query all these data. A distributed SQL query engine will allow you to query data from a variety of data sources like Hadoop, AWS S3, NoSQL, MySQL, and more, or data from multiple data sources within a single query. To retrive the data, we would input our query on the frontend. The query processor would then execute the SQL command and pull the necessary data. Examples of a data query engine would be Presto, Trino, Apache Spark.</p><p><strong>SQL Querying</strong></p><p>To access the data, we would simply need to query using SQL (Structured Query Language). There are many flavours in SQL but all have the basics of the language albeit with minute differences. Examples incude T-SQL, PostgreSQL, CQL and so on. I would not be too bothered on the minute differences when learning but you can read about them <a href="https://towardsdatascience.com/the-many-flavours-of-sql-7b7da5d56c1e">here</a>.</p><h3>Different type of DBMS: Relational vs Non Relational</h3><p>There are 2 large categories of database management system — relational vs non relational databases, otherwise known as SQL or NoSQL databases. The differences below are only a simplified summary and you can read more <a href="https://thomaslarock.com/2018/07/databases-101/">here</a>.</p><h3>Relational Databases (SQL)</h3><p>Data in relational databases are stored in 2D arrays and the data are sometimes called relations (hence the term relational database management system). In RDBMS, there’s a rigid schema and clear relationship between tables. Examples of RDBMS includes Oracle, MySQL, PostgreSQL.</p><h3>Non Relational Databases (NoSQL)</h3><p>NoSQL databases are more flexible as it allows for other type of data and doesnt need to be as structured. Examples of data types include JSON key value or document data. It has a flexible schema where you can add fields later on and have no/few relations between tables. Examples of NoSQL database includes MongoDB, Redis, Amazon Neptune, Cassandra.</p><h3>Why would SQL be chosen over NoSQL?</h3><p>After understanding the difference between the 2, one might ask why would SQL databases be chosen over No SQL and vice versa. There are many considerations but I would highlight the key few:</p><ol><li><strong>ACID vs BASE compliance</strong></li></ol><p>Most SQL databases are ACID compliant. ACID stands for atomic, consistency, isolation, durability. You can read more about the properties <a href="https://www.keboola.com/blog/acid-transactions">here</a>. Such properties are important in certain industries such as the finance and healthcare industries where transactions have to be accurate and complete.</p><p>In contrast, NoSQL databases typically follow BASE properties, which stands for Basically Available, Soft State, Eventually Consistent.</p><p>It would also be a good time to discuss the CAP Theorem. CAP stands for Consistency, Availability, and Partition tolerance. The theorem states that you cannot have all three, as there are natural tradeoffs between the items. This gives us a good understanding on why we might face errors in our queries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/0*IDR6sNxmu4JuGqaf.png" /></figure><p>As a rule of thumb, relational databases are optimized for writing, and NoSQL databases are optimized for reading.</p><p><strong>2. Data Types</strong></p><p>Depending on the type of data to store, companies might choose between SQL/NoSQL databases.</p><p>Hopefully this provides a good introduction and overview to the world of databases. There’s still a lot I’m still learning on so if you have any inputs, it’ll be great if you could share them too. Moving on, I’ll touch a bit more on database design.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8e81e202f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Practical tips on networking for early career professionals]]></title>
            <link>https://adultingwithcheryl.medium.com/practical-tips-on-networking-for-early-career-professionals-cb4e4dbadb6b?source=rss-e1b8ce4bb683------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb4e4dbadb6b</guid>
            <category><![CDATA[career-advice]]></category>
            <category><![CDATA[jobseeking]]></category>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Cheryl]]></dc:creator>
            <pubDate>Wed, 24 Aug 2022 05:30:03 GMT</pubDate>
            <atom:updated>2022-08-24T05:30:03.682Z</atom:updated>
            <content:encoded><![CDATA[<h3>Practical tips on networking</h3><p>Recently, I attended a career discussion on networking. It was a panel discussion where panelists shared about their experiences networking as well as some tips to make networking easier. While I’ve attended many of such talks, this session was the most useful one I’ve attended because of the many practical pointers and fresh perspectives which I had not considered before.</p><ol><li><strong>Networking within vs out of the company</strong></li></ol><p>Thankfully, there are many reasons why networking in the company is generally a lot easier. Firstly, the culture in the company encourages networking and everyone is generally open to meeting new people. Secondly, we have a cafeteria and nice pantries for coffee chats all around the office. This makes it easier to meet people, without deciding where to meet and what to eat.</p><p>I personally found this to be true! In all my time in the company, I was only rejected for coffee once, and that’s pretty much the worst that could happen. That’s not all too bad — so be bold and ask people out!</p><p><strong>2.</strong> <strong>Maintaining authenticity</strong></p><p>Networking can be scary and awkward if you have an agenda for every meeting. Instead, focus on getting to know the other person and building a connection. Most of our network starts from an initial connection. Slow down and take the time to genuinely know someone beyond just their name and job title.</p><p>It’s also nice to check in on your network every once in awhile and not when you need something from them. This can come across as disingenuous at times.</p><p><strong>3. Maintaining relationships post networking</strong></p><p>I often struggled with maintaining relationships with people I’ve networked with before. Despite having an enjoyable conversation, I’m not sure how to ask to meet again especially if I don’t have any particular agenda. People often used regular check ins to maintain the relationship but the thought of that does scare me a little because I feel the need to prepare before every meeting.</p><p>A practical tip shared was to send the person a news article, or post based on the previous conversation. Just as we share relatable memes with our friends, so can we share relatable articles with our network.</p><blockquote><strong><em>Nothing hits more personal than “Hey I saw this article and it reminded me of you”. It’s a low commitment way of checking in with our network.</em></strong></blockquote><p>Another way would be to check in with an email and update them about a situation you last shared about. Many people ask senior leaders for advice but few would go back to update them on what happened after taking their advice.</p><p>For those who have a goldfish memory, it might be helpful to list down the people you’ve met and what you discussed somewhere.</p><p><strong>4. For people early in their career (like myself) , it might be difficult to reach out to senior leaders, here’s some tips:</strong></p><ul><li>Find out what’s important to them — what has been top of mind for them. Ask about that as a starting point! People love to share work they are proud of.</li><li>Ask for their opinions on certain situations you’re in. Perhaps you’re speaking with a senior leader who you know have gone through what you’re current experiencing. Use that as a common ground and a starting point.</li></ul><p>The most important thing is to know that no matter how senior they are (or how junior you are), you always have something to offer in a conversation. Don’t let it daunt you too much!</p><p>Since the panel discussion, I’ve since used some of the tips to reach out to my old connections and I’m so glad I did! I hope you found this advice as helpful as I did.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb4e4dbadb6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Case Study: Understanding Data Types, Pizza Runner Part 2]]></title>
            <link>https://adultingwithcheryl.medium.com/sql-case-study-understanding-data-types-pizza-runner-part-2-f53f8d58bbdc?source=rss-e1b8ce4bb683------2</link>
            <guid isPermaLink="false">https://medium.com/p/f53f8d58bbdc</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Cheryl]]></dc:creator>
            <pubDate>Sun, 21 Aug 2022 12:39:53 GMT</pubDate>
            <atom:updated>2022-08-21T12:39:53.364Z</atom:updated>
            <content:encoded><![CDATA[<p>This is part of a SQL series where I analyse data using SQL to answer business questions. All data and questions are taken from Datawithdanny 8 Week SQL Challenge (Highly Recommend!!). For today’s project, I’ll be looking at a pizza restaurant business who delivers with the help of runners.</p><ol><li><strong>How many runners signed up for each 1 week period? (i.e. week starts </strong><strong>2021-01-01)</strong></li></ol><p>I did not know how to handle dates and to group them by weekly period. A quick search suggested I could do a DATE_TRUNC to truncate it to weeks. However, the starting date starts on Monday. As 2021–01–01 is a Friday, I’ll have to add 4 days to the starting date.</p><pre>SELECT<br>  DATE_TRUNC(&#39;WEEK&#39;, registration_date)::DATE + 4 AS registration_week,<br>  COUNT(*) AS runners<br>FROM pizza_runner.runners<br>GROUP BY registration_week<br>ORDER BY registration_week;</pre><p><strong>2. What was the average time in minutes it took for each runner to arrive at the Pizza Runner HQ to pickup the order?</strong></p><pre>WITH cte_pickup_minutes AS (<br>  SELECT DISTINCT<br>    t1.order_id,<br>    DATE_PART(&#39;minutes&#39;, AGE(t2.order_time, t1.pickup_time::TIMESTAMP)::TIMESTAMP at TIME ZONE &#39;PDT&#39;) AS pickup_minutes<br>  FROM pizza_runner.runner_orders AS t1<br>  INNER JOIN pizza_runner.customer_orders AS t2<br>    ON t1.order_id = t2.order_id<br>  WHERE t1.pickup_time != &#39;null&#39;<br>)<br>SELECT<br>  ROUND(AVG(pickup_minutes), 3) AS avg_pickup_minutes<br>FROM cte_pickup_minutes;</pre><p><strong>3. Is there any relationship between the number of pizzas and how long the order takes to prepare?</strong></p><p>Since the table is quite small, I would simply show the number of pizzas bought and the duration per order. To do this, I would need to:</p><ul><li>Find number of pizza which can easily be found by COUNT</li><li>Find the order duration. Finding this is a little harder as only the order time and pick up time is given. This means I need to find the difference between the two, which I can do so using the AGE function. However, pickup time is actually recorded as a string, which I need to convert to a timestamp. The result is an interval which is converted to an integer to ensure I can find the minutes using the DATE_PART function.</li></ul><pre>SELECT DISTINCT<br>  t1.order_id,<br>  DATE_PART(&#39;minute&#39;, AGE(t1.pickup_time::TIMESTAMP, t2.order_time))::INTEGER AS pickup_minutes,<br>  COUNT(t2.order_id) AS pizza_count<br>FROM pizza_runner.runner_orders AS t1<br>INNER JOIN pizza_runner.customer_orders AS t2<br>  ON t1.order_id = t2.order_id<br>WHERE t1.pickup_time != &#39;null&#39;<br>GROUP BY t1.order_id, pickup_minutes<br>ORDER BY pizza_count;</pre><p><strong>4. What was the average distance travelled for each customer?</strong></p><p>The average distance in this table is recorded in strings. To find the average distance, some data manipulation will need to be done as the data are stored in many variations including “25km” or “3 kilometres”. As there are some null values due to cancelled orders, we remove them by having the condition that pickup_time ≠ ‘null’. Firstly, a regex match is used to extract the numerical distance, this returns the data in an array format. To get the numerical output, I used the unnest function. After that, the average is obtained using the AVG and group by function.</p><pre>WITH cte_customer_order_distances AS (<br>SELECT DISTINCT<br>  t1.customer_id,<br>  t1.order_id,<br>  UNNEST(REGEXP_MATCH(t2.distance, &#39;(^[0-9,.]+)&#39;))::NUMERIC AS distance<br>FROM pizza_runner.customer_orders AS t1<br>INNER JOIN pizza_runner.runner_orders AS t2<br>ON t1.order_id = t2.order_id<br>WHERE t2.pickup_time != &#39;null&#39;<br>) <br>SELECT<br>  customer_id,<br>  ROUND(AVG(distance), 1) AS avg_distance<br>FROM cte_customer_order_distances<br>GROUP BY customer_id<br>ORDER BY customer_id;</pre><p><strong>5. What was the difference between the longest and shortest delivery times for all orders?</strong></p><p>A similar method is used as above but for the duration. The difference is obtained by finding the MIN and MAX duration.</p><pre>WITH cte_durations AS (<br>  SELECT<br>    UNNEST(REGEXP_MATCH(duration, &#39;(^[0-9]+)&#39;))::NUMERIC AS duration<br>  FROM pizza_runner.runner_orders<br>  WHERE pickup_time != &#39;null&#39;<br>)<br>SELECT MAX(DURATION) - MIN(duration) AS max_difference<br>FROM cte_durations;</pre><p><strong>6. What was the average speed for each runner for each delivery and do you notice any trend for these values?</strong></p><p>This is similar to the above. Whenever dealing with requests to get more information, I usually like to have a CTE with a smaller segment of what I did in the original table. This makes the query more readable too.</p><pre>WITH cte_adjusted_runner_orders AS (<br>  SELECT<br>    runner_id,<br>    order_id,<br>    DATE_PART(&#39;hour&#39;, pickup_time::TIMESTAMP) AS hour_of_day,<br>    UNNEST(REGEXP_MATCH(distance, &#39;(^[0-9,.]+)&#39;))::NUMERIC AS distance,<br>    UNNEST(REGEXP_MATCH(duration, &#39;(^[0-9]+)&#39;))::NUMERIC AS duration<br>  FROM pizza_runner.runner_orders<br>  WHERE pickup_time != &#39;null&#39;<br>)<br>SELECT<br>  runner_id,<br>  order_id,<br>  hour_of_day,<br>  distance,<br>  duration,<br>  ROUND(distance / (duration / 60), 1) AS avg_speed<br>FROM cte_adjusted_runner_orders;</pre><p><strong>7. What is the successful delivery percentage for each runner?</strong></p><pre>SELECT<br>  runner_id,<br>  ROUND(<br>    100 * SUM(CASE WHEN pickup_time != &#39;null&#39; THEN 1 ELSE 0 END) /<br>    COUNT(*)<br>  ) AS success_percentage<br>FROM pizza_runner.runner_orders<br>GROUP BY runner_id<br>ORDER BY runner_id;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f53f8d58bbdc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Case: Pizza Delivery Part 1]]></title>
            <link>https://adultingwithcheryl.medium.com/sql-case-pizza-delivery-part-1-59ef2fd6a14e?source=rss-e1b8ce4bb683------2</link>
            <guid isPermaLink="false">https://medium.com/p/59ef2fd6a14e</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Cheryl]]></dc:creator>
            <pubDate>Tue, 16 Aug 2022 14:47:55 GMT</pubDate>
            <atom:updated>2022-08-16T14:47:55.785Z</atom:updated>
            <content:encoded><![CDATA[<p>This is part of a SQL series where I analyse data using SQL to answer business questions. All data and questions are taken from Datawithdanny 8 Week SQL Challenge (Highly Recommend!!). For today’s project, I’ll be looking at a pizza delivery dataset and walking through some business questions. For part 1, we will cover the delivery volumes and metrics.</p><ol><li><strong>How many pizzas were ordered?</strong></li></ol><p>A simple count(*) revealed there were 14 orders.</p><pre>SELECT COUNT(*)<br>FROM pizza_runner.customer_orders</pre><p><strong>2. How many unique customer orders were made?</strong></p><p>I did a simple count distinct to find that there were 5 unique orders made.</p><pre>SELECT COUNT(DISTINCT order_id)<br>FROM pizza_runner.customer_orders</pre><p><strong>3. How many successful orders were delivered by each runner?</strong></p><p>I simply had to count orders where pickup time is not null (Ans: 8) I used a string to filter out the null here, which is rare in reality. However, just a note that in reality, the ways people store null values could be different. It could be an empty string, “NA” or “none”. Therefore, it’s necessary to look at the different values in a column before deciding.</p><p>Random but I was trying to figure out what datatype null was. From what I found so far, it seems that there isn’t a data type for null but please correct me if I’m wrong.</p><pre>SELECT runner_id, COUNT(*)<br>FROM pizza_runner.runner_orders<br>WHERE pickup_time != &#39;null&#39;<br>GROUP BY runner_id</pre><p><strong>4. How many of each type of pizza was delivered?</strong></p><p>A simple group by and count. I also joined it to the pizza name table so we can know the pizza name, instead of just the id. This could give insights to our customer demographic. It’s also important to remember the above query and ignore those which deliveries failed.</p><pre>SELECT pizza_name, COUNT(*)<br>FROM pizza_runner.customer_orders o <br>INNER JOIN pizza_runner.runner_orders <br>ON runner_orders.order_id = o.order_id<br>LEFT JOIN pizza_runner.pizza_names n<br>ON o.pizza_id = n.pizza_id<br>WHERE pickup_time != &#39;null&#39;<br>GROUP BY pizza_name</pre><p><strong>5. How many Vegetarian and Meatlovers were ordered by each customer?</strong></p><p>I wanted to do a count of both type of pizzas per customer, so I used a CASE WHEN function instead.</p><pre>SELECT customer_id, <br>SUM(CASE WHEN o.pizza_id = 1 THEN 1 ELSE 0 END) AS meatlovers,<br>SUM(CASE WHEN o.pizza_id = 2 THEN 1 ELSE 0 END) AS vegetarian<br>FROM pizza_runner.customer_orders o <br>LEFT JOIN pizza_runner.pizza_names n<br>ON o.pizza_id = n.pizza_id<br>GROUP BY customer_id</pre><p><strong>6. What was the maximum number of pizzas delivered in a single order?</strong></p><p>Count the number of pizzas using order_id, group by the customer id and order time. The answer is 3 by customer 103.</p><pre>SELECT customer_id, order_time, COUNT(order_id) as cnt <br>FROM pizza_runner.customer_orders o <br>GROUP BY customer_id, order_time<br>ORDER BY cnt DESC <br>LIMIT 1</pre><p><strong>7. For each customer, how many delivered pizzas had at least 1 change and how many had no changes?</strong></p><p>By change, it means how many had exclusions and extras. Considering the change values were not well documented, I looked at the variations of the tables which includes null values and empty strings. Then I did a case when in a separate column in order to count if the pizza had changes or not.</p><pre>WITH changes as (<br>SELECT *,<br>CASE WHEN exclusions NOT IN (&#39;null&#39;, &#39;&#39;) THEN 1<br>WHEN extras NOT IN (&#39;null&#39;, &#39;&#39;) THEN 1<br>ELSE 0<br>END as change<br>FROM pizza_runner.customer_orders o <br>INNER JOIN pizza_runner.runner_orders <br>ON o.order_id = runner_orders.order_id<br>WHERE pickup_time != &#39;null&#39;<br>) </pre><pre>SELECT customer_id, <br>SUM(CASE WHEN change = 1 THEN 1 ELSE 0 END) AS change,<br>SUM(CASE WHEN change = 0 THEN 1 ELSE 0 END) AS no_change<br>FROM changes<br>GROUP BY customer_id</pre><p><strong>8. How many pizzas were delivered that had both exclusions and extras?</strong></p><p>Similar to the above with a slight change in exclusion clause. Turns out only 2 pizzas had both!</p><pre>WITH changes as (<br>SELECT *,<br>CASE WHEN exclusions NOT IN (&#39;null&#39;, &#39;&#39;) THEN 1<br>WHEN extras NOT IN (&#39;null&#39;, &#39;&#39;) THEN 1<br>ELSE 0<br>END as change<br>FROM pizza_runner.customer_orders o <br>) </pre><pre>SELECT COUNT(both_cnt) <br>FROM <br>(<br>SELECT  <br>CASE WHEN exclusions NOT IN (&#39;null&#39;, &#39;&#39;) AND extras NOT IN (&#39;null&#39;, &#39;&#39;) THEN 1 END as both_cnt<br>FROM pizza_runner.customer_orders<br>) a</pre><p><strong>9. What was the total volume of pizzas ordered for each hour of the day?</strong></p><p>To find the total volume, I’ll look at the orders table again and group them according to the hours per day. I wasn’t sure how to execute this so I had to check for a bit and turns out I could use the date part function. However, I had to make sure I converted pickup time to a datetime.</p><pre>SELECT DATE_PART(&#39;hour&#39;, order_time::TIMESTAMP) as hr_day, COUNT(*) as cnt<br>FROM pizza_runner.runner_orders r<br>LEFT JOIN pizza_runner.customer_orders c<br>ON r.order_id = c.order_id<br>GROUP BY hr_day<br>order by hr_day</pre><p><strong>10. What was the volume of orders for each day of the week?</strong></p><p>Here I used TO_CHAR, which helps covert a timestamp, interval, integer into a string according to a specific format. I did not know but TO_CHAR can be used to convert days which makes it way faster than using DATE_PART</p><pre>SELECT TO_CHAR(order_time, &#39;Day&#39;) AS day_of_week, <br>COUNT(*) as cnt <br>FROM pizza_runner.runner_orders r<br>LEFT JOIN pizza_runner.customer_orders c<br>ON r.order_id = c.order_id<br>GROUP BY day_of_week</pre><h3>Lessons from this case study:</h3><p>This week, I learnt a bit more on how to work with various data types using date_part and to_char. I realised while I do know they exist and how to use them. It doesn’t come so intuitive for me as I always have to do a quick search just to be sure. Learning how to work with dates is pretty underrated since almost every dataset have dates but it’s rarely taught as a topic. Guess I’ll have to learn more on it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59ef2fd6a14e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Case Study: Diner’s Data]]></title>
            <link>https://adultingwithcheryl.medium.com/sql-case-study-diners-data-46fb8dc5f8b6?source=rss-e1b8ce4bb683------2</link>
            <guid isPermaLink="false">https://medium.com/p/46fb8dc5f8b6</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Cheryl]]></dc:creator>
            <pubDate>Mon, 15 Aug 2022 13:42:52 GMT</pubDate>
            <atom:updated>2022-08-15T13:42:52.921Z</atom:updated>
            <content:encoded><![CDATA[<p>This is part of a SQL series where I analyse data using SQL to answer business questions. All data and questions are taken from Datawithdanny 8 Week SQL Challenge (Highly Recommend!!). For today’s project, I’ll be looking at a diner’s data and walking through some business questions.</p><ol><li><strong>What is the total amount each customer spent at the restaurant?</strong></li></ol><p>To find the total value spent per customer, I’ll need to find the total spend per order first. I’ll query the price for each product id.</p><pre>SELECT customer_id, SUM(m.price)<br>FROM dannys_diner.sales s <br>LEFT JOIN dannys_diner.menu m<br>ON s.product_id = m.product_id <br>GROUP BY customer_id</pre><p><strong>2. How many days has each customer visited the restaurant?</strong></p><p>To find this, you simply need the sales table, count the rows and then group by customer_id. However, to prevent duplicates, you’ll need to search for distinct rows in the subquery.</p><pre>SELECT customer_id, COUNT(*)<br>FROM <br>(<br>SELECT DISTINCT customer_id, order_date<br>FROM dannys_diner.sales <br>ORDER BY customer_id<br>) a<br>GROUP BY customer_id</pre><p><strong>3. What was the first item from the menu purchased by each customer?</strong></p><p>We need to find the earliest order here. In this case, I’ll find the min order date. I then added that query as a subquery in the WHERE field.</p><pre>SELECT customer_id, product_name, order_date <br>FROM dannys_diner.sales s <br>LEFT JOIN dannys_diner.menu m <br>ON s.product_id = m.product_id <br>WHERE order_date IN <br>(<br>SELECT MIN(order_date)<br>FROM dannys_diner.sales s<br>)</pre><p>Answer: A ordered Sushi and Curry, B ordered curry and C ordered ramen (two bowls in fact)</p><p><strong>4. What is the most purchased item on the menu and how many times was it purchased by all customers?</strong></p><p>Taking the sales order menu, I do a count(*) row and group by product id. I’ll also add a left join with menu again to get the product name. From the results, I can see ramen is the most popular item and was ordered 8 times in total.</p><pre>SELECT s.product_id, product_name, COUNT(*)<br>FROM dannys_diner.sales s<br>LEFT JOIN dannys_diner.menu m <br>ON s.product_id = m.product_id <br>GROUP BY s.product_id, product_name<br>ORDER BY COUNT(*) <br>LIMIT 1</pre><p><strong>6. Which item was the most popular for each customer?</strong></p><p>Similar to before, I’ll do a COUNT(*) and add a group by customer first and then product. However, to find the singular most popular item, I’ll do a RANK here and select where RANK = 1. However do note with RANK(), multiple values can be 1, which we can see in the case of customer B.</p><pre>SELECT *<br>FROM (<br>SELECT customer_id, product_name, COUNT(s.*) as cnt, RANK() OVER(PARTITION BY customer_id ORDER BY COUNT(s.*) desc) as rnk<br>FROM dannys_diner.sales s<br>INNER JOIN dannys_diner.menu m <br>ON s.product_id = m.product_id <br>GROUP BY customer_id, product_name<br>) a<br>WHERE rnk = 1</pre><p><strong>7. Which item was purchased first by the customer after they became a member?</strong></p><p>I’ll first find all orders that were made by the customer after they became a member. Like above, I’ll then rank the orders and find the latest order. Interestingly, only orders from customer A and B appeared. This could be because customer C have not became a member, or have not made an order since they became a member. This could be useful information for marketing. Remember to CAST the join date as a date by adding ::DATE</p><pre>SELECT a.customer_id, product_name<br>FROM <br>(<br>SELECT s.customer_id, product_name, RANK() OVER(PARTITION BY s.customer_id ORDER BY order_date) as rnk<br>FROM dannys_diner.sales s<br>INNER JOIN dannys_diner.members m <br>ON s.customer_id = m.customer_id <br>LEFT JOIN dannys_diner.menu <br>ON menu.product_id = s.product_id<br>WHERE order_date &gt; join_date::DATE <br>) a<br>WHERE rnk = 1</pre><p><strong>8. Which item was purchased just before the customer became a member?</strong></p><p>Very similar to the above except I’ll change the comparison operator to before the join date.</p><pre>SELECT customer_id, product_name<br>FROM <br>(<br>SELECT s.customer_id, product_name, RANK() OVER(PARTITION BY s.customer_id ORDER BY order_date DESC) as rnk<br>FROM dannys_diner.sales s<br>INNER JOIN dannys_diner.members m <br>ON s.customer_id = m.customer_id <br>LEFT JOIN dannys_diner.menu <br>ON menu.product_id = s.product_id<br>WHERE order_date &lt; join_date<br>) a<br>WHERE rnk = 1</pre><p><strong>9. What is the total items and amount spent for each member before they became a member?</strong></p><p>Here, we need to join all tables. I chose a LEFT JOIN with sales table since it’s the table that contains all the foreign keys. Then I did a window function to count the number of items and amount spent per customer.</p><pre>SELECT s.customer_id, SUM(price)<br>FROM dannys_diner.sales s<br>LEFT JOIN dannys_diner.members m <br>ON s.customer_id = m.customer_id <br>LEFT JOIN dannys_diner.menu menu <br>ON s.product_id = menu.product_id <br>WHERE order_date &lt; join_date<br>GROUP BY s.customer_id</pre><pre>-- **ALSO WORKS:** <br>SELECT DISTINCT s.customer_id, COUNT(product_name) OVER(PARTITION BY s.customer_id), <br>SUM(price) OVER(PARTITION BY s.customer_id)<br>FROM dannys_diner.sales s<br>LEFT JOIN dannys_diner.members m <br>ON s.customer_id = m.customer_id <br>LEFT JOIN dannys_diner.menu menu <br>ON s.product_id = menu.product_id <br>WHERE order_date &lt; join_date</pre><p>If each $1 spent equates to 10 points and sushi has a 2x points multiplier — how many points would each customer have?</p><p>Firstly, I’ll make the assumption that these points are collected after the customer joined as a member, and as such, I’ll add the comparison operator. I’ll use a case when to find out how much points the customer got.</p><pre>SELECT<br>  sales.customer_id,<br>  SUM(CASE WHEN menu.product_name = &#39;sushi&#39; THEN 20 * menu.price<br>      ELSE 10 * menu.price END) <br>  AS points<br>FROM dannys_diner.sales<br>LEFT JOIN dannys_diner.menu<br>ON sales.product_id = menu.product_id<br>GROUP BY customer_id<br>ORDER BY points DESC</pre><p><strong>10. In the first week after a customer joins the program (including their join date) they earn 2x points on all items, not just sushi — how many points do customer A and B have at the end of January?</strong></p><p>First, I need to filter for orders before the end o f January as that was the cut-off date. Then, I did a case when to filter for dates within 7 days of the join date, this add a column with a 1/0 value to indicate if it was made within the first week. Afterwards, I did a case when again to add the points per order. Finally I did a sum and group by to find the total points per customer. I did them all in CTE tables though I’m sure there’s likely other efficient methods.</p><pre>WITH info_table AS (<br>SELECT s.customer_id, join_date, order_date, product_name, price<br>FROM dannys_diner.members m <br>INNER JOIN dannys_diner.sales s<br>ON m.customer_id = s.customer_id <br>INNER JOIN dannys_diner.menu menu <br>ON menu.product_id = s.product_id<br>),<br>filtered_table AS (<br>SELECT customer_id, product_name, price, order_date,<br>CASE WHEN order_date BETWEEN join_date AND join_date + INTERVAL &#39;7 days&#39; THEN 1 ELSE 0 END as filter<br>FROM info_table<br>) </pre><pre>SELECT customer_id, <br>SUM(CASE WHEN filter = 1 THEN 20 * price ELSE 10 * price END) as points<br>FROM filtered_table<br>WHERE order_date &lt; &#39;2021-02-01&#39;<br>GROUP BY customer_id</pre><p><strong>Things I’ve learned from this case study:</strong></p><ol><li>The use of ranks — My typical way of finding the min/max of items would be to order the table and limit. However, the use of ranking provides a lot of flexibility, especially when there are equally ranked items.</li><li>The importance of breaking down the question: Having my thought process written down has definitely helped me to think through the steps rather than diving to write the code.</li><li>The power of window functions coupled with using intervals.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46fb8dc5f8b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analysing Daily Bitcoin Prices Using SQL]]></title>
            <link>https://adultingwithcheryl.medium.com/analysing-daily-bitcoin-prices-using-sql-f7fc6abdcc1f?source=rss-e1b8ce4bb683------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7fc6abdcc1f</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Cheryl]]></dc:creator>
            <pubDate>Thu, 21 Jul 2022 06:26:22 GMT</pubDate>
            <atom:updated>2022-07-21T06:26:22.443Z</atom:updated>
            <content:encoded><![CDATA[<p>This is part of a SQL series where I analyse data using SQL to answer business questions. All data and questions are taken from <a href="https://8weeksqlchallenge.com/getting-started/">Datawithdanny 8 Week SQL </a>Challenge (Highly Recommend!!). For today’s project, I’ll be looking at Bitcoin daily trading volume and prices and walking through how I pull the information.</p><p>Firstly, before I start, I want to get an overview of the type of data I work with. I’ll run the below code and limit the number of rows (to save data).</p><pre>SELECT *<br>FROM trading.daily_btc<br>LIMIT 5;</pre><p>From there, I see a table that gives me a brief overview of what to expect in the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*quuNWm_FZWH5pTa2.png" /></figure><ol><li><strong>What is the earliest and latest </strong><strong>market_date values?</strong></li></ol><p>To find out the first and last recorded date of bitcoin prices, I’ll look at finding the earliest and latest market date. I would do a simple ORDER BY date and LIMIT by 1.</p><pre>SELECT *<br>FROM trading.daily_btc<br>ORDER BY market_date DESC <br>LIMIT 1</pre><pre>SELECT *<br>FROM trading.daily_btc<br>ORDER BY market_date ASC <br>LIMIT 1</pre><p>Earliest Date: 2014–09–17</p><p>Latest Date: 2021–02–24</p><p><strong>2. What was the historic all-time high and low values for the </strong><strong>close_price and their dates?</strong></p><p>I initially tried the above method as well, but got a null value. When I look at the next few columns, it turns out there are null values in our table, which causes it to be ordered at the top. The null values is something to take note, but in the meantime, I will use a subquery to find the MAX of column <em>high_price</em> and MIN of <em>low_price.</em></p><pre>SELECT *<br>FROM trading.daily_btc<br>WHERE high_price IN (SELECT MAX(high_price) FROM trading.daily_btc);</pre><pre>SELECT *<br>FROM trading.daily_btc<br>WHERE low_price IN (SELECT MIN(low_price) FROM trading.daily_btc);</pre><p>All time high: 58330.570313</p><p>Date: 2021–02–21</p><p>All time low: 171.509995</p><p>Date: 2015–01–14</p><p><strong>3. Which date had the most </strong><strong>volume traded and what was the </strong><strong>close_price for that day?</strong></p><p>Similarly, I’ll use a subquery to find the day with the MAX volume.</p><p>Max volume: 123320567399</p><p>Date: 2021–01–11</p><p>close_price: 35566.656250</p><p><strong>4. How many days had a </strong><strong>low_price price which was 10% less than the </strong><strong>open_price?</strong></p><p>First, I’ll find the days which had a low price 10% less than the open price. I’ll add WHERE criteria to find when low_price was 90% of the open_price. Here, I’m wondering if it needs to be exactly 10% less but when I try to get an exact match, I get 0 rows. So instead, I’ll find values which are 10% or more. Then, to find the number of days, I simply use a COUNT(*).</p><pre>SELECT COUNT(*)<br>FROM trading.daily_btc<br>WHERE low_price &lt; open_price*0.9</pre><p><strong>5. What percentage of days have a higher </strong><strong>close_price than </strong><strong>open_price?</strong></p><p>I’ll use a case when close_price &gt; open_price, and then get the average to find the percentage of days. Of course, this is the assumption that there is only one record per day, which had been stated in the data metatable.</p><pre>SELECT ROUND(AVG(CASE WHEN close_price &gt;= open_price THEN 1 ELSE 0 END)*100,2) as perc<br>FROM trading.daily_btc</pre><p><strong>6. What was the largest difference between </strong><strong>high_price and </strong><strong>low_price and which date did it occur?</strong></p><p>I’ll use a subquery to find the largest difference between high_price and low_price, and then find that row of data which have the same difference value (using the subquery).</p><pre>SELECT *<br>FROM trading.daily_btc<br>WHERE high_price - low_price = <br>(SELECT MAX(high_price - low_price) as price_diff<br>FROM trading.daily_btc)</pre><p><strong>7. If you invested $10,000 on the 1st January 2016 — how much is your investment worth in 1st of February 2021? Use the </strong><strong>close_price for this calculation</strong></p><p>To figure out this, let’s see how much bitcoin was worth on 1st January 2016 and in 2021. I’ll record these values in CTE and then create a calculated field to get the final investment amount.</p><pre>WITH initial AS (<br>SELECT close_price<br>FROM trading.daily_btc<br>WHERE market_date = &#39;2016-01-01&#39;), </pre><pre>later AS (<br>SELECT close_price<br>FROM trading.daily_btc<br>WHERE market_date = &#39;2021-01-01&#39;)</pre><pre>SELECT ROUND(later.close_price/initial.close_price* 10000,2) as investment<br>FROM initial, later</pre><p><strong>8. What is the average daily volume of Bitcoin for the last 7 days?</strong></p><p>There are many ways to go about this, but I’ll want to use the FRAME clause in the window function. The FRAME clause is used to include/exclude rows within each window frame when performing calculations. The default is</p><pre>RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW</pre><p>Frame components are basically structured as per follows:</p><p><strong>Frame mode</strong> (range vs rows) <strong>BETWEEN</strong></p><p><strong>Start Frame</strong> and <strong>End Frame</strong> (When to start and end)</p><p><strong>Frame Exclusion</strong> (Rows to exclude e.g Current row, ties, group)</p><pre>SELECT market_date, AVG(volume) OVER(<br>ORDER BY market_date DESC<br>RANGE BETWEEN &#39;7 DAYS&#39; PRECEDING AND &#39;1 DAY&#39; PRECEDING) as daily_avg<br>FROM trading.daily_btc <br>LIMIT 2</pre><p>Taking the range between the 1st and 7th day and then finding the latest 7 day average volume, the answer is 88364793856.</p><p><strong>9. Create a 1/0 flag if a specific day is higher than the last 7 days volume average</strong></p><p>I made the above query into a cte and added the flag as a case when statement</p><pre>WITH cte AS (<br>SELECT *, AVG(volume) OVER(<br>ORDER BY market_date DESC<br>RANGE BETWEEN &#39;7 DAYS&#39; PRECEDING AND &#39;1 DAY&#39; PRECEDING) as daily_avg<br>FROM trading.daily_btc) </pre><pre>SELECT *, <br>CASE WHEN volume &gt; daily_avg THEN 1 ELSE 0 END as flag<br>FROM cte</pre><h3>Learnings</h3><p>This dataset and questions posed required me to know how to query with MIN/MAX values. The main ways I went about that was:</p><ol><li>ORDER BY and LIMIT which worked most of the times but I had to be mindful of NULL values, which I could have used NULLS LAST to ignore.</li><li>Subquery</li></ol><p>Another thing which was asked is to find the percentage, which I used AVG and CASE WHEN to get the answer. Although there are many ways about this, I thought this was the quickest given the addition of a comparison. Overall, this was quite a simple dataset but I’m also interested to see how my queries can be shortened.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7fc6abdcc1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How my relationship with time is toxic, and probably yours too.]]></title>
            <link>https://adultingwithcheryl.medium.com/how-my-relationship-with-time-is-toxic-and-probably-yours-too-5b92926cf795?source=rss-e1b8ce4bb683------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b92926cf795</guid>
            <category><![CDATA[book-review]]></category>
            <category><![CDATA[time-management-tips]]></category>
            <category><![CDATA[book-summary]]></category>
            <category><![CDATA[time-management]]></category>
            <dc:creator><![CDATA[Cheryl]]></dc:creator>
            <pubDate>Fri, 13 May 2022 12:31:16 GMT</pubDate>
            <atom:updated>2022-05-13T12:31:16.055Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CLXw5amATwnGip4n" /><figcaption>Photo by <a href="https://unsplash.com/@aronvisuals?utm_source=ghost&amp;utm_medium=referral&amp;utm_campaign=api-credit">Aron Visuals</a> / <a href="https://unsplash.com/?utm_source=ghost&amp;utm_medium=referral&amp;utm_campaign=api-credit">Unsplash</a></figcaption></figure><p>As recommended by Youtuber Ali Abdaal, I decided to pick up the book <strong>Four Thousand Weeks: Time Management for Mortals </strong>by Oliver Burkeman. I initially thought this was a book on how to manage time better or how to be more productive. Instead, the book takes a big picture philosophical approach towards our relationship with time.</p><p>This book resonated with me in so many ways and made me reflect on my relationship with time. I believe this book will be beneficial for many given that our relationship with time is largely built on how modern society frames it.</p><p>At present, time is seen as a resource for us to utilise. We often try our best to maximise the per minute productivity. We watch Youtube videos on how to become more productive — waking up at 5.30am, using Pomodoro timers and what not. Often, we tie our self worth to how well we maximise this resource. Managed to check off 20 items off the to-do list? Nailed it! Ended up doing nothing but watching TV? Gosh, what a huge waste.</p><p>However, this view of time is rather foreign to our ancestors who did work according to seasons and never had the need to be more productive. Instead, they let time <strong>be</strong>. Time was something that just passed by, something that just existed. This quote below puts it so well:</p><blockquote><em>We are </em><strong><em>the sum of all the moments in our lives</em></strong><em> — all that is ours is in them: we cannot escape it or conceal it. — Thomas Wolfe</em></blockquote><h3>The Efficiency Trap</h3><p>You might question, what is wrong with that perception of time? It works for many people and there’s nothing wrong with trying to save time. Yet, making ourselves more efficient will only save slivers of time here and there but does not confront the bigger issue.</p><p>We like to think that we have time for all the important things in our lives. Time to spend with our loved ones, time to be the best employee, time to master our side hustle and so forth. Many of us struggle with trying to be more productive in hopes that we don’t have to disappoint anyone, especially ourselves and our ambitions. I can say that for myself.</p><p><em>“If I was more productive, I could spend time with my friends and family, do well at work, run this blog, learn the piano, learn Thai, learn skateboarding, improve at dancing, master yoga, start a business, run a youtube channel.”</em></p><p>While your variation may not be as extreme, you may find yourself thinking along the same line every now and then.</p><h3>Our Finite Time</h3><p>But the problem with trying to make time for everything that feels important is that we never will.<strong> </strong>Here’s the hard truth — <strong>we have a finite time on earth, 4000 weeks give or take</strong>. It’s a sobering number that allows us to accept our finitude. Only then can we recognise the need to prioritise what truly matters to us. Along with the hard choices to be made in prioritisation, ambitions that may never come to light, people that we may disappoint. This means that at times, we will disappoint our friends because we are busy at work. Or we might not have time to master a skill because we have family commitments. I once saw this quote “<em>If it doesn’t hurt, you’re not prioritising enough.</em>” I scoffed at that initially, surely there is a way to do it all if one tries. But given the strong evidence in the book, I realised that I do have to put down some dreams in order to let others fly. For example, I need to temporarily put down my dreams of being a famous Longboard dancer to spend the time trying to achieve my other dream of being Yoga certified. Only by accepting our finitude, prioitising and focusing on what truly matters can we then build a healthier relationship with time.</p><p>I feel that I’ve barely scratched the surface of the book and will highly recommend for everyone to read this book. Finishing this book, I’ve come to acknowledge my toxic view of time despite appearing productive. Given how society has wired us to be geared towards being more productive, it’ll take a lot of unlearning and relearning to build a healthier relationship with time. I hope all readers can take the time to pick up this book, or at least reflect on your relationship with time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b92926cf795" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Writing Your Resume For Fresh Graduates]]></title>
            <link>https://adultingwithcheryl.medium.com/writing-your-resume-for-fresh-graduates-1391f670412e?source=rss-e1b8ce4bb683------2</link>
            <guid isPermaLink="false">https://medium.com/p/1391f670412e</guid>
            <category><![CDATA[graduating-student]]></category>
            <category><![CDATA[career-advice]]></category>
            <category><![CDATA[resume]]></category>
            <category><![CDATA[finding-a-job]]></category>
            <dc:creator><![CDATA[Cheryl]]></dc:creator>
            <pubDate>Thu, 12 May 2022 12:31:10 GMT</pubDate>
            <atom:updated>2022-05-12T12:31:10.097Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Gp6JDNqKMvtdQMan" /><figcaption>Photo by <a href="https://unsplash.com/@glenncarstenspeters?utm_source=ghost&amp;utm_medium=referral&amp;utm_campaign=api-credit">Glenn Carstens-Peters</a> / <a href="https://unsplash.com/?utm_source=ghost&amp;utm_medium=referral&amp;utm_campaign=api-credit">Unsplash</a></figcaption></figure><p>When writing your resume to look for your first job, there is so much things to consider. What should you include? How do you optimise your resume such that it get picked up? I included some tips in my previous post on the format of the resume, but for this post I will focus a bit more on the content of your resume.</p><h3>First Thing First, Optimising Action Verbs</h3><p>Action verbs are the verbs used to describe what you did in your past experience. For example, <strong>designed</strong> some marketing collaterals or <strong>analysed</strong> marketing data. Action verbs might just sound like verbs to bring the point across, but they are way more than that. Many companies use an applicant tracking system to help collect and filter out some resumes. This is especially so for companies who receive large volumes of resumes. What this means is that if you don’t optimise the action verbs, your resume might not even reach a human’s eyes! I’m sure many graduates can relate to this and it’s often so disheartening when you automatically get rejected without an interview. If you find yourself stuck at what action verbs to use, there are tons online! Simply google “resume keywords” or “resume action verbs” and you’ll get a list of them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nBaGjzsLbf9heOa7.png" /></figure><h3>Quantify Your Impact</h3><p>This is where most graduates get stuck at — quantifying the past work. Yet, this is the most important part of your resume. When you say you helped increase savings for your company. The first question that would come to the reader’s mind would be “how much”? Another example, if you rolled out a new initiative, how many countries exactly? It’s important to quantify the impact to give the reader a rough gauge of your impact. It might be difficult to recall it but if you can use any rough number, it will be helpful. Here are some suggestions:</p><ol><li><strong>Reach</strong>: How many people or countries did your work impact?</li><li><strong>Uplift</strong>: How much % improvement did you help bring because of a project you did?</li></ol><p>Do not add numbers for the sake of it (e.g worked on a project for 3 months) but keep in mind the end goal — to show your impact!</p><h3>Match Your Resume To The Job Description</h3><p>The whole point of your resume is to show that you have the relevant skill set for the job based on your past experiences. Look out for the relevant keywords in the JD and try to match them to your past experience.</p><p>For example, I did a digital marketing stint where I drove some digital initiatives but also did some data analysis. When I eventually applied for analyst roles, I highlighted more of the analytics work I used to do. In contrast, when I applied for a marketing role, I highlighted more of the marketing work I did.</p><h3>To Customise Or Not To Customise?</h3><p>I want to address the common struggle I see for many graduates — having to customise your resume for each role. As a fresh graduate, you tend to cast your nets wide open to apply for close to 100 jobs. You might find customising your resume quite a waste your time, but let me compare it to using a dating app. When you slide into someone’s DM, do you use the same generic pickup line or do you customise your message according to what was mentioned in their profile? You might find that a customised message will likely be better received as it shows that you actually read their profile. Does that mean you need to customise all 100 resumes? That’ll probably take too much time but as a rule of thumb, customise resume for the jobs you actually want to get.</p><p>I hope this pointers helped and all the best in applying for jobs. Job hunting can be one of the most stressful periods of adulting but always remind yourself that there will be light at the end of the tunnel.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1391f670412e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to write a resume for your internship with no experience]]></title>
            <link>https://adultingwithcheryl.medium.com/how-to-write-a-resume-for-your-internship-with-no-experience-9fe353aeaeb1?source=rss-e1b8ce4bb683------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fe353aeaeb1</guid>
            <category><![CDATA[internships]]></category>
            <category><![CDATA[resume]]></category>
            <category><![CDATA[career-advice]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Cheryl]]></dc:creator>
            <pubDate>Wed, 11 May 2022 12:27:28 GMT</pubDate>
            <atom:updated>2022-05-11T12:27:28.081Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IevrsRdw1QI5i_Xs" /><figcaption>Photo by <a href="https://unsplash.com/@markuswinkler?utm_source=ghost&amp;utm_medium=referral&amp;utm_campaign=api-credit">Markus Winkler</a> / <a href="https://unsplash.com/?utm_source=ghost&amp;utm_medium=referral&amp;utm_campaign=api-credit">Unsplash</a></figcaption></figure><p>In my previous post, I wrote about how to find what type of internships you might be interested in. In this post, we will focus on what we can include in your resume even if you have no prior internship experience. Again, fret not! Everyone has started from square 1 with no experience before.</p><h3>Using the right format</h3><p>I’ll touch briefly on the format of the resume for those who don’t know where to start. There is no particular fixed order but most undergraduates resume I’ve seen tend to look like <a href="https://www.resumewriter.sg/blog/resume-format/">this</a>. The order isn’t set in stone and it’ll be best to follow the order typically followed in your country. Some people tend to spice up resumes to make it look more interesting. I think this can be helpful especially when you’re applying for more creative roles. However, do take note that some companies use an applicant tracking system that automatically scans for the right keywords and rejects resume who don’t have them. Making it too “creative” may make it difficult for the ATS to pick up on the relevant keywords. Ultimately, your beautiful resume may not even land in the hands of the hiring manager.</p><h3>Work Experience</h3><p>Take the time here to draw on any past experiences even if they seem irrelevant. Did you previously work as a barista or a part time tutor? You may not find those experience relevant but if this information can be useful in letting the reviewers know what skill set you might have. For example, if you have worked in customer service before, the person reading your resume now knows that you likely can handle difficult people even though you may not have the most relevant experience to the role. Don’t undermine such experiences.</p><h3>Other Experiences</h3><p>However, if you do not have any working experience at all, you can include other types of experiences that could reflect your proficiency in the relevant skill set need for the internship. This includes:</p><h4>1) Co Curricular Activities</h4><p>If you were part of an organising committee in school for a student club or an event, you can add it in as well. Depending on your role in the committee, you can highlight what you did and the relevant skills you applied. For example, the ability to lead a team or the ability to source for sponsorships.</p><h4>2) Projects</h4><p>Maybe as part of your school module, you did a project with a company. For example, your professor invited a company to work with and have them review all your projects at the end of the semester. While I wouldn’t add this in usually, it could indicate some experience working with actual real world projects.</p><p>Otherwise you can simply come up with your own project! This is especially so for more technical roles. You could work with datasets on kaggle or create your own product. When I applied for analyst roles without any working experience, I used past machine learning projects I did to indicate my proficiency in it. You can also add in any freelancing projects (paid or unpaid).</p><h3>Volunteering</h3><p>Do you volunteer regularly or even at an ad hoc basis at any organisation? It would be useful to add them in as well as they indicate:</p><ul><li>Your interest to serve the community. At times, certain companies value some causes and if it resonates strongly with them, you might stand out as a candidate.</li><li>Your proficiency in skills used during your volunteering. For example, if you managed sign up forms for an event well, it could indicate operational excellence.</li></ul><h3>Skills</h3><p>Lastly, add in the skills which shows proficiency in other things you may not have mentioned. This includes programming languages, languages and softwares. If you were certified for anything, you can add them in here as well.</p><p>These are just some of the suggestions you can write in your resume if you have no experience and have no idea what to include. I hope these starting pointers can help you fill out your resume into a substantial one pager. Next, we need to figure out how to write your resume using the right keywords while showing the impact of your work. This is extremely important as every single word in your resume matters. That’ll be for the next article but in the meantime, it’s time to get started writing your resume. In order to help you, I’ve created a <a href="https://www.itscheryltan.com/how-to-write-your-resume/">resume template</a> with the right structure and formatting to get you started. Please scroll down to the bottom for the file. I’ve also included some additional pointers on what you can include in your resume.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fe353aeaeb1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>