Primary Key is a column that serves a unique identifier for row in the table.
Values in this column must be unique and cannot be NULL.
Foreign Key is a column that contains the primary key to another table in the database.
It is used to identify a particular row in the referenced table.
Joins are used in SQL to combine data from multiple tables.
INNER JOIN will combine rows from different tables if the join condition is true.
LEFT OUTER JOIN will return every row in the left table, and if the join condition is not met, NULL values are used to fill in the columns from the right table.
AS is a keyword in SQL that allows you to rename a column or table in the result set using an alias.
Learn SQL
これがSQL最後のレッスンでした。
内容は複数のテーブルからデータを参照する方法でした。
Primary Keyはテーブル内の行から固有の識別子を与える列である。
この列の値は必ず固有にし、そして、NULLを入れることが出来ない。
Foreign Keyはデータベース内の別のテーブルに対するPrimary Keyを含む列である。
それは参照したテーブル内の特定の行を見分ることに使用される。
Joinsは複数のテーブルからのデータを結合するためにSQLで使われる。
INNER JOINはもし結合条件がtrueならば異なるテーブルから行を結合する。
LEFT OUTER JOINは左のテーブルのすべての行に返し、そしてもし結合条件が満たされない場合、NULL値を右側のテーブルから列内に満たすため使用される
ASは別名を使用して結果セットのテーブルまたは列リネームすることを許可するSQLのキーワードである。
わからなかった単語
identifier (名) 識別子、ないしはcookieなどのデータを識別するプログラムなど
alias éɪliəs(名) 通称、別名、仮名
今回は単語以前に内容が難しい。
復習しても何がなんだかわからない。