This file contains hidden or 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
queries: | |
SELECT t.name, COUNT(*) AS nb_player | |
FROM player as p | |
JOIN team AS t ON p.team_id=t.id | |
GROUP by t.id | |
ORDER BY nb_player DESC; | |
SELECT t.name | |
FROM player as p | |
JOIN team AS t ON p.team_id=t.id |
This file contains hidden or 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
const connection = require('./db-config'); | |
const express = require('express'); | |
const app = express(); | |
const Joi = require('joi'); | |
const port = process.env.PORT || 3000; | |
connection.connect((err) => { | |
if (err) { | |
console.error('error connecting: ' + err.stack); |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Document</title> | |
</head> | |
<body> | |
<p id="counter-render"></p> | |
<button id="button-increment">Increment</button> |
OlderNewer