Started by Natasha JonesSep 22, 2021

Open
How to check value of column with another column of different table in rails and update value of a column with different column of another table

0 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 0 VIEWES SHARE

I am working on a rails project and want to do some modification to the rapidfire gem tables for my work.

There are two tables "rapidfire_question" and "rapidfire_answer".

"rapidfire_question" has a column name correct_answer and "rapidfire_answer" has a column named answer_text .

I want to check if value of correct_answer is equal to answer_text then update the value of the column named marks of table "rapidfire_question" to column named marks_gained of table "rapidfire_answer".

Can anyone would help me with that.

0 Replies

You must be Logged in to reply
Trending Categories
15
Software39
DevOps45
Frontend Development24
Backend Development19
Server Administration17
Linux Administration24
Data Center24
Sentry24
Terraform21
Ansible29
Docker28
Penetration Testing14
Kubernetes16
NGINX19
JenkinsX17
Techiio

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

facebooklinkdeintwitter

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Copyright techiio.com @2020 Kolkata, India
made with by Abhishek & Priyanka Jalan
Copyright techiio.com @2020
made with by Abhishek & Priyanka Jalan