---
title: "Malakar Rakesh (@malakarakesh) | Hashnode"
description: "Malakar Rakesh (@malakarakesh) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@malakarakesh"
---

@malakarakesh

# Malakar Rakesh

@malakarakesh · Joined January 2021

## Comments

[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](https://hashnode.com/posts/from-sql-to-nosql-world/5ff9ce2aaa5c467fe155896b/comment/5ffe9966c162d710c9b1389b)

Comment · Article · Jan 13, 2021 · [From SQL to NoSQL world!](https://hashnode.com/posts/from-sql-to-nosql-world/5ff9ce2aaa5c467fe155896b)
