MYSQL06: Selecting using where clause

Sometimes we only want to retrieve records with specific field values, for this we use the WHERE clause in the sql statement.

SELECT (name, age) FROM students WHERE age = 15;

this will return following result:

name
age
Joe
15

another example

SELECT (name, age) FROM students WHERE age >= 15;

name
age
Joe
15
Rosy
17


Comments

Popular posts from this blog

Drawing Simple Pie Chart

VB.net connecting to SQL Server

VB.net