August 15, 2024
SQL UNION with Rails
I recently needed to combine two different queries into a single result that can be queryable using Postgres with Rails 7.1. The more I looked online, the more I was convinced that I had to use raw SQL for this. I did not mind the idea of using raw SQL. However, I needed to also modify the result of the UNION further with more business...
Read more