Group divisions by sport_id
parent
18f840183f
commit
28b11b7266
|
@ -61,7 +61,8 @@ async function retrieve(sportID = undefined, gender = undefined) {
|
||||||
else {
|
else {
|
||||||
const query = `SELECT division_id, division_name, gender, sport_id
|
const query = `SELECT division_id, division_name, gender, sport_id
|
||||||
FROM scores.divisions
|
FROM scores.divisions
|
||||||
ORDER BY division_name,
|
ORDER BY sport_id,
|
||||||
|
division_name,
|
||||||
gender;`;
|
gender;`;
|
||||||
table = await database.executeQuery(query);
|
table = await database.executeQuery(query);
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue