<?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: Muhammad Rameez</title>
    <description>The latest articles on DEV Community by Muhammad Rameez (@zapeeosheikh).</description>
    <link>https://dev.to/zapeeosheikh</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%2F834351%2Fd8adbed4-4c81-4021-8650-b1f1f48bbf15.jpeg</url>
      <title>DEV Community: Muhammad Rameez</title>
      <link>https://dev.to/zapeeosheikh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zapeeosheikh"/>
    <language>en</language>
    <item>
      <title>Container Services on AWS</title>
      <dc:creator>Muhammad Rameez</dc:creator>
      <pubDate>Fri, 15 Sep 2023 20:46:39 +0000</pubDate>
      <link>https://dev.to/zapeeosheikh/container-services-on-aws-174h</link>
      <guid>https://dev.to/zapeeosheikh/container-services-on-aws-174h</guid>
      <description>&lt;p&gt;AWS offers a broad spectrum of compute offerings, that give you the flexibility to choose the right tool for the right job. &lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;three main categories&lt;/strong&gt; of compute are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;virtual machines&lt;/li&gt;
&lt;li&gt;containers&lt;/li&gt;
&lt;li&gt;serverless &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There is no one-size-fits-all service because it depends on your needs.The key is to understand what each option has to offer in order to build a more appropriate cloud architecture for your use case. Let's talk about containers first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;WHAT ARE CONTAINERS?&lt;/strong&gt;&lt;br&gt;
A container is a standardized unit that packages up your code and all of its dependencies. This package is designed to run reliably on any platform, because the container creates its own independent environment. This makes it easy to carry workloads from one place to another, such as from development to production or from on-premises to the cloud. e.g. Flutter/VCS on Github.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;WHAT IS DOCKER?&lt;/strong&gt;&lt;br&gt;
You will get to hear about the &lt;strong&gt;docker&lt;/strong&gt; along with the container very often. Docker is a popular &lt;strong&gt;container runtime&lt;/strong&gt; that simplifies the management of the entire operating system stack needed for container isolation, including networking and storage. Docker makes it easy to create, package, deploy, and run containers.&lt;/p&gt;

&lt;p&gt;AWS offers two container orchestration services: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Amazon Elastic Container Service (ECS) &lt;/li&gt;
&lt;li&gt;Amazon Elastic Kubernetes Service (EKS)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;MANAGE CONTAINERS WITH AMAZON ELASTIC CONTAINER SERVICE (AMAZON ECS)&lt;/strong&gt;&lt;br&gt;
Amazon ECS is an end-to-end container orchestration service that allows you to quickly spin up new containers and manage them across a cluster of EC2 instances. Have a look at the illustration, given below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9ApyoDC3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a7dbwx7pgnnu36xx7u0p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9ApyoDC3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a7dbwx7pgnnu36xx7u0p.png" alt="AMAZON ECS" width="443" height="489"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;If you want to use ECS Service, you simply need to install this agent in your EC2 instance. You can run this agent on both Linux and Windows AMIs (Amazon Machine Image). An instance with the container agent installed is often called a container instance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;USE KUBERNETES WITH AMAZON ELASTIC KUBERNETES SERVICE (AMAZON EKS)&lt;/strong&gt;&lt;br&gt;
Kubernetes is a portable, extensible, open source platform for managing containerized workloads and services. By bringing software development and operations together by design, Kubernetes created a rapidly growing ecosystem that is very popular and well established in the market. &lt;/p&gt;

&lt;p&gt;If you are familiar with Kubernetes, you can use &lt;strong&gt;Amazon EKS&lt;/strong&gt; to orchestrate these workloads in the AWS Cloud. Amazon EKS is conceptually similar to &lt;strong&gt;Amazon ECS&lt;/strong&gt;, but there are some differences.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An EC2 instance with the ECS Agent installed and configured is called a &lt;strong&gt;container instance&lt;/strong&gt;. In Amazon EKS, it is called a &lt;strong&gt;worker node&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;An ECS Container is called a &lt;strong&gt;task&lt;/strong&gt;. In the Amazon EKS ecosystem, it is called a &lt;strong&gt;pod&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;While Amazon ECS runs on &lt;strong&gt;AWS native technology&lt;/strong&gt;, Amazon EKS runs on &lt;strong&gt;top of Kubernetes&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;WHAT ARE SERVERLESS COMPUTE?&lt;/strong&gt;&lt;br&gt;
Amazon offer some services that are completely managed by user and some services that are some how abstracted from a user, these services only contains the action to perform not the complete insides like networking capacity, scalability. Amazon manage these things itself, these type of abstract services are called as &lt;strong&gt;Serverless computing&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt; EC2 is a virtual server but amazon lambda is serverless.&lt;/p&gt;

&lt;p&gt;Remember, EC2 is a virtual server so it cannot provide severless services. We can use &lt;strong&gt;Amazon Fargate&lt;/strong&gt; with Amazon ECS and Amazon EKS as a serverless service. So, no need to manage elasticity, scalability e.t.c&lt;/p&gt;

</description>
      <category>containers</category>
      <category>aws</category>
      <category>service</category>
      <category>amazon</category>
    </item>
    <item>
      <title>Elastic compute cloud (EC2)</title>
      <dc:creator>Muhammad Rameez</dc:creator>
      <pubDate>Tue, 05 Sep 2023 18:38:49 +0000</pubDate>
      <link>https://dev.to/zapeeosheikh/aws-compute-network-1mhm</link>
      <guid>https://dev.to/zapeeosheikh/aws-compute-network-1mhm</guid>
      <description>&lt;p&gt;&lt;strong&gt;EC2 (Elastic Compute Cloud):&lt;/strong&gt;&lt;br&gt;
Amazon EC2 is a web service that provides secure, resizable compute capacity in the cloud. It allows you to provision virtual servers called EC2 instances. Although AWS uses the phrase “web service” to describe it, it doesn’t mean that you are limited to running just web servers on your EC2 instances. You can create and manage these instances through the AWS Management Console, the AWS Command Line Interface (CLI), AWS Software Development Kits (SDKs), or through automation tools.&lt;/p&gt;

&lt;p&gt;When launching an EC2 instance, the first setting you configure is which operating system you want by selecting an Amazon Machine Image (AMI).&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;AMI (Amazon Machine Image):&lt;/strong&gt;&lt;br&gt;
In the traditional infrastructure world, the process of spinning up a server consists of installing an operating system from installation disks, installation drives, or installation wizards over the network. In the AWS Cloud, this operating system installation is no longer your responsibility, and is instead built into the AMI that you choose. Not only does an AMI let you configure which operating system you want, you can also select storage mappings, the architecture type (such as 32-bit, 64-bit, or 64-bit ARM), and additional software installed.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;What Is the Relationship Between AMIs and EC2 Instances?&lt;/strong&gt;&lt;br&gt;
EC2 instances are live instantiations of what is defined in an AMI, much like a cake is a live instantiation of a cake recipe. &lt;/p&gt;

&lt;p&gt;If you are familiar with software development, you can also see this kind of relationship between a Class and an Object.&lt;/p&gt;

