To Restrict The Output by Including WHERE Conditions
To Restrict The Output by Including WHERE Conditions
To display only the records that contain the data '95' in the 'Year' field.
mysql> mysql> CREATE TABLE Employee( -> id int, -> first_name VARCHAR(15), -> last_name VARCHAR(15), -> start_date YEAR, -> end_date DATE, -> salary FLOAT(8,2), -> city VARCHAR(10), -> description VARCHAR(15 mysql> insert into Employee(id,first_name, last_name, start_date, end_D ate, salary, City, Description) -> values (1,'Jason', 'Martin', '1995', '2 0930725', 1234.56, 'Toronto', 'Programmer'); Query OK, 1 row affected (0.00 sec) mysql> mysql> insert into Employee(id,first_name, last_name, start_date, end_D ate, salary, City, Description) -> values(2,'Alison', 'Mathews', '1976', '1 9860221', 6661.78, 'Vancouver','Tester'); mysql> SELECT * FROM employee WHERE (start_date = 95);