I have a problem with a query in Oracle SQL.
I have a first_name column in an employees table. I want to group my records according to the
first_name
employees
In Rails/postgres that might look something like this
group_clause = 'UPPER(LEFT(name, 1))' Division.group(group_clause).order(group_clause).pluck(group_clause, 'COUNT(id)')