Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Functionality for min(column) max(colum) and 'GROUP BY column' #1062

Open
Assignees
@focussing

Description

Hi Maurits, how are you?

I am converting an application form accessing a mysql database directly to using a REST API.

One sql string is puzzling me a bit:

sql = string.Format("SELECT adres, kwhmeter_id, min(pulsen), max(pulsen) FROM 'pulsen' WHERE (gebruiker_id=@gebruiker_id) AND (timestamp>='{0}') AND (timestamp<='{1}') GROUP BY adres", StartDate.ToString(MYSQL_DATE_FORMAT), EndDate.ToString(MYSQL_DATE_FORMAT));

Could not find it in the docs, so I am wondering...
Is the following functionality present in your api.php?

  • min(column)
  • max(colum)
  • GROUP BY column

If not do you have suggestions in how to implement it?

Thanks on forehand!

Looking forward to hearing from you,
Best regards,
Raymond

Metadata

Metadata

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /