I'am new to Laravel and wish to run this classic SQL query:
select skill_question.skill_id from skill_question, skill_result
where skill_question.question_id = skill_result.correct_answered_question
How should I do this ?
I'am new to Laravel and wish to run this classic SQL query:
select skill_question.skill_id from skill_question, skill_result
where skill_question.question_id = skill_result.correct_answered_question
How should I do this ?
You can use the DB class to do what you want. example
DB::select(DB::raw('select skill_question.skill_id from skill_question, skill_result where skill_question.question_id = skill_result.correct_answered_question'));