SQL queries and node js

Thanks for the response @Igor_Motov. It works perfectly your way. I have raised a few more queries regarding the same here It would be of much help if I could get some response there as well.

Thanks!!