<?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 Kamilah Idris on Medium]]></title>
        <description><![CDATA[Stories by Kamilah Idris on Medium]]></description>
        <link>https://medium.com/@kamilahidris72?source=rss-f94883de6ab3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*bmoWSnLGpPMcRcqNn5K-2A.jpeg</url>
            <title>Stories by Kamilah Idris on Medium</title>
            <link>https://medium.com/@kamilahidris72?source=rss-f94883de6ab3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 07:35:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kamilahidris72/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[Marketing Insight Report.]]></title>
            <link>https://medium.com/@kamilahidris72/marketing-insight-report-b8b12b483dde?source=rss-f94883de6ab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8b12b483dde</guid>
            <dc:creator><![CDATA[Kamilah Idris]]></dc:creator>
            <pubDate>Thu, 30 Jan 2025 12:08:15 GMT</pubDate>
            <atom:updated>2025-01-30T12:29:54.444Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Retails Sales Data.</strong></p><h3>Introduction</h3><p>This report presents an initial exploration of the Retail Sales Dataset, aimed at identifying key marketing insights that can enhance sales strategies and business decisions.</p><p><strong>Objectives</strong></p><p>The main objectives of this analysis are;</p><ul><li>to identify top-selling products that drive revenue.</li><li>to analyze customer purchasing trends across different regions and segments.</li><li>to examine traffic sources that contribute to sales and profitability.</li><li>to determine the most used shipment mode and its impact on sales performance.</li></ul><p><strong>Dataset Details</strong></p><p>The dataset consists of key variables that provide essential insights. These include:</p><ul><li><strong>Ship Mode</strong> — The method of delivery chosen by customers.</li><li><strong>Categories &amp; Sub-Categories</strong> — Classification of products sold.</li><li><strong>Segment</strong> — Customer groups based on demographics or buying behavior.</li><li><strong>Geographic Data</strong> — country, state, city, and postal codes.</li><li><strong>Profit &amp; Sales</strong> — Financial metrics measuring performance.</li><li><strong>Quantity</strong> — Number of units sold per transaction.</li></ul><h3>Observations</h3><p><strong>Sales Trends</strong></p><p>From the dataset, <strong>Binders</strong> from the <strong>Office Supplies</strong> category emerged as the highest revenue-generating product, contributing significantly to total sales of <strong>1,523</strong>. This suggests a strong demand for office-related products, making them an ideal focus for marketing campaigns and promotions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/0*f205r7ntBreaY-Tf" /></figure><p><strong>Sales Distribution by Regions.</strong></p><p>The <strong>Western region</strong> recorded the highest number of orders, with a total of <strong>3,203</strong>, indicating the highest sales distribution. This suggests that customers in this region are highly engaged in purchasing activities, presenting opportunities for targeted marketing strategies to maintain and expand market share.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/0*qIiJ0hBkMFcoglL_" /></figure><p><strong>Most Used Shipment Mode</strong></p><p>The <strong>Standard Class</strong> shipment mode is the most frequently used, accounting for <strong>5,968</strong> orders, which represents a significant portion of the total sales. This indicates that customers prioritize cost-effective shipping options over faster delivery methods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/0*SMpJ-PMVfaHpWxaj" /></figure><p><strong>Customer Trends and buying Behavior</strong></p><p>An analysis of customer segments shows that the <strong>Consumer Segment</strong> accounts for a significant portion of sales, followed by <strong>Corporate and Home Office</strong> segments. Understanding customer purchasing behavior can help businesses tailor marketing strategies to specific customer needs, offering personalized discounts or bundle deals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/0*xlLCJMqx7h1Mmwua" /></figure><p><strong>Conclusion.</strong></p><p>The dataset provides valuable insights into <strong>top-selling products, high-performing regions, and preferred sales channels.</strong> Leveraging these insights can improve sales strategies and optimize marketing efforts.</p><p><strong>Suggestion.</strong></p><p>To enhance marketing effectiveness, consider targeted promotions and leveraging popular product categories to increase revenue by encouraging customers to purchase more or higher-value products.</p><ul><li><a href="https://hng.tech/internship">HNG Internship | HNG</a></li><li><a href="https://hng.tech/hire">HNG</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8b12b483dde" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basic Syntax, Aggregation Functions and Query and Sorting In SQL]]></title>
            <link>https://medium.com/@kamilahidris72/basic-syntax-aggregation-functions-and-query-and-sorting-in-sql-c48fd9010fee?source=rss-f94883de6ab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/c48fd9010fee</guid>
            <dc:creator><![CDATA[Kamilah Idris]]></dc:creator>
            <pubDate>Sat, 14 Dec 2024 08:28:43 GMT</pubDate>
            <atom:updated>2024-12-14T08:28:43.294Z</atom:updated>
            <content:encoded><![CDATA[<h4>Scenario:</h4><p>Creating a Sales Table, that contain information about the SaleID, ProductID, CustomerID, SalesDate, Quantity, Unitprice.</p><p><strong>dbo.Sales</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/0*nncVtAJmhh7R1s5p" /></figure><p><strong>— -1. Write a query to select all columns from the ‘Sales’ table</strong></p><p>SELECT *</p><p>FROM Sales</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/0*MRqrjiRibv1R9ZQx" /></figure><p><strong>— 2. Write a query to find all ‘Sales’ where the Quantity is greater than 10</strong></p><p>SELECT SalesID, Quantity</p><blockquote>FROM Sales</blockquote><p>WHERE Quantity &gt; 10</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/258/0*DEzm7x6ot4n7l86U" /></figure><p><strong>— 3. Write a query to find all Sales where the ‘Quantity’ is greater than 10 and the ‘UnitPrice’ is greater than 20.</strong></p><p>SELECT SaleID,Quantity,Unitprice</p><p>FROM Sales</p><p>WHERE Quantity &gt; 10</p><p>AND UnitPrice &gt; 20</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/265/0*sEh97FVHkO5n1x4n" /></figure><p><strong>— 4. Write a query to find all sales where the ‘Quantity’ is greater than 10 or the Unitprice is greater than 20.</strong></p><p>SELECT SaleID, Quantity, UnitPrice</p><p>FROM Sales</p><p>WHERE Quantity &gt; 10 OR UnitPrice &gt; 20</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/0*1MneWyGpVWo7tp8e" /></figure><p><strong>— 5. Write a query to select all columns from the sales table and order the results by salesDate in ascending order.</strong></p><p>SELECT *</p><p>FROM Sales</p><p>ORDER BY SaleDate ASC</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/0*HHLBpRQ9ApRd2QMg" /></figure><p><strong>— 6. Write a query to select all columns from the sales table and order the results by ‘UnitPrice’ in descending order.</strong></p><p>SELECT *</p><p>FROM Sales</p><p>ORDER BY UnitPrice DESC</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/0*eQGEJKMTMA_u4TJW" /></figure><p><strong>— 7. Write a query to group the sales by ProductID and calculate the total quantity sold for each product.</strong></p><p>SELECT ProductID,SUM(Quantity) AS total_quantity</p><p>FROM Sales</p><p>GROUP BY ProductID</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/253/0*tUu3sdyHkP8yP-gq" /></figure><p><strong>— 8. Write a query to group the sales by ProductID and find products that have sold more than 100 units in total.</strong></p><p>SELECT ProductID, SUM(Quantity) AS total_Quantity</p><p>FROM Sales</p><p>GROUP BY ProductID</p><p>HAVING SUM(Quantity) &gt; 100</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/262/0*MwBn7e_lqMa-UUmv" /></figure><p><strong>— 9. Write a query to count the number of sales that occurred for each product</strong></p><p>SELECT ProductID, Count(*) AS number_of_sales</p><p>FROM Sales</p><p>GROUP BY ProductID</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/266/0*52B-Y3YNkz6jAHKK" /></figure><p><strong>— 10. Write a query to calculate the total revenue(Quantity Unitprice) for each product.</strong></p><p>SELECT ProductID, SUM(Quantity * UnitPrice) AS Total_revenue</p><p>FROM Sales</p><p>GROUP BY ProductID</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/258/0*XMeWPPLMyMaOh1PO" /></figure><p><strong>— 11. write a query to calculate average Unitprice for each product.</strong></p><p>SELECT ProductID, AVG(UnitPrice) AS Average_unitprice</p><p>FROM Sales</p><p>GROUP BY ProductID</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/0*9Bt6jgCKOrFZriR1" /></figure><p><strong>— 12. write a query to find the minimum Unitprice for each product.</strong></p><p>SELECT ProductID, MIN(UnitPrice) AS Minimun_unitprice</p><p>FROM Sales</p><p>GROUP BY ProductID</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/278/0*A_xPxIm70JdyOayp" /></figure><p><strong>— 13. write a query to find the maximum Unitprice for each product.</strong></p><p>SELECT ProductID, MAX(UnitPrice) AS Maximum_unitprice</p><p>FROM Sales</p><p>GROUP BY ProductID</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/0*IMafPgRYgjOPUxgd" /></figure><p><strong>— 14. write a query to find all sales where Quantity is greater than 5 and Salesdate is in the year 2023</strong></p><p>.</p><p>SELECT *</p><p>FROM Sales</p><p>WHERE Quantity &gt;5</p><p>AND YEAR(SaleDate) = ‘2023’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/0*aWFhgt64W2xKeO2T" /></figure><p><strong>— 15. write a query to select all columns from the sales table and order the result by ProductID and then by Salesdate in ascending order.</strong></p><p>SELECT *</p><p>FROM Sales</p><p>ORDER BY ProductID, SaleDate ASC</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/0*JGBDWJ9dm225dy2y" /></figure><p><strong>— 16. write a query to group the sales table by ‘CustomerID’ and find customers who have made purchases worth more than $500 in total.</strong></p><p>SELECT CustomerID, SUM(Quantity*Unitprice) AS Total_purchase</p><p>FROM Sales</p><p>GROUP BY CustomerID</p><p>HAVING SUM(Quantity*Unitprice) &gt; 500</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/0*9BeDSp3kCWKC7bYw" /></figure><p><strong>— -17. write a query to group the sales by ProductID and count the number of sales for each product where the total number of sales is more than 50.</strong></p><p>SELECT ProductID, COUNT(Quantity) AS Total_numebr_of_sales</p><p>FROM Sales</p><p>GROUP BY ProductID</p><p>HAVING COUNT(Quantity) &gt; 50</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/307/0*733jrYubdwuh3FH0" /></figure><p><strong>— -18. write a query to calculate the total revenue for sales where the unitprice is greater than 15</strong></p><p>SELECT *,SUM (Quantity*UnitPrice) AS Total_revenue</p><p>FROM Sales</p><p>WHERE UnitPrice &gt; 15</p><p>GROUP BY ProductID</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/0*uqlCWQIMHkqqynHZ" /></figure><p><strong>— -19. write a query to group the sales by ProductID and calculate the average quantity sold for each product.</strong></p><p>SELECT ProductID, AVG(Quantity) AS Average_quantity</p><p>FROM Sales</p><p>GROUP BY ProductID</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/0*FMnWIdRVmeZH1kEU" /></figure><p><strong>— -20. write a query to select ProductID, count the number of sales and calculate the total revenue for each product,only include products that have more than 20 sales and order the result by total revenue in descending order.</strong></p><p>SELECT ProductID, COUNT(SaleID) AS Number_of_sales, SUM(Quantity*UnitPrice) AS Total_revenue</p><p>FROM Sales</p><p>GROUP BY ProductID,Quantity</p><p>HAVING ProductID &gt; 20</p><p>ORDER BY Total_revenue DESC</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/0*BXEu5yrWOieKnqs7" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c48fd9010fee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flood Prediction Report of Lagos State.]]></title>
            <link>https://medium.com/@kamilahidris72/flood-prediction-report-of-lagos-state-6e7e27626669?source=rss-f94883de6ab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e7e27626669</guid>
            <dc:creator><![CDATA[Kamilah Idris]]></dc:creator>
            <pubDate>Mon, 08 Jul 2024 20:19:31 GMT</pubDate>
            <atom:updated>2024-07-08T20:19:31.238Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*57OkwjaH0lbpJIeu" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*yy15v9Yh5Y45q_v9" /></figure><h3>Introduction</h3><p>This report aims to predict the likely period of the next flood in lagos state. This is based on the historical weather data from 2010–2024.</p><p>Dataset Details</p><p>This includes weather attributes such as:</p><p>· Date : 2010–2024</p><p>· Precipitation</p><p>· Precipitation cover</p><p>· Precipitation type</p><p>· Sea level pressure</p><p>· Total precipitation</p><p><strong>PRECIPITATION</strong></p><p>This refers to any form of water, liquid or solid, that falls from the atmosphere and reaches the ground. It is a crucial component of the Earth’s water cycle and includes various types of atmospheric water phenomena. The main forms of precipitation are:</p><p>1. <strong>Rain:</strong> Liquid water droplets that fall when atmospheric water vapor condenses to form droplets that become heavy enough to overcome air resistance and gravity.</p><p>2. <strong>Snow: </strong>Frozen precipitation that occurs when temperatures are low enough for water vapor to form ice crystals, which then clump together to fall as snowflakes.</p><p>Precipitation is measured using a variety of instruments, including rain gauges for liquid precipitation and snow gauges or snow boards for solid forms. Precipitation is an important factor in weather patterns, climate and hydrology, affecting water supply, agriculture and ecosystem.</p><p><strong>Calculating Total Precipitation</strong></p><p><strong>By Year</strong></p><p>From the diagram below, 2011 had a total precipitation of 3,898.00 when measured by year making it the year with the highest Precipitation. Note, high precipitation level is relative to increased rainfall, which has a high tendency of causing floods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*eZ3UddnjroiveboB" /><figcaption>Total Precipitation By Year.</figcaption></figure><p><strong>By Month &amp; day</strong></p><p>When total precipitation is measured by month, from 2010–2024, June had the highest total precipitation of 4,080.30 and January had the lowest total precipitation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*Cz8yM3kJICGaqBO4" /><figcaption>Total Precipitation By Month</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*O3PlJzpXHtrYpB0p" /><figcaption>Total Precipitation By Day</figcaption></figure><p><strong>Flood Indicator</strong></p><p>Creating a Flood Indicator helps to predict potential flooding events based on precipitation levels and other relevant weather data. The formula below can be use to create a flood indicator using Power bi</p><p>Flood Indicator = IF(‘Sheet1’[precip] &gt; 1936.2, “Yes”, “No”)</p><p>Where sheet1= name of sheet</p><p>Precip = precipitation</p><p>1936.2mm = Precipitation threshold for lagos this year.</p><p>Precipitation Threshold is the predefined value of precipitate above which certain conditions such as flooding, are likely to occur.</p><p>Flood Indicators serves as;</p><p>· Warning system: This allows timely warning to be issued to residents and authorities.</p><p>· Risk Management and Mitigation: understanding when and where floods are likely to occur enables better planning.</p><p>· Climate Change Adaptation: it helps track changes in climate pattern, frequency and severity of flood.</p><p><strong>Flood History</strong></p><p>From the diagram below, a count of 730 flood indicators for the year 2011, suggests that flood based on the precipitation Threshold, recorded 730 instances of flood within that year. A year is 365 days, a count of 730 would indicate an average of 2 flood indicators per day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*CvzyRGLRbxkyqTIJ" /><figcaption>Number Of Flood By Year</figcaption></figure><p><strong>Using Forecast</strong></p><p>Forecasting is making predictions about future events or conditions based on historical data and statistical models. The dark part of the diagram below, predicts the rain will be in the future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*b48PuvjjS1C904S3" /><figcaption>Forecast</figcaption></figure><p><strong>Conclusion</strong></p><p>From the findings above, there would be a potential flooding in the Mid-year (June). Authorities of lagos should reinforce regular clearing of the drainage systems and continuous monitoring of the weather. Residents should avoid dumping waste on the road and in the drainage system. This will prevent blockage of the drainage system and improve flow of water.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e7e27626669" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>