&lt;p&gt;One advantage of using AMIs is that they are reusable. You can easily re-use one AMI into the other EC2 Instance.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AMI Instance - Life Cycle:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--KPPO109S--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sncrsveiwkzjy34y9kq7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--KPPO109S--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sncrsveiwkzjy34y9kq7.png" alt="AMI Instance" width="800" height="246"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Terminating an EC2 instance is a bad thing. So, you can create more instance when the demand is high and shut down the instance or stopped the instance when the demand is low. Remember, You can only get paid for what, EC2 Instance that are in running position. AWS does not charge usage or data transfer fees for your instance after you stop it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to launch EC2 Instance?&lt;/strong&gt;&lt;br&gt;
Launch an EC2 instance that hosts the &lt;strong&gt;employee directory application&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If needed, log in to the AWS Management Console as your Admin user (Other then root user/IAM user).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In the Services search bar, search for EC2, and open the service by choosing EC2.&lt;/li&gt;
&lt;li&gt;In the navigation pane, under Instances choose Instances.&lt;/li&gt;
&lt;li&gt;Choose Launch instances.&lt;/li&gt;
&lt;li&gt;For Name use &lt;code&gt;employee-directory-app&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Under Application and OS Images (Amazon Machine Image), choose the default Amazon Linux 2023.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Under Instance type, select t2.micro.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Under Key pair (login), choose Create a new key pair.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;For Key pair name, paste app-key-pair. Choose Create key pair. The required .pem file should automatically download for you.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Under Network settings and Edit: Keep the default VPC selection, which should have (default) after the network name&lt;br&gt;
Subnet: Choose the first subnet in the dropdown list&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Auto-assign Public IP: Enable&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Under Firewall (security groups) choose Create security group use app-sg for the Security group name and Description.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Under Inbound security groups rules choose Remove above the ssh rule.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Choose Add security group rule. For Type choose HTTP. Under Source type choose Anywhere.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Expand Advanced details and under IAM instance profile choose S3DynamoDBFullAccessRole.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In the User data box, paste the following code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#!/bin/bash -ex
wget https://aws-tc-largeobjects.s3-us-west-2.amazonaws.com/DEV-AWS-MO-GCNv2/FlaskApp.zip
unzip FlaskApp.zip
cd FlaskApp/
yum -y install python3-pip
pip install -r requirements.txt
yum -y install stress
export PHOTOS_BUCKET=${SUB_PHOTOS_BUCKET}
export AWS_DEFAULT_REGION=&amp;lt;INSERT REGION HERE&amp;gt;
export DYNAMO_MODE=on
FLASK_APP=application.py /usr/local/bin/flask run --host=0.0.0.0 --port=80
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the pasted code, change the following line to match your Region (your Region is listed at the top right, next to your user name):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export AWS_DEFAULT_REGION=&amp;lt;INSERT REGION HERE&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
The following example uses the US West (Oregon) Region, or us-west-2.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;export AWS_DEFAULT_REGION=us-west-2&lt;/code&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; In a later lab, you will modify this user data script again to use your Amazon Simple Storage Service (Amazon S3) bucket. For now, keep ${SUB_PHOTOS_BUCKET} in the script.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;Choose Launch instance.&lt;/li&gt;
&lt;li&gt;Choose View all instances.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The instance should now be listed under Instances.&lt;br&gt;
&lt;em&gt;Wait for the Instance state to change to Running and the Status check to change to 2/2 checks passed.&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Often, the status checks update, but the console user interface (UI) might not update to reflect the most recent information. You can minimize waiting by refreshing the page after a few minutes.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;How to view your hosted application?&lt;/strong&gt;&lt;br&gt;
Let's see the running application on the instance in a web browser window.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Select the instance by selecting its check box.&lt;/li&gt;
&lt;li&gt;Instance information should load on the tabs in the pane.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On the Details tab, copy the Public IPv4 address.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Make sure that you only copy the address instead of choosing the open address link.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;In a new browser window, paste the IP address that you copied. Make sure to remove the ‘S’ after HTTP so you are using only HTTP instead.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;You should see an Employee Directory placeholder. Right now, you won’t be able to interact with it yet because the application isn’t connected to a database.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Congratulations! You have successfully created an EC2 instance, which hosts the employee directory application.
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;How to stop EC2 Instance?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;After you finish exploring the instance, you will stop and terminate your instance so that you don’t incur future costs.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Go back to the AWS Management Console.&lt;/li&gt;
&lt;li&gt;The employee-directory-app instance should still be selected.&lt;/li&gt;
&lt;li&gt;At the top of the console pane, choose Instance state, choose Stop instance, and choose Stop.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;The status in the Instance state column will eventually go into the Stopped state.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Next, you will terminate the instance.&lt;/li&gt;
&lt;li&gt;Make sure that check box next to the instance Name is selected.&lt;/li&gt;
&lt;li&gt;Choose Instance state, choose Terminate instance, and choose Terminate.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--nPw8T-pv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7xsj66e6a1uqvqymnvz4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nPw8T-pv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7xsj66e6a1uqvqymnvz4.png" alt="Stopped" width="800" height="182"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ec2</category>
      <category>aws</category>
      <category>elasticcomputecloud</category>
      <category>cloud</category>
    </item>
    <item>
      <title>Getting Started with AWS Cloud</title>
      <dc:creator>Muhammad Rameez</dc:creator>
      <pubDate>Fri, 01 Sep 2023 13:53:17 +0000</pubDate>
      <link>https://dev.to/zapeeosheikh/getting-started-with-aws-cloud-136p</link>
      <guid>https://dev.to/zapeeosheikh/getting-started-with-aws-cloud-136p</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is the Cloud?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In the past, companies and organizations hosted and maintained hardware such as compute, storage, and networking equipment in their own data centers. They needed to allocate entire infrastructure departments to take care of them, resulting in a costly operation that made some workloads and experimentation impossible.&lt;/p&gt;

&lt;p&gt;As internet usage became more widespread, the demand for compute, storage, and networking equipment increased. For some companies and organizations, the cost of maintaining a large physical presence was unsustainable. To solve this problem, cloud computing was created.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is the Cloud Computing?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Cloud computing is the on-demand delivery of IT resources over the internet with pay-as-you-go pricing. You no longer have to manage and maintain your own hardware in your own data centers. Companies like AWS own and maintain these data centers and provide virtualized data center technologies and services to users over the internet.&lt;/p&gt;

&lt;p&gt;Cloud computing not only saves time but also provide reliability, scalability, cost effectiveness, presistancy, predictiveness.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Six Benefits of Cloud Computing&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You will pay for what, you have used&lt;/li&gt;
&lt;li&gt;Auto Scalability&lt;/li&gt;
&lt;li&gt;High Speed Support&lt;/li&gt;
&lt;li&gt;Stop spending money for maintaining data centers&lt;/li&gt;
&lt;li&gt;Deploy your application in minutes or in few clicks&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;On-Premise vs Cloud:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Case 1:&lt;br&gt;
What if, we save our important data in our laptop but unfortunately laptop has stolen. There is no way to recover that data, if it is not backed-up on Cloud. &lt;/p&gt;

&lt;p&gt;Case 2:&lt;br&gt;
What if, the Cloud datacenter got destroyed through fire. No worries, in this case our data is still safe because Data Centers are decentralized, which means all of the data centers are connected with each other. &lt;/p&gt;

&lt;p&gt;In any case of uncertainty, the second datacenter keep on running under the absence of first data center. That, cluster of datacenter is called &lt;strong&gt;Availability Zone&lt;/strong&gt;. The clusters of AZ (Availability Zone) is called as Region.&lt;/p&gt;

&lt;p&gt;When a cluster of AZ in region-1 is down for any reason then cluster of AZ in region-2 will start working.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aEBPPgSN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y61yvmfnpvly8846ydg8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aEBPPgSN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y61yvmfnpvly8846ydg8.png" alt="AZ" width="800" height="597"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Three thing you might consider while selecting region:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It must contains:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Low latency rate&lt;/li&gt;
&lt;li&gt;Less Pricing in that region&lt;/li&gt;
&lt;li&gt;Service availability&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As of March 8, 2023, AWS has 32 regions and 102 Availability Zones (AZs) around the world. AWS is constantly expanding its global infrastructure, so the number of regions and AZs is always changing. You can find the latest information on the AWS website.&lt;/p&gt;

&lt;p&gt;Now, Lets drive deeper in AWS (Amazon Web Services). &lt;br&gt;
There are &lt;strong&gt;3 ways&lt;/strong&gt; to interact the &lt;strong&gt;AWS service&lt;/strong&gt; on AWS Platform:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AWS Management Console&lt;/li&gt;
&lt;li&gt;Command Line Interface&lt;/li&gt;
&lt;li&gt;Software Development Kits (SDks)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;IN AWS Management Console, We use UI interface, from where we can easily navigate to the service that we want to use.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8XS86Um8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/16qzyquq9nlorjz6exes.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8XS86Um8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/16qzyquq9nlorjz6exes.png" alt="AWS Management Console" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In Command Line Interface, We use terminal and type command run any aws service.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--39VuvEad--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tdahi9ob6xn94xihstvl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--39VuvEad--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tdahi9ob6xn94xihstvl.png" alt="Command Line Interface" width="800" height="287"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In SDKs, We use can integrate it with the scripting tools like python script in VS Code. SDKs are open-source and maintained by AWS for the most popular programming languages, such as C++, Go, Java, JavaScript, .NET, Node.js, PHP, Python, and Ruby. Developers commonly use AWS SDKs to integrate their application source code with AWS services. &lt;/p&gt;

