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

SQL MIN() Function in Mechanoid DB and raw query #233

Open
mrjbg opened this issue Apr 19, 2014 · 1 comment
Open

SQL MIN() Function in Mechanoid DB and raw query #233

mrjbg opened this issue Apr 19, 2014 · 1 comment

Comments

@mrjbg
Copy link

mrjbg commented Apr 19, 2014

Hi,

is it possible to do the following in code in Mechanoid DB through the API?
SELECT MIN(column_name) FROM table_name;

What about raw queries?

Thanks!

@fluxtah
Copy link
Contributor

fluxtah commented Apr 19, 2014

It should be possible to use the function in your column projection, ie:-

    String cols= new String[] {"min(column_name) as alias_name"};

At the most there is no way to use a raw query out-of-the-box but its something I am looking at.

On 19 Apr 2014 16:17, mrjbg [email protected] wrote:

Hi,

is it possible to do the following in code in Mechanoid DB through the API?
SELECT MIN(column_name) FROM table_name;

What about raw queries?

Thanks!


Reply to this email directly or view it on GitHub.

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