Hello
Given the following table definition, I would like to obtain the ID of the younger policeman and his birth date:
here was my unsuccessful attempt:Code:CREATE TABLE `people` ( `Person_ID` int unsigned not null, `Job` varchar not null, `Birthdate` datetime not null, PRIMARY KEY (`Person_ID`) ) ENGINE=MyISAM default charSET=latin1;
Any help would be appreciatedCode:SELECT Person_ID, Birthdate FROM people WHERE Birthdate >= ( SELECT Birthdate FROM people WHERE Job = 'Policeman');




Bookmarks