In programming, as the size of the project grows, the complexity of the application also grows automatically. In this article, we will learn how we can get the count records that are linked with another table using hasMany relation. We will discuss how we can achieve result using different approaches and their benefits and drawbacks.
Let’s talk about the scenario that we are going through at the moment. Suppose, we have two tables called careers
and applicants
. The careers
the table will store all the jobs opening. On the other hand, the applicants
table will store all the job applications that are applied to each job.
Continue Reading... https://bit.ly/3oXQsYM