You are here: Forums Ask a Rails expert Merging fields from two tables...
Posted in Forums : Ask a Rails expert
Authority 25
Posting Rating 0
Sign in to rate this post
|
Hi, I have two tables, nutritions and food_options. I want to select all records from nutritions and food_options into a new table, C with Fields fooditem_id and taken. This means I need to combine the values of fooditem_id in nutritions and fooditem_id in food_options into one field (fooditem_id), including the duplicates in both tables. EX: food_options C How can I do this? thanks, |
Ask a Rails expert : Ruby Builder
Ask a Rails expert : Better programming skills
Ask a Rails expert : Select Option
Ask a Rails expert : Updating ruby version on windows
Ask a Rails expert : Periodicall Ajax Calls and Session Expiry
Ask a Rails expert : Sub queries in RoR
Ask a Rails expert : Remembering associations
Ask a Rails expert : Keeping the databse clean
Ask a Rails expert : How to redirect single app to 2 different URLs
Ask a Rails expert : Dealing with nested models