SQL Practice & Exercise: MIS 305, Section: 01, 02 & 03 Instructor: Rezwanul Alam
SQL Practice & Exercise: MIS 305, Section: 01, 02 & 03 Instructor: Rezwanul Alam
SQL
SELECT
List the columns from tables that the user would like to see in a result table
FROM
Identifies the tables or views from which columns will be selected
WHERE
Includes conditions for selecting specific rows (records) within a single table and conditions for joining multiple tables
ID
Name
1017 Anwar
1045 Zinia 1118 Simi 1120 John
1160 Mehedi
1224 Mamun 1290 Asif
John
Mehedi Mamun Asif
1120 BBA
1160 BBA 1224 BBA 1290 Computer Science
<>
< > <= >= AND
Not equal
Less than Greater than Less than or Equal Greater than or Equal AND
OR
OR
1118 Simi
1120 John
Computer Science
BBA
Mehedi
Anwar Simi Asif
John
John
Mamun Mehedi Zinia
Dr. Lisa
Dr. Lisa Dr. Lisa Dr. Lisa
NO
YES NO NO
Asif
Simi Anwar
Dr. Zaman
Dr. Zaman Dr. Alex
NO
NO YES