&lt;p&gt;Here is an example of code you can implement to work with AWS resources using the Python AWS SDK.&lt;/p&gt;

&lt;p&gt;import boto3&lt;/p&gt;

&lt;p&gt;ec2 = boto3.client('ec2')&lt;/p&gt;

&lt;p&gt;response = ec2.describe_instances()&lt;/p&gt;

&lt;p&gt;print(response)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is shared responsiblity model?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;AWS emphasize on shared responsiblity model. Which means both the customer and AWS are responsible for managing and taking care of AWS. Some of the things, customer are the responsible like security. While other things, AWS took care about it like, Hardware issues, networking, compute etc.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hFHkzB9F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/utvdb0t4199g7hxc50c5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hFHkzB9F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/utvdb0t4199g7hxc50c5.png" alt="Shared Responsiblity model" width="800" height="344"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AWS Access Control&lt;/strong&gt; &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Root User&lt;/li&gt;
&lt;li&gt;IAM User&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;AWS strongly recommend that do enable MFA (Multi-factor Authentication) and don't use Root User on day to day routine. Instead create an IAM (Identity Access Management) Role allow access of the services and use IAM User in daily routine, just for the safety reasons.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Authentication &amp;amp; Authorization:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Authentication allow user to logged into the account [AWS Account] while Authorization allow user to give access or grant permission to use specific service. &lt;strong&gt;Example:&lt;/strong&gt; In a company, every person logged into the account to mark attendance but only HR (Human Resource) is authorized to see the attendance of employees.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Everything in AWS is an API Call&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;IAM Policy allow admin/Root to Grant access to the group user or an Individual User.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kjnZJsNS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6l4n5rkzlknvhaejs29o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kjnZJsNS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6l4n5rkzlknvhaejs29o.png" alt="IAM Policy" width="800" height="617"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You cannot apply policy to the root user but you can apply policies to the IAM User. So, It is suggested by &lt;strong&gt;AWS&lt;/strong&gt; that you can create IAM Admin from the root user and then logged out from it and then logged in with the IAM Admin user. IAM supports MFA.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Deploy a Web Application on AWS:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In order to deploy a web app on AWS, you need to create an instance of &lt;strong&gt;EC2&lt;/strong&gt; (Elastic Compute Cloud) where you can add access to IAM Group users, So that all of the &lt;strong&gt;IAM&lt;/strong&gt; Users in a IAM Group can get access to the hosted web application. Don't forget to select the Free Tier option while you are in a free tier account, so that will not get charged. &lt;/p&gt;

</description>
      <category>aws</category>
      <category>career</category>
      <category>cloudcomputing</category>
      <category>amazonwebservices</category>
    </item>
    <item>
      <title>Joins in SQL ( Part 02 )</title>
      <dc:creator>Muhammad Rameez</dc:creator>
      <pubDate>Sat, 08 Apr 2023 08:01:34 +0000</pubDate>
      <link>https://dev.to/zapeeosheikh/joins-in-sql-50nk</link>
      <guid>https://dev.to/zapeeosheikh/joins-in-sql-50nk</guid>
      <description>&lt;p&gt;A JOIN statement in SQL is used to combine data from two or more tables based on a common field. It can be used to retrieve data from one table that is related to data in another table. A JOIN statement typically consists of the names of two or more tables, followed by an ON clause that specifies the join conditions. The type of JOIN, such as INNER JOIN, LEFT JOIN, or RIGHT JOIN, also determines how the joined tables are related and what data is returned.&lt;/p&gt;

</description>
      <category>joins</category>
      <category>sql</category>
      <category>sqlquery</category>
      <category>dataengineering</category>
    </item>
    <item>
      <title>All about Structure Query Language (SQL)</title>
      <dc:creator>Muhammad Rameez</dc:creator>
      <pubDate>Sat, 08 Apr 2023 07:59:18 +0000</pubDate>
      <link>https://dev.to/zapeeosheikh/deep-drive-sql-part-01--gmi</link>
      <guid>https://dev.to/zapeeosheikh/deep-drive-sql-part-01--gmi</guid>
      <description>&lt;p&gt;A SQL statement is a query written in Structured Query Language (SQL) that is used to interact with a database. It is used to retrieve or manipulate data stored in a database. SQL statements are composed of clauses, expressions, and predicates that specify the data that is being queried and the operations that are to be performed on that data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SQL Statements:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Create Database:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A CREATE DATABASE statement in SQL is used to create a new database. It consists of the CREATE DATABASE keyword, followed by the name of the database. Optionally, a character set and collation can be specified. Once the database has been created, tables can be added to it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Query:&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;Create Database [database name];&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Create Database Inventory;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3LnmiB5d--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/50jiwv39nxsyjjrclpnr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3LnmiB5d--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/50jiwv39nxsyjjrclpnr.png" alt="create db" width="800" height="364"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Alter Database :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you want to change the name of your database, you can run this command to make changes:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ALTER DATABASE [olddatabase] MODIFY NAME = [newdatabase];&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Alter Database Inventory Modify name = Accounts;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--X8Uw5buS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ib70omsxhbpci9hhyypr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--X8Uw5buS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ib70omsxhbpci9hhyypr.png" alt="Alter db" width="800" height="368"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Remember&lt;/strong&gt; : SQL is not a case sensitive language which means you can either write the query in lowercase or in an uppercase&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Before creating the table make sure that, you are working on the same database that you want to use.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;To change the database:&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sVU4XCOy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1s4zwqrjexqhevlsui57.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sVU4XCOy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1s4zwqrjexqhevlsui57.png" alt="Change Database" width="800" height="423"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Create Table:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A CREATE TABLE statement in SQL is used to create a new table in a database. It consists of the CREATE TABLE keyword, followed by the name of the table and a list of column definitions. Each column definition consists of the column name, its data type, and any additional constraints. Once the table has been created, data can be added to it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DataTypes of SQL contains:&lt;/strong&gt;&lt;br&gt;
bool, varchar, int, float, bit&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Query:&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;Create table [table name] (&lt;br&gt;
   [row name] datatype validation,&lt;br&gt;
   [row name] datatype validation,&lt;br&gt;
);&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Table 01&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Create table vendor(
   id int Primary key,
   name varchar(256) not null,
   email varchar(256) not null,
);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--LFhLX96K--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/knv7yptgssz6wppswfuy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--LFhLX96K--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/knv7yptgssz6wppswfuy.png" alt="Table1" width="782" height="548"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Table 02&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Create table customer(
   id int Primary key,
   name varchar(256) not null,
   email varchar(256) null,
   regularity_status bit not null,
   vendor_id int not null,

