<?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: Shashank727663</title>
    <description>The latest articles on DEV Community by Shashank727663 (@shashank727663).</description>
    <link>https://dev.to/shashank727663</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%2F812902%2F6cb79639-62b6-4849-ad57-190b69b5cfda.jpeg</url>
      <title>DEV Community: Shashank727663</title>
      <link>https://dev.to/shashank727663</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shashank727663"/>
    <language>en</language>
    <item>
      <title>Study over Joins in sql and nosql databases.</title>
      <dc:creator>Shashank727663</dc:creator>
      <pubDate>Mon, 06 Jun 2022 15:02:37 +0000</pubDate>
      <link>https://dev.to/shashank727663/study-over-joins-in-sql-and-nosql-databases-2j55</link>
      <guid>https://dev.to/shashank727663/study-over-joins-in-sql-and-nosql-databases-2j55</guid>
      <description>&lt;h2&gt;
  
  
  what are joins actually?
&lt;/h2&gt;

&lt;p&gt;lets discuss that first.&lt;br&gt;
As of now, we all know that in SQL databases  if there are two tables with a common entity we can perform an algorithm in order to merge both the tables, and as a result we get a new table that consists of the common entities and with some constraints for ex:-(left join, right join,self join) we can preserve the whole data of a table that we choose.&lt;br&gt;
a very typical SQL query for a join is given below&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SELECT book.title, publisher.name
FROM book
LEFT JOIN book.publisher_id ON publisher. id;

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;WHY SQL DATABASES PERFORM JOINS&lt;/strong&gt;&lt;br&gt;
The reason that SQL databases perform joins is that they form relations between them i.e. they are also called Relational databases. Also, SQL databases use a diagrammatical representation of relationships between entities that are also called E-R DIAGRAMS.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NO SQL databases&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;A brief Introduction to NoSQL databases&lt;/strong&gt;&lt;br&gt;
these types of DBS (such as MongoDB,dynamodb, NEO4j, etc) are very useful to build modern-day applications where we are not sure that the data coming from the client-side will always be consistent or not some of the cases where we can use NoSQL DBS are:-&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Fraud detection and identity authentication.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;iot based systems&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;and also there are many more cases where we can use NoSQL DBS&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;How does NoSQL DBS store data and how it's different from SQL DBS?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;As we know that SQL databases use a table-like structure as discussed earlier in the article &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;but when it comes to NoSQL DBS the data is stored in the form of key-value pairs (collections )&lt;br&gt;
something of the sort that is given below:-&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "_id": ObjectID("45b83bda421238c76f5c1969"),
  "name": "virat",
  "email: "virat@kohli.com",
  "country": "india",

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

&lt;/div&gt;



&lt;p&gt;Also, NoSQL DBS are also called non-relational databases which means our DBS (entities inside them cannot have relations ) since no relations means that we cant perform join operations(Algorithms).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;unfortunately, it is not possible to perform a Join into a NoSQL database. This is one of the biggest differences between SQL and NoSQL DBS.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>webdev</category>
      <category>node</category>
      <category>database</category>
      <category>computerscience</category>
    </item>
  </channel>
</rss>
