Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aggregate on union #79

Open
softwarevamp opened this issue Mar 4, 2014 · 1 comment
Open

aggregate on union #79

softwarevamp opened this issue Mar 4, 2014 · 1 comment

Comments

@softwarevamp
Copy link

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
Copy link
Owner

vrana commented Mar 6, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants