Tell us what are benefits of using Active Record as opposed to raw SQL queries?

Submitted by: Muhammad
Here are the benefits:

☛ it's really easy to go wrong during writing SQL queries
☛ each different type of database usually has a slightly different flavour of SQL, so it could be really painful if, during work on a big app, you decide to switch to a different database
☛ using Active Record reduces code significantly and makes it easier to read
☛ using Active Record makes common operations simpler and easier than writing your own SQL statements
Submitted by: Muhammad

Read Online Ruby on Rails Developer Job Interview Questions And Answers