<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mugo Mwaniki Peter</title>
    <description>The latest articles on DEV Community by Mugo Mwaniki Peter (@mugomwaniki).</description>
    <link>https://dev.to/mugomwaniki</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1882604%2F92e849e3-78de-4c9e-a43b-cbb0bb5aa6f2.png</url>
      <title>DEV Community: Mugo Mwaniki Peter</title>
      <link>https://dev.to/mugomwaniki</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mugomwaniki"/>
    <language>en</language>
    <item>
      <title>HOW I STARTED SQL</title>
      <dc:creator>Mugo Mwaniki Peter</dc:creator>
      <pubDate>Mon, 12 Aug 2024 09:35:18 +0000</pubDate>
      <link>https://dev.to/mugomwaniki/how-i-started-sql-4kl6</link>
      <guid>https://dev.to/mugomwaniki/how-i-started-sql-4kl6</guid>
      <description>&lt;p&gt;What is SQL?&lt;/p&gt;

&lt;p&gt;SQL (Structured Query Language) is a programming language designed for managing data in a relational database.&lt;/p&gt;

&lt;p&gt;Why SQL?&lt;/p&gt;

&lt;p&gt;SQL is the “meat and potatoes” of data analysis&lt;br&gt;
It’s used for accessing, cleaning, and analyzing data that’s stored in databases&lt;br&gt;
It’s semantically easy to understand and learn.&lt;br&gt;
Because it can be used to access large amounts of data directly where it’s stored, analysts don’t have to copy data into other applications.&lt;br&gt;
Compared to spreadsheet tools, data analysis done in SQL is easy to audit and replicate.&lt;/p&gt;

&lt;p&gt;SELECT and FROM&lt;br&gt;
SELECT indicates which columns you’d like to view, and FROM identifies the table that they are a part of.&lt;/p&gt;

&lt;p&gt;SELECT Colname1,Colname2, Colname3...&lt;br&gt;
FROM Tablename&lt;br&gt;
If you want to select every column in a table, you can use * instead of the column names&lt;/p&gt;

&lt;p&gt;The syntax in SQL is not case sensitive.&lt;br&gt;
To format the way table names are printed using SELECT :&lt;/p&gt;

&lt;p&gt;SELECT existingcolname AS wantedcolname,&lt;br&gt;
  FROM Tablename&lt;br&gt;
Note : SELECT does NOT change any data in the database, it can only be used to fetch and print data.&lt;/p&gt;

&lt;p&gt;LIMIT&lt;br&gt;
LIMIT is used as a simple way to keep their queries from taking too long to return.&lt;br&gt;
If the aim is to just look at data then first few are enough, no point in printing millions of rows because the query will take too long to give results.&lt;/p&gt;

&lt;p&gt;SELECT Colname1,Colname2, Colname3...&lt;br&gt;
FROM Tablename&lt;br&gt;
LIMIT number&lt;/p&gt;

&lt;p&gt;ORDER BY&lt;br&gt;
ORDER BY is used when the result of a query are to be presented in an orderly fashion ( rating of products from highest to lowest ).&lt;/p&gt;

&lt;p&gt;SELECT *&lt;br&gt;
FROM tablename&lt;br&gt;
ORDER BY colname&lt;br&gt;
Orders the results in increasing order of column colname. The results are printed in ascending order by default, to print in descending order DESC has to be specified after each column in the clause.&lt;br&gt;
Example: ORDER BY colname DESC&lt;br&gt;
Ordering can also be done with multiple columns when the results need to be ordered but every category needs to be preserved.&lt;/p&gt;

&lt;p&gt;SELECT *&lt;br&gt;&lt;br&gt;
FROM tablename&lt;br&gt;&lt;br&gt;
ORDER BY colname1, colname2&lt;/p&gt;

