-
-
Save jezinka/86acf8662de27f3de90a5300517ebc84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private String getCountDinnersQuery() { | |
String mealName = MealContract.columnName; | |
return "select " + mealName + ", count(" + mealName + ") as quantity from " + tableName | |
+ " join " + MealContract.tableName | |
+ " on " + tableName + "." + columnMealId + " = " + MealContract.tableName + "." + _ID | |
+ " group by " + mealName | |
+ " order by 2"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment