i have 2 sql queries each query made with join
1st sql query gives me 105 record which is active project
2nd sql query gives me 577 record which is past projects
i want to show this above 105 and 577 record in a pie chart number of active and past project should be seen in pie chart
how to make count of each query and put in in 1 query

Sachin SinghPosted Nov 19, 2022, 9:15 AM
As per your description, you have two Select statements and you just need the count of each in a single select statement , am i correct?
Then
Rajesh GamiPosted Nov 18, 2022, 11:55 AM
Hello Subin
Try below query (Please set your fields based on your table)
Suppose your table name : ProjectDetal
Fields (Name, Technology, LeadId, IsActive, etc..
I hope this is work for you
Jignesh KumarPosted Nov 18, 2022, 4:01 AM
Hello Thomas,
You can do like below query,
Naresh BeniwalPosted Nov 17, 2022, 5:40 PM
https://ubiq.co/database-blog/how-to-get-multiple-counts-with-single-query-in-mysql/
Abhishek SainiPosted Apr 16, 2019, 6:00 AM
Rajanikant HawaldarPosted Apr 16, 2019, 3:31 AM