Foreign Key (vendor_id) 
REFERENCES vendor(id)
);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rBfAv16c--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rb966weku3hddqnslowc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rBfAv16c--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rb966weku3hddqnslowc.png" alt="Image description" width="800" height="651"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Insert Statement :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An INSERT statement in SQL is used to add new records to a table. It consists of the INSERT keyword, followed by the table name, and a list of column names and values. For example, to insert a new row into a table called 'customers', the following statement could be used:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Query :&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;INSERT INTO customer (id, name, email, regularity_status) VALUES (1, 'John Doe', 'john@example.com', 1);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JI9RqW9D--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fdhj2nwfd991rnkx0it9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JI9RqW9D--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fdhj2nwfd991rnkx0it9.png" alt="Insert" width="800" height="238"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;To insert multiple rows, no need to write it again and again. You can use like :&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;INSERT INTO customer (id, name, email, regularity_status) VALUES (2, 'John Doe', 'john@example.com', 1),
(3, 'John Smith', null, 0),
(4, 'Smith Doe', null, 0),
(5, 'John Kinidy', 'johkanidy@example.com', 1),
(6, 'John Mike', 'johnMike@example.com', 1),
;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Select Statement :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A SELECT statement in SQL is used to retrieve data from a table. It consists of the SELECT keyword, followed by a list of column names, and the FROM keyword, followed by the table name. For example, to retrieve all columns from a table called 'customers', the following statement could be used:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Query:&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;
&lt;code&gt;Select [column name] from [table name];&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT * FROM customer;
SELECT name, email from customer;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bGKhL6Mz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mfz9y6cggsgh0pmun9db.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bGKhL6Mz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mfz9y6cggsgh0pmun9db.png" alt="Select" width="638" height="432"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Update Statement :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An UPDATE statement in SQL is used to modify existing records in a table. It consists of the UPDATE keyword, followed by the table name, and a list of column names and values. For example, to update the email address of a customer with the ID of 1, the following statement could be used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;UPDATE customer SET email = 'newemail@example.com' WHERE id = 1;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TME9qlZ6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/soqss3zfo899tz4l9xrm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TME9qlZ6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/soqss3zfo899tz4l9xrm.png" alt="Update" width="800" height="433"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Delete Statement :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A DELETE statement in SQL is used to delete records from a table. It consists of the DELETE keyword, followed by the table name, and a WHERE clause that specifies the records to be deleted. For example, to delete all customers with the ID of 1, the following statement could be used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DELETE FROM customer WHERE id = 1;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Distinct Keyword :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The DISTINCT keyword in SQL is used to return only unique values in a result set. It is typically used in conjunction with the SELECT statement, followed by the column names that should be included in the result set. For example, to return only unique names from a table called 'customers', the following statement could be used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT DISTINCT name FROM customer;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QtQyUV87--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y4yvuqnrweyyl2lgpo5d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QtQyUV87--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y4yvuqnrweyyl2lgpo5d.png" alt="Distinct" width="308" height="378"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where Keyword :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The WHERE clause in SQL is used to filter records in a result set. It is typically used in conjunction with the SELECT statement, followed by a condition that must be met for a record to be included in the result set. For example, to return only customers with the ID of 1, the following statement could be used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT * FROM customer WHERE id = 1;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;And, OR, NOT Keyword :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;AND, OR, and NOT are logical operators in SQL that are used to combine multiple conditions in a WHERE clause. AND requires that both conditions be true for a record to be included in the result set, OR requires that one of the conditions be true, and NOT requires that the condition be false. For example, to return only customers with the ID of 1 or 2, the following statement could be used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT * FROM customer WHERE id = 1 OR id = 2;
SELECT * FROM customer WHERE id = 1 and email = 'newemail@example.com';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;NULL Function :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The NULL keyword in SQL is used to represent a missing or unknown value. It is typically used in conjunction with the WHERE clause, followed by an operator such as IS NULL or IS NOT NULL. For example, to return only customers with a NULL email address, the following statement could be used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT * FROM customer WHERE email IS NULL;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Like Keyword :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The LIKE operator in SQL is used to compare a column value to a pattern. It is typically used in conjunction with the WHERE clause, followed by a string pattern that can include wildcards. For example, to return only customers whose name starts with 'John', the following statement could be used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT * FROM customer WHERE name LIKE 'John%';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Like statement have two wildcard % and _ When we want to retrieve all the letters before this &lt;code&gt;specific word&lt;/code&gt; then we use % before the &lt;code&gt;specific word&lt;/code&gt;. It could be like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT * FROM customer WHERE name LIKE '%Doe';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Similarly, When we want to retrieve a word that contains &lt;code&gt;oe&lt;/code&gt; but that must have only one letter before this &lt;code&gt;specific word&lt;/code&gt; then we use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT * FROM customer WHERE name LIKE '_oe';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Top Keyword :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The TOP keyword in SQL is used to limit the number of rows returned in a result set. It is typically used in conjunction with the SELECT statement, followed by a number that indicates how many rows should be returned. For example, to return the top 10 customers, the following statement could be used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT TOP 10 * FROM customer;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Aggregate functions :&lt;/strong&gt;&lt;br&gt;
&lt;em&gt;count(), add(), avg()&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The COUNT, SUM, and AVG functions in SQL are used to perform aggregate calculations on a set of records. COUNT returns the number of records in a result set, SUM adds up the values of a specified column, and AVG calculates the average of a specified column. For example, to calculate the average age of customers, the following statement could be used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT AVG(age) FROM customer;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Similarly, to calculate the sum of customers, the following statement could be used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT Sum(regularity_status) FROM customer;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To calculate the count of customers, the following statement could be used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT Count(name) FROM customer;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Min, Max functions :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The MIN and MAX functions in SQL are used to find the minimum and maximum values of a specified column. They are typically used in conjunction with the SELECT statement, followed by the name of the column. For example, to find the oldest and youngest customers, the following statements could be used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT MIN(age) FROM customer;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT MAX(age) FROM customer;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Between keyword :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The BETWEEN operator in SQL is used to filter records that fall within a specified range. It is typically used in conjunction with the WHERE clause, followed by two values that indicate the start and end of the range. For example, to return only customers between the ages of 18 and 30, the following statement could be used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT * FROM customers WHERE age BETWEEN 18 AND 30;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Alias keyword :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An alias in SQL is used to give a column or table a temporary name. It is typically used in conjunction with the SELECT statement, followed by the name of the column or table and the desired alias. For example, to give the customers table the alias 'c', the following statement could be used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT name as Customer_Name FROM customer;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT c.name FROM customer as c;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;UNION, INTERSECT, and EXCEPT Operators :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The UNION, INTERSECT, and EXCEPT operators in SQL are used to combine the results of multiple SELECT statements. UNION combines the results of two SELECT statements, INTERSECT returns only the records found in both SELECT statements, and EXCEPT returns only the records found in the first SELECT statement but not the second. For example, to combine the results of two SELECT statements, the following statement could be used:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cyEdTLvs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ggo0ilza5jpxslg9rebi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cyEdTLvs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ggo0ilza5jpxslg9rebi.png" alt="Union operators" width="800" height="122"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HU4Sbf0g--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gkicfvj9gfncu3iqemum.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HU4Sbf0g--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gkicfvj9gfncu3iqemum.png" alt="Union" width="800" height="388"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT * FROM customer UNION SELECT * FROM vendor;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ybOnsZch--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ctpypcv5r64ahnutk8vv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ybOnsZch--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ctpypcv5r64ahnutk8vv.png" alt="Union All" width="800" height="371"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The UNION ALL operator in SQL is used to combine the results of two SELECT statements. It is similar to the UNION operator, except that it does not remove duplicate records from the result set. For example, to combine the results of two SELECT statements, the following statement could be used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
SELECT * FROM customers1 UNION ALL SELECT * FROM customers2;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The above statement will combine the results of the two SELECT statements and return all records, including any duplicates.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--C_6_cRIC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1e7t2khsz8qiq7wiatk2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--C_6_cRIC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1e7t2khsz8qiq7wiatk2.png" alt="Intersection" width="800" height="246"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT * FROM customer INTERSECT SELECT * FROM vendor;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rluPiw8K--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vp7lujrgztwy6fez7t4y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rluPiw8K--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vp7lujrgztwy6fez7t4y.png" alt="Except" width="800" height="284"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT * FROM customer EXCEPT SELECT * FROM vendor;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;ORDER BY clause :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The ORDER BY clause in SQL is used to sort the records in a result set. It is typically used in conjunction with the SELECT statement, followed by the name of the column that should be used for sorting. For example, to sort customers by their age, the following statement could be used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT * FROM customer ORDER BY age;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, we can also sort the result based on ascending or descending order by just add a keyword &lt;code&gt;asc&lt;/code&gt; or &lt;code&gt;desc&lt;/code&gt; :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT * FROM customer ORDER BY name desc;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;By default, order by can get result in ascending order.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;IN operator :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The IN operator in SQL is used to check if a value is present in a list of values. It is typically used in conjunction with the WHERE clause, followed by a list of comma-separated values. For example, to check if a customer's age is 18, 21, or 25, the following statement could be used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT * FROM customer WHERE age IN (18, 21, 25);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;IS operator :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The IS operator in SQL is used to compare a value to another value or to a known constant. It is typically used in conjunction with the WHERE clause, followed by the value to be compared and the value or constant it should be compared to. For example, to check if a customer's age is equal to 18, the following statement could be used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT * FROM customers WHERE age IS 18;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Group by clause :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The GROUP BY clause in SQL is used to group records together based on a specified column or expression. It is typically used in conjunction with the SELECT statement, followed by the name of the column or expression to be used for grouping. For example, to group customers by their age, the following statement could be used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT name, count(name) from customer group by name;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;HAVING clause :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The HAVING clause in SQL is used to filter records in a result set after they have been grouped. It is typically used in conjunction with the GROUP BY clause, followed by a condition that must be met for a record to be included in the result set. For example, to return only groups of customers where the average age is greater than 18, the following statement could be used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT name, count(name) as Similar_names from customer group by name having count(name) &amp;gt; 2;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Case clause :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The CASE statement in SQL is used to create conditional logic in a query. It is typically used in conjunction with the SELECT statement, followed by a condition and the value to be returned if the condition is met. For example, to assign a letter grade to each customer based on their age, the following statement could be used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT *, 
CASE WHEN age &amp;lt; 18 THEN 'Teen' 
WHEN age BETWEEN 18 AND 25 THEN 'Young Adulthood' 
WHEN age &amp;gt; 25 THEN 'Adulthood' 
END AS Adolescence 
FROM customer;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Joins :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A JOIN statement in SQL is used to combine data from two or more tables based on a common field. It typically consists of the names of two or more tables, followed by an ON clause that specifies the join conditions. For example, to join the customers and orders tables on the customer_id field, the following statement could be used:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT * FROM customer 
JOIN orders 
ON customer.vendor_id = vendor.id;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Types of SQL Joins:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;There are several types of JOINs in SQL, each of which determines how the joined tables are related and what data is returned.&lt;/p&gt;

