app.get("/total", function(req,res){
var q = "SELECT COUNT(*) AS new FROM voters_detail WHERE parties LIKE '%BJP%'";
connection.query(q, function(err, results){
if(err) throw err;
var hello = results[0].new;
res.send("BJP Was Voted By " + hello + " People");
});
});
I want to add and new query which says that;
SELECT COUNT(*) FROM voters_detail WHERE parties LIKE '%Congress';
And then I want that it also displays on the \total page when I call this route on my server.
Help me out, please!