Advanced Active Record: Using Subqueries in Rails
02-Jul-2020 328
Active Record provides a great balance between the ability to perform simple queries simply, and also the ability to access the raw SQL sometimes required to get our jobs done. In this article, we will see a number of real-life examples of business needs that may arise at our jobs.They will come in the form of a request for data from someone else at the company, where we will first translate the request into SQL, and then into the Rails code necessary to find those records. We will be covering five different types of subqueries to help us find the requested data.
Advanced Active Record: Using Subqueries in Rails #ruby #rubydeveloper #rubyonrails #Advanced #Active #Record: #Using #Subqueries #Rails #active #record: https://rubyonrails.ba/link/advanced-active-record-using-subqueries-in-rails