MCQs > Website Designing & Development > Laravel Framework > Which is the correct sample code to union two queries?

Laravel Framework MCQs

Which of the following is the correct sample code to union two queries?

Answer

Correct Answer: $first = DB::table('contacts') ->whereNull('first_name'); $contacts = DB::table('contacts') ->whereNull('last_name') ->union($first) ->get();

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Laravel Framework Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Laravel Framework Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it