SELECT * FROM Education WHERE EducationType='''' OR idEducation in (select Education from StudentTable where EducationType like '''+inttostr(DBLookupComboBox1.KeyValue)+''')