How to get other column value in different table into the query?
问题 I had searching application, finding personal information which had been filtered by some criteria (category, years of experience etc) I had problem with the last filter, 'tempoh perkhidmatan by negeri'. I need to calculate the number of working experience by state(negeri). For example, when searching for people of 5 years in the state(negeri) 'x', the sql will sum years of experience of each person in the state selected. This is the full code of SQL searching by criteria: $query = DB::table(