りあにゃん のすべての投稿

I am 43. We are called `oba-chan` in Japanese. Japanese Oba-chan needs study English. And then I have be learning English everyday. I think that I'd like to speak English with other country people sometime. 今春、放送大に入学します。

SQL lesson4 summary

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(名) 通称、別名、仮名

今回は単語以前に内容が難しい。
復習しても何がなんだかわからない。

SQL lesson3 summary

COUNT takes the name of a column(s) as an argument and counts the number of rows where the value(s) is not NULL.
GROUP BY is a clause used with aggregate functions to combine data from one or more columns.
SUM() takes the column name as an argument and returns the sum of all the values in that column.
MAX() takes the column name as an argument and returns the largest value in that column.
MIN() takes the column name as an argument and returns the smallest value in that column.
AVG() takes a column name as an argument and returns the average value for that column.
ROUND() takes two arguments, a column name and the number of decimal places to round the values in that column.
Learn SQL

今回はデータの集計関係のコードを学習しました。
COUNTは、引数として列の名前を取得し、値がNULLでない行の数をカウントする。
GROUP BYは、複数列からのデータを結合する集計関数で使用される構文である。
SUM()は引数として列の名前を取得し、その列のすべての値の合計を返す。
MAX()は引数として列の名前を取得し、その列の最大値を返す。
MIN()は引数として列の名前を取得し、その列の最小値を返す。
AVG()は引数として列の名前を取得し、その列の平均値を返す。
ROUND()は、二つの引数を取得し、列の名前とその列の値を四捨五入し小数点以下の桁数を取ります。

こんな感じかな?

わからなかった単語
aggregate (形) 合計の、全体としての、総合した
aggregate (名) 集合、通算
aggregate (動) 集める、組み合わせる、結びつける、合する
aggregate function(名)集計関数《表計算ソフトで, ある列(など)のすべてのデータについて作用する関数; 平均, 合計, 最大値など》
readable (形) 見やすい、鮮やかな、明確な
round(動) 四捨五入する、非難する、回る、一周する

round
【形容詞】
丸める; ラウンド; 丸い
いわゆる「丸める」というもので,具体的には,切捨てる(round down),切り上げる(round up),四捨五入する(round off)がある.プログラム作成において,計算処理の部分で考慮すべきことの一つである.
位取り表現において,1個以上の数字を最下位から削除又は省略し,残りの部分をある指定された規則に従って調整すること.
〈注〉1)丸めの目的は,通常,数表示の精度を限定すること,数表示における文字数を減らすこと,又はその両者である.2)算術における最も一般的な丸め方は,切捨て,切上げ及び四捨五入である.
用例
the computer rounds the value to next highest multiple of 4
コンピュータは,次の高位の4の倍数に丸める
参照 truncate(打ち切る;切り捨てる)

http://ejje.weblio.jp/content/round

decimal (形) 小数の
decimal (名) 小数

SQL lesson2 summary

SELECT is the clause you use every time you want to query information from a database.
WHERE is a popular command that lets you filter the results of the query based on conditions that you specify.
LIKE and BETWEEN are special operators that can be used in a WHEREclause
AND and OR are special operators that you can use with WHERE to filter the query on two or more conditions.
ORDER BY lets you sort the results of the query in either ascending or descending order.
LIMIT lets you specify the maximum number of rows that the query will return. This is especially important in large tables that have thousands or even millions of rows.
Learn SQL

SELECT とはデータベースから情報を照会するときに使用する構文である。
WHERE とは照会したデータから特定の条件でフィルターをかける人気のあるコマンドである。
LIKE and BETWEEN とはWHERE構文で使用できる演算子である。
AND and OR 二つ以上の条件でクエリにフィルタをかけることが出来るWHERE構文とともに使用できる特別な演算子である
ORDER BY 照会した結果を昇順降順でソートすることが出来る。
LIMIT クエリが返す行の最大値を指定することが出来る。これは数千、数百万と行を持つ大きなテーブルにとってとても重要である。

演算子(えんざんし、英: operator symbol, operator name)は、各種の演算をあらわす記号・符牒のことである。 構文論的には演算と演算子は区別されるべきものだが、誤解の恐れのない場合には、しばしば演算子とそれが表す演算自体とを(意図的に)混同して使用する例が見受けられる。
演算子 – Wikipediaよりhttps://ja.wikipedia.org/wiki/演算子

readingbooks脳科学的に正しい英語学習法を読む。

勉強も長くやっていると行き詰ってくる。
そういう時ついつい読んでしまうのが脳科学的に正しい英語学習法
この本に書かれているのはざっくり言えば
「好きこそ物の上手なれ」ということ
そして著者がためした学習方法の二点だ

結局はどんな勉強でも興味が無いと身に付きにくい。
そんな当たり前かもしれないことが書いてある本です。

私の場合は何に興味があるのかと言えば
コンピューターがらみのあれこれ
映画(主に洋画)
漫画(冒険ものが好き)
アニメ(近未来またはライトノベル的なものがすき)
ゲーム(主にRPG)
読書(基本的にファンタジーなジャンルが好き)
音楽(英語がわからないのにPET SHOP BOYSが好きだったりする)

私の興味のあることを見直すと
よくこれだけの英語が必要そうなものが好きだったくせに
うん十年英語から目を背けてきたものだと…。

ここ数日SQLの勉強をし始めて
今までどれだけ適当に過ごしてきたか痛感しています。
たとえばプログラム言語でよく出てくる「null」これを「ぬる」と読んでいたり
単語の意味がわからないから構文の意味がわかってなかったり
単語の意味がわからないのに辞書を引かなかったり
はっきり言ってめちゃくちゃです。
今まで回り道のように感じいてた単語を覚えることで
特に意識せずに文章を読めたり(まだ聞き取りは苦手)するようになってきているので
頑張った甲斐があったのだと実感しています。

なにを馬鹿みたいに勉強しているの?と
身内に言われたりもしますが
ここ数年馬鹿みたいに英語を勉強してきてよかったと思っています。

これからも亀のように歩みは遅いかもしれないけれど
頑張って学習を続けていこうと思っています。

当たり前のことを再認識させてくれる本です。
英語学習に行き詰ったときお勧めの一冊です。

SQL lesson1 summary

SQL is a programming language designed to manipulate and manage data stored in relational databases.
A relational database is a database that organizes information into one or more tables.
A table is a collection of data organized into rows and columns.
A statement is a string of characters that the database recognizes as a valid command.
CREATE TABLE creates a new table.
INSERT INTO adds a new row to a table.
SELECT queries data from a table.
UPDATE edits a row in a table.
ALTER TABLE changes an existing table.
DELETE FROM deletes rows from a table.

Learn SQL
続きを読む SQL lesson1 summary