Skip to content

Commit 9797467

Browse files
authored
Merge pull request #697 from hyoshioka0128/patch-3
Fix formatting for foreign key notes in README (Typo "> [!NOTE]")
2 parents 624b1cf + 2757436 commit 9797467

File tree

1 file changed

+4
-2
lines changed
  • 2-Working-With-Data/05-relational-databases

1 file changed

+4
-2
lines changed

2-Working-With-Data/05-relational-databases/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ With our cities table created, let's store the rainfall. Rather than duplicating
8888

8989
Notice the **city_id** column inside the newly created **rainfall** table. This column contains values which reference the IDs in the **cities** table. In technical relational data terms, this is called a **foreign key**; it's a primary key from another table. You can just think of it as a reference or a pointer. **city_id** 1 references Tokyo.
9090

91-
> [!NOTE] Foreign key is frequently abbreviated as FK
91+
> [!NOTE]
92+
> Foreign key is frequently abbreviated as FK
9293
9394
## Retrieving the data
9495

@@ -108,7 +109,8 @@ FROM cities;
108109

109110
`SELECT` is where you list the columns, and `FROM` is where you list the tables.
110111

111-
> [NOTE] SQL syntax is case-insensitive, meaning `select` and `SELECT` mean the same thing. However, depending on the type of database you are using the columns and tables might be case sensitive. As a result, it's a best practice to always treat everything in programming like it's case sensitive. When writing SQL queries common convention is to put the keywords in all upper-case letters.
112+
> [!NOTE]
113+
> SQL syntax is case-insensitive, meaning `select` and `SELECT` mean the same thing. However, depending on the type of database you are using the columns and tables might be case sensitive. As a result, it's a best practice to always treat everything in programming like it's case sensitive. When writing SQL queries common convention is to put the keywords in all upper-case letters.
112114
113115
The query above will display all cities. Let's imagine we only wanted to display cities in New Zealand. We need some form of a filter. The SQL keyword for this is `WHERE`, or "where something is true".
114116

0 commit comments

Comments
 (0)