---
title: "Discussion on \"From SQL to NoSQL world!\" | Hashnode"
description: "Discussion on \"From SQL to NoSQL world!\". Part 1 of 2:\nIn this article, we will explore a developer's experience moving from writing SQL queries to NoSQL queries for analytics. We will divide this article into two parts. First part will cover SQL section.\nPS: Readers should have in-depth kno..."
url: "https://hashnode.com/posts/from-sql-to-nosql-world/5ff9ce2aaa5c467fe155896b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [From SQL to NoSQL world!](https://manishbasnet.hashnode.dev/from-sql-to-nosql-world?utm_source=hashnode&utm_medium=feed)

Part 1 of 2: In this article, we will explore a developer's experience moving from writing SQL queries to NoSQL queries for analytics. We will divide this article into two parts. First part will cover SQL section. PS: Readers should have in-depth kno...

Jan 9, 2021 · 4 min read · manishbasnet.hashnode.dev  
Read the article

-   [#sql](https://hashnode.com/tag/sql)
-   [#nosql](https://hashnode.com/tag/nosql)
-   [#mysql](https://hashnode.com/tag/mysql)
-   [#mongodb](https://hashnode.com/tag/mongodb)
-   [#analytics](https://hashnode.com/tag/analytics)

## Written by

[Manish Basnet](https://hashnode.com/@manishbasnet)

@manishbasnet

  
[View profile](https://hashnode.com/@manishbasnet)

Software Engineer

## Responses 1

Markdown supported · ⌘↵ to post

[Malakar Rakesh](https://hashnode.com/@malakarakesh)

[Jan 13, 2021](https://hashnode.com/posts/from-sql-to-nosql-world/5ff9ce2aaa5c467fe155896b/comment/5ffe9966c162d710c9b1389b)

Nice article!

The query can also be written as:

```
SELECT actor_name AS actorName, 
       Sum(CASE 
             WHEN acr.rating_name = 'excellent' THEN 1 
             ELSE 0 
           END)   AS total_excellent, 
       Sum(CASE 
             WHEN acr.rating_name = 'better' THEN 1 
             ELSE 0 
           END)   AS total_better, 
       Sum(CASE 
             WHEN acr.rating_name = 'good' THEN 1 
             ELSE 0 
           END)   AS total_good 
FROM   actor_survey acs 
       LEFT JOIN actor_rating acr 
              ON acs.rating_id = acr.id 
GROUP  BY actorname
```

But I understand the posted query is for the sake of the purpose of this article series. :D

[Manish Basnet](https://hashnode.com/@manishbasnet)

[Jan 13, 2021](https://hashnode.com/posts/from-sql-to-nosql-world/5ff9ce2aaa5c467fe155896b/comment/5ffe9966c162d710c9b1389b#reply-5ffec60dc162d710c9b13d67)

This looks better. Thank you! I will go through it again.