&lt;p&gt;• &lt;strong&gt;INNER JOIN:&lt;/strong&gt; This type of JOIN returns only rows from both tables that match the join conditions.&lt;br&gt;
• &lt;strong&gt;LEFT JOIN:&lt;/strong&gt; This type of JOIN returns all rows from the left table, and only the rows from the right table that match the join conditions.&lt;br&gt;
• &lt;strong&gt;RIGHT JOIN:&lt;/strong&gt; This type of JOIN returns all rows from the right table, and only the rows from the left table that match the join conditions.&lt;br&gt;
• &lt;strong&gt;FULL OUTER JOIN:&lt;/strong&gt; This type of JOIN returns all rows from both tables, regardless of whether they match the join conditions or not.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Other types of JOINs in SQL include:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;•** CROSS JOIN:** This type of JOIN returns all possible combinations of rows from both tables, regardless of whether they match the join conditions or not.&lt;br&gt;
• &lt;strong&gt;SELF JOIN:&lt;/strong&gt; This type of JOIN is used to join a table to itself. It is typically used to compare values in a single table.&lt;br&gt;
• &lt;strong&gt;NATURAL JOIN:&lt;/strong&gt; This type of JOIN joins two tables based on columns with the same name in each table.&lt;br&gt;
• &lt;strong&gt;UNION JOIN:&lt;/strong&gt; This type of JOIN combines the results of two SELECT statements into a single result set.&lt;/p&gt;

</description>
      <category>sql</category>
      <category>sqlquery</category>
      <category>mysql</category>
      <category>dataengineering</category>
    </item>
    <item>
      <title>Structure Query Language</title>
      <dc:creator>Muhammad Rameez</dc:creator>
      <pubDate>Sat, 25 Mar 2023 20:08:45 +0000</pubDate>
      <link>https://dev.to/zapeeosheikh/structure-query-language-504a</link>
      <guid>https://dev.to/zapeeosheikh/structure-query-language-504a</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is SQL ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;SQL (Structured Query Language) is a programming language used to communicate with databases. It is used to store, retrieve, manipulate, and manage data in relational databases. SQL uses statements to perform tasks such as updating data in a database or retrieving data from a database. We can delete, alter and fetch the data by using query of SQL within a second. SQL is not a Case sensitive language which means you  can write query in all caps or in all small, it will works. SQL can create stored procedures and views in a database.&lt;/p&gt;

&lt;p&gt;For Example :&lt;br&gt;
&lt;code&gt;Select * from life where memory like 'Joy'&lt;/code&gt;&lt;br&gt;
&lt;code&gt;Select * from Bytewise where fellow like 'Data Engineer'&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;There are 3 types of SQL : &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;DDL&lt;/li&gt;
&lt;li&gt;DML&lt;/li&gt;
&lt;li&gt;DQL&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What is DDL ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;DDL (Data Definition Language) is a type of SQL language used to define the structure of a database. It is used to create, modify, and delete database objects such as tables, views, and other database structures. DDL statements are also used to set permissions on database objects and to create and alter stored procedures and functions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is DML ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;DML (Data Manipulation Language) is a type of SQL language used to manipulate data. It is used to insert, update, delete, and select data in a database. DML statements are also used to control access to the data stored in a database.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is DQL ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;DQL (Data Query Language) is a type of SQL language used to query data from a database. It is used to retrieve data from one or more tables, views, or other sources in a database. DQL statements are also used to specify conditions in the query, such as selecting data based on certain criteria.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Famous SQL Commands :&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Create Database :&lt;br&gt;
&lt;code&gt;CREATE DATABASE &amp;lt;database_name&amp;gt;;&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Alter a Database :&lt;br&gt;
&lt;code&gt;ALTER DATABASE &amp;lt;database_name&amp;gt; [MODIFY]&amp;lt;newName_database&amp;gt;;&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Deleting a Database :&lt;br&gt;
&lt;code&gt;DROP DATABASE &amp;lt;database_name&amp;gt;;&lt;/code&gt;&lt;br&gt;
&lt;code&gt;TRUNCATE DATABASE &amp;lt;database_name&amp;gt;;&lt;/code&gt;&lt;br&gt;
&lt;code&gt;DELETE DATABASE &amp;lt;database_name&amp;gt;;&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Data Types used in SQL :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Data Types in SQL are used to define the type of data stored in the columns of a database table. The most common SQL data types are: &lt;/p&gt;

&lt;p&gt;INTEGER, VARCHAR, BOOLEAN, DATE, TIME, and DECIMAL. &lt;/p&gt;

&lt;p&gt;Each data type has a specific set of properties and characteristics that define how it is stored and used. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;For example&lt;/em&gt;&lt;/strong&gt;, INTEGER is used to store whole numbers, VARCHAR is used to store variable-length strings, BOOLEAN is used to store true or false values, and DATE is used to store date and time values. Other data types, such as DECIMAL, can be used to store more complex data types such as currency values.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;List of SQL Important Statements :&lt;/strong&gt;&lt;br&gt;
SQL all about these statements and keyword that all have different behavior and use. We can discuss it as we move forward:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create Statements&lt;/li&gt;
&lt;li&gt;Insert Statements&lt;/li&gt;
&lt;li&gt;Select Statements&lt;/li&gt;
&lt;li&gt;Update Statements&lt;/li&gt;
&lt;li&gt;Delete Statements&lt;/li&gt;
&lt;li&gt;Distinct&lt;/li&gt;
&lt;li&gt;Like &lt;/li&gt;
&lt;li&gt;Top&lt;/li&gt;
&lt;li&gt;Aggregate functions (count(), add(), avg())&lt;/li&gt;
&lt;li&gt;Min(), Max()&lt;/li&gt;
&lt;li&gt;Between&lt;/li&gt;
&lt;li&gt;Alias&lt;/li&gt;
&lt;li&gt;Union, Intersect, Except&lt;/li&gt;
&lt;li&gt;Order by &lt;/li&gt;
&lt;li&gt;In &lt;/li&gt;
&lt;li&gt;Where &lt;/li&gt;
&lt;li&gt;is &lt;/li&gt;
&lt;li&gt;Null&lt;/li&gt;
&lt;li&gt;Joins&lt;/li&gt;
&lt;li&gt;Group by&lt;/li&gt;
&lt;li&gt;Having&lt;/li&gt;
&lt;li&gt;Case&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For studding all queries in SQL, &lt;a href="https://dev.to/zapeeosheikh/deep-drive-sql-part-01--gmi"&gt;Click here &lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For studding Joins in SQL, &lt;a href="https://dev.to/zapeeosheikh/joins-in-sql-50nk"&gt;Click here&lt;/a&gt;&lt;/p&gt;

