mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
13 lines
346 B
JavaScript
13 lines
346 B
JavaScript
function main(args) {
|
|
console.log(squel.select({ separator: "\n" })
|
|
.from("students")
|
|
.field("name")
|
|
.field("MIN(test_score)")
|
|
.field("MAX(test_score)")
|
|
.field("GROUP_CONCAT(DISTINCT test_score ORDER BY test_score DESC SEPARATOR ' ')")
|
|
.group("name")
|
|
.toString());
|
|
}
|
|
|
|
exports.main = main;
|