&lt;p&gt;Comments&lt;br&gt;
Comments are used to enhance the readability of code. When written between code lines the interpreter identifies them and does not execute them. Comments can span across one or multiple lines.&lt;br&gt;
Single line comment : You can use — — (two dashes) to comment out everything to the right of them on a given line&lt;/p&gt;

&lt;p&gt;SELECT *  --This comment won't affect the way the code runs&lt;br&gt;
FROM tablename&lt;/p&gt;

&lt;p&gt;Multi line Comment : Comments across multiple lines use /* to begin the comment and */ to close.&lt;/p&gt;

&lt;p&gt;SELECT *  /* Here's a comment so long and descriptive that&lt;br&gt;
it could only fit on multiple lines. Fortunately,&lt;br&gt;
it, too, will not affect how this code runs.&lt;br&gt;
 */&lt;br&gt;
FROM tablename&lt;br&gt;
WHERE&lt;br&gt;
WHERE is used to filter the data with the help of a condition utilizing the comparison and logical operators.&lt;/p&gt;

&lt;p&gt;SELECT Colname1,Colname2, Colname3...&lt;br&gt;
FROM Tablename&lt;br&gt;
WHERE condition&lt;br&gt;
LIMIT number&lt;/p&gt;

</description>
    </item>
    <item>
      <title>DATA ANALYSIS TODAY</title>
      <dc:creator>Mugo Mwaniki Peter</dc:creator>
      <pubDate>Sun, 04 Aug 2024 20:59:32 +0000</pubDate>
      <link>https://dev.to/mugomwaniki/data-analyis-today-24fn</link>
      <guid>https://dev.to/mugomwaniki/data-analyis-today-24fn</guid>
      <description>&lt;p&gt;Embarking on a Data Analysis Journey with Lux ACADEMY Bootcamp&lt;/p&gt;

&lt;p&gt;Just last week, I embarked on an exciting journey into the world of data analysis through Lux ACADEMY Bootcamp. As a professional with a passion for data, this bootcamp has been the perfect opportunity to deepen my knowledge and hone my skills. Although we are still in the early stages, the experience has already been incredibly enriching and engaging.&lt;/p&gt;

&lt;p&gt;Introduction to Essential Tools&lt;/p&gt;

&lt;p&gt;Our introduction to the field began with a focus on some of the most essential tools used in data analysis. We started with Google Colab, a powerful platform that facilitates collaborative work and provides a convenient way to write and execute Python code in a Jupyter notebook environment. This tool has been instrumental in our initial explorations of data manipulation and analysis.&lt;/p&gt;

&lt;p&gt;Diving into Python for Analysis&lt;/p&gt;

&lt;p&gt;As part of the curriculum, we've begun delving into Python, one of the most versatile and widely-used programming languages in data analysis. The course covered the basics and then moved on to more advanced topics, providing us with a solid foundation in using Python for various analytical tasks. From data cleaning and manipulation to creating visualizations, Python has proven to be an indispensable tool in our toolkit.&lt;/p&gt;

&lt;p&gt;Exploring SQL for Database Management&lt;/p&gt;

&lt;p&gt;In addition to Python, we've also started learning SQL (Structured Query Language), which is crucial for database management and data querying. Understanding how to efficiently retrieve and manage data from relational databases is a vital skill for any data analyst. The bootcamp has introduced us to fundamental SQL concepts, such as writing queries, filtering data, and aggregating results.&lt;/p&gt;

&lt;p&gt;Ongoing Learning and Future Prospects&lt;/p&gt;

&lt;p&gt;As we progress through the bootcamp, I am eager to continue expanding my knowledge and skills. The practical, hands-on approach of Lux CDEMY Bootcamp has been a fantastic way to apply what we're learning in real-world scenarios. While we're still in the early stages of our journey, the foundation we've built so far is already opening up new perspectives on data analysis.&lt;/p&gt;

&lt;p&gt;I look forward to sharing more insights and experiences as we delve deeper into this fascinating field. Stay tuned for updates on our progress and the exciting projects we'll be undertaking!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