</description>
      <category>sql</category>
      <category>data</category>
      <category>dataengineering</category>
      <category>blog</category>
    </item>
    <item>
      <title>Data Engineering (Part 02)</title>
      <dc:creator>Muhammad Rameez</dc:creator>
      <pubDate>Fri, 24 Mar 2023 20:21:06 +0000</pubDate>
      <link>https://dev.to/zapeeosheikh/data-engineering-part-02-540i</link>
      <guid>https://dev.to/zapeeosheikh/data-engineering-part-02-540i</guid>
      <description>&lt;p&gt;In this blog we are going to discuss the working practices used in Data engineering.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is ETL ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;ETL stands for Extract, Transform, and Load, and is a process used for transferring data from one system to another, it can be through API or local host. The Extract phase involves retrieving data from multiple sources, such as databases, files, and web services. The Transform phase involves transforming the data into a specific format that can be used in the target system. Finally, the Load phase involves loading the transformed data into the target system. ETL is used to ensure data accuracy and consistency across systems.&lt;/p&gt;

&lt;p&gt;ETL is commonly used to migrate data from legacy systems to modern systems, as well as to integrate data from multiple sources into a single system. It can also be used to cleanse data and prepare it for analysis, as well as to load data into data warehouses and data lakes. ETL processes are usually automated to ensure efficient and accurate data transfer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is ELT ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;ELT (Extract-Load-Transform) is an alternative to ETL (Extract-Transform-Load) and is used for transferring data from one system to another. The Extract phase involves retrieving data from multiple sources, such as databases, files, and web services. The Load phase involves loading the data into the target system. The Transform phase involves transforming the data into a format that can be used in the target system. ELT is used to ensure data accuracy and consistency across systems.&lt;/p&gt;

&lt;p&gt;Same like ETL, it allow migrate data from legacy systems to modern systems, as well as to integrate data from multiple sources into a single system. It can also be used to cleanse data and prepare it for analysis, as well as to load data into data warehouses and data lakes. ELT processes are usually also automated to ensure efficient and accurate data transfer. ELT is often preferred over ETL because it allows for parallel processing and makes it easier to handle large datasets.&lt;/p&gt;

&lt;p&gt;There are many tools available for ETL :&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Apache Airflow  2. Talend &lt;/li&gt;
&lt;li&gt;AWS Glue  4. Informatica &lt;/li&gt;
&lt;li&gt;SSIS &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;There are multiple types to load the data in Data Engineering in ETL process. Some of may use &lt;strong&gt;historical load&lt;/strong&gt;, &lt;strong&gt;full load&lt;/strong&gt; and &lt;strong&gt;incremental load&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Historical Load :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Historical load is the process of loading data from the past into a data warehouse or data lake. This process typically involves extracting data from &lt;em&gt;multiple sources&lt;/em&gt;, transforming the data into a format that can be used in the target system, and loading the data into the target system. &lt;/p&gt;

&lt;p&gt;Historical load can be used to capture data from past events and to analyze trends over time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Full Load :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Full load is also used to load data from the data warehouse or data lake. Data extraction can be done from multiple sources. &lt;/p&gt;

&lt;p&gt;Full load is often used when setting up a new data warehouse or data lake, or when starting from scratch with an existing system.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Incremental Load :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Incremental load is often used to keep a data warehouse or data lake up to date with the latest data. It also extract thee data from multiple sources.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3 Tier architecture :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The three-tier architecture of data engineering is a software architecture pattern that divides a system into three separate tiers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Data ingestion &lt;/li&gt;
&lt;li&gt;Data processing&lt;/li&gt;
&lt;li&gt;Data storage&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;strong&gt;data ingestion&lt;/strong&gt; tier is responsible for collecting, cleaning, and loading data from multiple sources. &lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;data processing&lt;/strong&gt; tier is responsible for transforming and aggregating the data. &lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;data storage&lt;/strong&gt; tier is responsible for storing the data in a structured format. &lt;/p&gt;

&lt;p&gt;This architecture allows for scalability and modularity, as well as improved performance and security.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;This architecture is the back-bone of data engineering.&lt;/code&gt;&lt;/p&gt;

</description>
      <category>data</category>
      <category>dataenginnering</category>
      <category>etl</category>
      <category>loaddata</category>
    </item>
    <item>
      <title>Important Questions related to Data Engineering</title>
      <dc:creator>Muhammad Rameez</dc:creator>
      <pubDate>Mon, 20 Mar 2023 18:23:43 +0000</pubDate>
      <link>https://dev.to/zapeeosheikh/important-questions-related-to-data-engineering-33on</link>
      <guid>https://dev.to/zapeeosheikh/important-questions-related-to-data-engineering-33on</guid>
      <description>&lt;p&gt;&lt;strong&gt;Can a database be used as DWH?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes, Database can be used as a Data Warehouse. Even before the data warehouse, we use database for the business. But now it's a good practice to use Data warehouse because of quick response and Analystical tools. Data warehouse is based on specific category thatswhy, we get quick response as compared to Database.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Difference between structured and UN structured data ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Structured Data: &lt;br&gt;
Is in the form of structured manner, it can be a SQL query or a script that we run on terminal of any platform to perform task is considered as structured data. This data is in uniform format.&lt;/p&gt;

&lt;p&gt;Unstructured Data:&lt;br&gt;
This data is in distributed manner. It is in scattered formed. This data contains text file, video, image, audio etc. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Roles of Data Engineer :&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Design and develop databases, data models and tables to store data.&lt;/li&gt;
&lt;li&gt;Develop ETL processes and data pipelines for data integration.&lt;/li&gt;
&lt;li&gt;Monitor and optimize database performance.&lt;/li&gt;
&lt;li&gt;Analyze data for patterns, trends, and insights.&lt;/li&gt;
&lt;li&gt;Develop data visualizations and dashboards.&lt;/li&gt;
&lt;li&gt;Troubleshoot data-related issues.&lt;/li&gt;
&lt;li&gt;Implement security and privacy measures.&lt;/li&gt;
&lt;li&gt;Collaborate with data scientists and business stakeholders.&lt;/li&gt;
&lt;li&gt;Build API connection to fetch the data from the source target to the destination target.&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>data</category>
      <category>dataengineering</category>
      <category>pipelines</category>
      <category>questions</category>
    </item>
    <item>
      <title>Data engineering for beginners (Part 01)</title>
      <dc:creator>Muhammad Rameez</dc:creator>
      <pubDate>Sun, 19 Mar 2023 16:17:59 +0000</pubDate>
      <link>https://dev.to/zapeeosheikh/data-engineering-for-beginners-4pj7</link>
      <guid>https://dev.to/zapeeosheikh/data-engineering-for-beginners-4pj7</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is Data Engineering ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Perform different techniques to get transformed data including cleaning, transforming and extraction on data to send it to the data scientist so that he can use this data to perform some predictions is know as Data Engineering.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;code&gt;Data Scientist work starts where the work of a Data Engineers work ends.&lt;/code&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1VMniUhJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qop0bk54bjp86yqp4x5o.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1VMniUhJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qop0bk54bjp86yqp4x5o.jpg" alt="Image description" width="680" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hahaha. Don't worry, I will elaborate each an every concept that is used in data engineering for beginner, in this blog. Buckle up and sit back relax.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is Database ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Database is a collection of row and columns can be in the form of structured formed/tables or can be in unstructured format. Database is used to store the data so that we can retrieve it afterwards.&lt;/p&gt;

