-1

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 ?

Cactus
  • 27,075
  • 9
  • 69
  • 149

1 Answers1

0

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'));
oseintow
  • 7,221
  • 3
  • 26
  • 31