Please read the first two chapters of SQL in 10 minutes.
You may also want to review http://www.w3schools.com/sql/sql_intro.asp