I do it like this
A::join(B,"A.ID",'=',"A.ID")
Hope this help :)
Hi @riturajraina, try it:
$query = DB::table('matchscore_profile_data AS a');
$query
->join('matchscore_segment_relevance as asr', 'asr.segment_name', '=', 'a.segment')
->join('matchscore_segment_relevance as bsr', 'bsr.segment_name', '=', 'a.segment')
->select('matchscore_profile_data.*', 'asr.segment_name as asr_segment_name ', 'bsr.segment_name as bsr_segment_name');
return $query;
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community