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
-- Task 1: List All Players and Their Scores | |
SELECT | |
p.name AS player_name, | |
g.title AS game_title, | |
s.score | |
FROM | |
players p | |
INNER JOIN scores s ON p.id = s.player_id | |
INNER JOIN games g ON s.game_id = g.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
//Union types | |
// Exercise 1: | |
type idType = number | string; | |
const showId = (code: idType) => { | |
console.log("Your ID is:" + code); | |
}; | |
showId("45678"); |