&lt;p&gt;So, we use Database to store the data and retrieve it but in the case of quick response this trick doesn't works because as the database contains all the data so when we call it to fetch, it takes time. That was a very bad experience for the user. &lt;/p&gt;

&lt;p&gt;*&lt;em&gt;For example: *&lt;/em&gt;&lt;br&gt;
&lt;em&gt;In case of live Dashboard, when the user call the dashboard to see his stats and it will take time&lt;/em&gt; ☹️&lt;/p&gt;

&lt;p&gt;At this place, &lt;strong&gt;Data Warehouse&lt;/strong&gt; got entered. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--opa2ruSw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gnen86663qpafdcgp55n.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--opa2ruSw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gnen86663qpafdcgp55n.jpg" alt="Image description" width="676" height="436"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is Data Warehouse ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Data warehouse is same like the Database. It is also used to store the data. But the major difference is that data warehouse is specific for the Niche. Like if we want sales record then one data warehouse only contains sales records no other niches than also it is difficult to delete the data from the data warehouse, however data is easily deletable from the database. &lt;/p&gt;

&lt;p&gt;&lt;em&gt;"Data warehouse is not good so" if this question is revolving into your mind read this blog&lt;/em&gt; [&lt;a href="https://dev.to/zapeeosheikh/database-vs-data-warehouse-1ab6"&gt;Database vs Data Engineering&lt;/a&gt;]&lt;/p&gt;

&lt;p&gt;As, data warehouse only contains the data related to specific category so it is fast for retrieval of data. Thatswhy, we do use data warehouse.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is Data lake ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Data lake is the pound of data where data is scattered, can be in the form structured, semi structured or unstructured. From the above meme, Data Engineer collect data from the data lake transform it into the required format and load it into the mean stream or send it to the data scientist so that he can use this data to perform calculation build prediction models etc&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wi1YmWhF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n7zmuyjmz6wmft1j1nux.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wi1YmWhF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n7zmuyjmz6wmft1j1nux.jpg" alt="Image description" width="480" height="360"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is ETL ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Extract Transform Load is the technique that a Data Engineer use to get the data from different resources and different format like data can be in the form of csv, html, excel, image, video, txt etc&lt;br&gt;
The data engineer extract this data from different resources than transform it according to his use-case. Then load it to the machine learning model or send it to the data scientist.&lt;/p&gt;

&lt;p&gt;This concept is the back bone of data engineering.&lt;/p&gt;

&lt;p&gt;So after the transformation of data we use some tools to show the data.&lt;/p&gt;

&lt;p&gt;Like for dashboard, we use BI tools to show the data into the live Dashboard. Such as Power BI etc&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vjlvMpJX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g9yk1z5pnkwfcb8cay47.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vjlvMpJX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g9yk1z5pnkwfcb8cay47.png" alt="Image description" width="800" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For the future specification and sorting of data, we use Data mart.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is Data Mart ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Data mart is a chunk of data warehouse where all the categorized data of specific need is stored, resulting quick response and fast analysis of data. In other words, we can say that, it is a subset of a data warehouse that is focused on a single subject. No doubt, the size of a Data mart is relatively small in 1Gbs but data warehouse Data capacity is more likely in 100Gbs. They are often used to provide users in an organization with easy access to particular data.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--s4ckYFb1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fxygz6qdyyqqnbvx2lss.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--s4ckYFb1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fxygz6qdyyqqnbvx2lss.png" alt="Image description" width="690" height="241"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;strong&gt;Let's Summerize with the help of perfect example :&lt;/strong&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Consider, we want to perform a sentimental analysis of Twitter. So, the data is in unstructured format. We extract data from the different Twitter resources and load it to the &lt;strong&gt;Data lake&lt;/strong&gt; After that, the data is clearify and send it to the &lt;strong&gt;Data warehouse&lt;/strong&gt; then send it to the &lt;strong&gt;Data Mart&lt;/strong&gt; where we get very very specific category data which we than load into the Analysis Software or BI Tools. This model contains two part as: &lt;br&gt;
&lt;strong&gt;Online transaction processing&lt;/strong&gt; &lt;strong&gt;(OLTP)&lt;/strong&gt; and other be &lt;strong&gt;Online Transaction Analysis processing&lt;/strong&gt; &lt;strong&gt;(OLAP)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Have you noticed that there is a lots of process pipeline passing from one phase to another phase. So, don't worry let me introduce you with &lt;strong&gt;Lakehouse&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--MorfnN4r--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gyjuhcu8ftvq5uqyxblq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--MorfnN4r--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gyjuhcu8ftvq5uqyxblq.png" alt="Image description" width="800" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is Lakehouse ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Lakehouse is a combination of &lt;strong&gt;Data warehouse&lt;/strong&gt; and &lt;strong&gt;Data Lake&lt;/strong&gt;. It contains every type of data including unstructured format and can have all the features of data warehouse to perform analysis itself. Data Lakehouse offers the benefits of both a data warehouse and a data lake, including data agility, scalability, cost efficiency and performance. Data Lakehouse also provides the ability to process and analyze data in real-time and at scale, enabling organizations to make better, faster decisions.&lt;/p&gt;

&lt;p&gt;It's easy to manage, less administration, less redundancy and smooth process.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OLTP vs OLAP :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;OLTP (Online Transaction Processing) is a type of system used to manage and process data from transactions. It is typically used to record data from transactions such as sales, purchases, and payments. OLTP systems are optimized for fast, real-time data access and updates. (Calculation Part)&lt;/p&gt;

&lt;p&gt;OLAP (Online Analytical Processing) is a type of system used to analyze data from multiple perspectives. It is typically used to analyze data from multiple sources and generate reports to help make informed decisions. OLAP systems are optimized for complex queries and analysis. (Analysis Part)&lt;/p&gt;

&lt;p&gt;As, their is alway a tread of data security and cost effectiveness so this issue is resolved with the help of &lt;strong&gt;Data Mesh&lt;/strong&gt; a decentralization system to store data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data Mesh :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It is an architecture that focuses on the decentralization of data and the empowerment of teams to make data-driven decisions. Data meshes are designed to make data accessible to multiple teams, departments, and applications, with the goal of providing a single source of truth. Decentralization means that data is not stored on a single place which cause data safety, security and scalability, it can also reduce the risk of data loss. The data mesh architecture allows for data to be stored, managed, and processed in distributed systems.&lt;/p&gt;

&lt;p&gt;These are the basics of data engineering concepts that you must know as a beginner. &lt;/p&gt;

&lt;p&gt;Moving towards part 02 (Intermediate Concepts)&lt;/p&gt;

