aggregate on union
Opened this issue · 1 comments
softwarevamp commented
i have a situation where to find max slug
$max_slug = $db->manufacturers()->select('manufacturers_slug slug')->union($db->categories()->select('categories_description:categories_slug slug'))->max('slug');
seem notorm cannot handle this
can you add an api to execute plain query? do you plan to do that?
vrana commented
No, I don't plan to add an API to execute plain query. This seems like
easily solvable by two queries.
Jakub
On 03/03/2014 10:45 PM, softwarevamp wrote:
i have a situation where to find max slug
|$max_slug = $db->manufacturers()->select('manufacturers_slug slug')->union($db->categories()->select('categories_description:categories_slug slug'))->max('slug');
|seem notorm cannot handle this
can you add an api to execute plain query? do you plan to do that?—
Reply to this email directly or view it on GitHub
#79.