</description>
      <category>data</category>
      <category>dataengineering</category>
      <category>etl</category>
      <category>datalake</category>
    </item>
    <item>
      <title>Habits of Billionaires</title>
      <dc:creator>Muhammad Rameez</dc:creator>
      <pubDate>Mon, 09 Jan 2023 19:00:09 +0000</pubDate>
      <link>https://dev.to/zapeeosheikh/habits-of-billionaires-4nf2</link>
      <guid>https://dev.to/zapeeosheikh/habits-of-billionaires-4nf2</guid>
      <description>&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Wake Up Early&lt;/strong&gt;: Billionaires typically start their day early, often before 6am.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Read&lt;/strong&gt;: Billionaires typically read books, magazines, and industry publications to stay informed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Exercise&lt;/strong&gt;: Billionaires understand the importance of physical fitness and make time for exercise.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Network&lt;/strong&gt;: Billionaires often use their contacts to create business opportunities and build their wealth.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Invest: Billionaires know that investing is one of the best ways to grow their wealth.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Take Risks&lt;/strong&gt;: Billionaires are not afraid to take calculated risks in order to reap the rewards.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Think Big&lt;/strong&gt;: Billionaires look beyond the current landscape and set lofty goals.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Prioritize&lt;/strong&gt;: Billionaires are able to focus on the most important tasks and let the rest go.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Stay Focused&lt;/strong&gt;: Billionaires stay focused on their goals and don’t get distracted by the small stuff.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Give Back&lt;/strong&gt;: Billionaires understand the importance of giving back to the community and often donate to charities.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkgynkh6qi1kfznqdqg5v.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkgynkh6qi1kfznqdqg5v.jpg" alt="Habits of Billionaires" width="736" height="736"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>gratitude</category>
      <category>community</category>
    </item>
    <item>
      <title>Data Lake vs Data Warehouse</title>
      <dc:creator>Muhammad Rameez</dc:creator>
      <pubDate>Sun, 28 Aug 2022 11:20:00 +0000</pubDate>
      <link>https://dev.to/zapeeosheikh/data-lake-vs-data-warehouse-3ehi</link>
      <guid>https://dev.to/zapeeosheikh/data-lake-vs-data-warehouse-3ehi</guid>
      <description>&lt;p&gt;&lt;em&gt;Data Warehouse&lt;/em&gt; and &lt;em&gt;Data Lake&lt;/em&gt; are two different methods to store data for different purpose and it is used by people of different skills. But I assure you that both are entirely different in their purpose. Let's make it clear the major difference between Data Lake and Data Warehouse. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--VIY8cav3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n6axo6ejgabnbotz96ik.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--VIY8cav3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n6axo6ejgabnbotz96ik.jpg" alt="Data Lake" width="800" height="465"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;DATA LAKE :&lt;/strong&gt;&lt;br&gt;
Data Lake is used to store the Row Data. The Data maybe in Semi-Structured form but can retrieve in Structured, Un-Structured and Semi-structured form. Like the data retrieval can be in the form of direct Q&amp;amp;A or it can be an images of customer feedback etc.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;Difference between Structured, Unstructured and Semi-Structured Data:&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Structured Data are in the form of Row and Table. It is well Synchronized and We'll Managed. This Data can be easily Fetch from the Database or Data Warehouse.&lt;/code&gt; &lt;/p&gt;

&lt;p&gt;&lt;code&gt;Unstructured Data on an other hand, is Scattered and not well Managed. This Data Mostly in the form of Graph, Images, Videos or in XML format.&lt;/code&gt; &lt;/p&gt;

&lt;p&gt;&lt;code&gt;Semi-Structured Data is not Scattered or not Well managed. However, it is some how easy to find data and query the result.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;In &lt;strong&gt;Data Lake&lt;/strong&gt;, Data is in Massive Amount. It can be Petabyte or Zetabyte of Data. But still Data is Cost Effective because if we had wrote data into data lake, it can update easily but in the case of data Warehouse, this trick doesn't work. &lt;/p&gt;

&lt;p&gt;It is very costly to update data in data Warehouse. Due to large amount of data in the data lake, the analysis is very Difficult and Time taking. Time is only concise If the data is in catalogue. The data lake is used by data scientist and data engineer. The major used of data lake is in big data and real time analysis of live Dashboard.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wT-VXxAk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dz3thy7x41ay1vp8rwmu.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wT-VXxAk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dz3thy7x41ay1vp8rwmu.jpg" alt="Data Warehouse" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;DATA WAREHOUSE :&lt;/strong&gt;&lt;br&gt;
In the data warehouse the data is in specific order and the specific data is used for the specific purpose only.&lt;/p&gt;

&lt;p&gt;Data warehouse contain the data mostly in structured form also the size of data is small as compared to data lake. Companies use Data Warehouse instead of Data lake because of low amount of data and the more analytical power of Data Warehouse. This small amount of data is transformed through ETL process which can be done upon Database. Resulting, Data analysis is very optimised as compared to data lake. As I told you earlier that updation of data is very costly in data warehouse. The data warehouse is used by data analyst, business analyst, data scientist and machine learning engineer. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rw_-8Cet--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fs3gcqfsnx66yf30fjfb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rw_-8Cet--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fs3gcqfsnx66yf30fjfb.png" alt="Comparison" width="800" height="405"&gt;&lt;/a&gt;&lt;br&gt;
There is a huge story that involves in data lake and data warehouse that how the data is transfer from one place to another, that medium is called &lt;strong&gt;data pipeline&lt;/strong&gt;. In that topic I will also cover the qualities of data that must insure by the data engineer to work on it this will be covered in the next blog and I will attach the link in this blog as well. Till then keep Aiming, Keep Practicing.&lt;/p&gt;

&lt;p&gt;Connect with me 😊&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://www.linkedin.com/in/muhammadrmz"&gt;LinkedIn&lt;/a&gt; &lt;br&gt;
&lt;a href="https://github.com/ZapeeoSheikh/"&gt;GitHub&lt;/a&gt; &lt;br&gt;
&lt;a href="https://bit.ly/muhammadrameez"&gt;Others&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>datascience</category>
      <category>lake</category>
      <category>difference</category>
      <category>bigdata</category>
    </item>
    <item>
      <title>DataBase vs Data Warehouse</title>
      <dc:creator>Muhammad Rameez</dc:creator>
      <pubDate>Tue, 23 Aug 2022 17:33:32 +0000</pubDate>
      <link>https://dev.to/zapeeosheikh/database-vs-data-warehouse-1ab6</link>
      <guid>https://dev.to/zapeeosheikh/database-vs-data-warehouse-1ab6</guid>
      <description>&lt;p&gt;Database and Data Warehouse are not the same at all. The major difference in both management systems is the type of storing data. The need for Data warehouses first occurred in 1970. There are two types of data. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Operational Data &lt;/li&gt;
&lt;li&gt;Strategic Information &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In a Nutshell, the Analysis of data is stored in Data Warehouse and the day-to-day use data is stored in the Database. Let's take a deep dive.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What's Database ?&lt;/strong&gt;&lt;br&gt;
A database is a storage management system of data where we can store terabytes of data or even Penta and zettabyte of data that we can use afterward to perform different actions at any time. The database is also of many types : &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Structural Database&lt;/li&gt;
&lt;li&gt;Unstructured Database &lt;/li&gt;
&lt;li&gt;Hierarchical Database&lt;/li&gt;
&lt;li&gt;Graph Database &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What's Data Warehouse ?&lt;/strong&gt;&lt;br&gt;
Data Warehouse is used to store the insights of Business. Data Warehouse holds Strategies and information about the business. Here stores the real-time data. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why not we use Database instead of Data Warehouse:&lt;/strong&gt;&lt;br&gt;
Because if we delete the data from the database it can be undone for the future use but in the case of data warehouse, Data cannot be deleted easily and the analysis perform are much faster and accurate while using data Warehouse. We can use different tools to get results of different purpose. Mostly SQL, Python, Power BI are used for extraction of data from the data warehouse. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is the need for Data Warehouse:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;To get to know about the age group and gender of customers for the specific product&lt;/li&gt;
&lt;li&gt;To know about the demand for the product&lt;/li&gt;
&lt;li&gt;To know about the sales index of the product &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;QUICK DEFINITION OF DATA WAREHOUSE&lt;/strong&gt;&lt;br&gt;
Data Warehouse is : &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Time Variant &lt;/li&gt;
&lt;li&gt;Integration &lt;/li&gt;
&lt;li&gt;Non-Versatile&lt;/li&gt;
&lt;li&gt;Subject Oriented &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Details:&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
You can store data insight of thousands of years, Integration means data is in Structural Format and your data cannot be changed if it is stored in the warehouse however we can add or delete the data permanently. Subject Oriented means data for specific requirement usage can be managed separately.&lt;/p&gt;

&lt;p&gt;Data Warehouse is the important Topic in Data Engineering or Data Science Domain.&lt;/p&gt;

&lt;p&gt;Connect with me :&lt;br&gt;
&lt;a href="https://www.linkedin.com/in/muhammadrmz"&gt;LinkedIn&lt;/a&gt;&lt;br&gt;
&lt;a href="https://github.com/ZapeeoSheikh/"&gt;Github&lt;/a&gt;&lt;/p&gt;

</description>
      <category>database</category>
      <category>devops</category>
      <category>comparison</category>
    </item>
  </channel>
</rss>
