I want to be able to write a query in C# Visual Studio 2012 in a WinForms Application that won't display matching records. Say I have a record in an Access DB that reads,
JOHN SMITH MALE 19
JANE DOE FEMALE 19
JOHN SMITH MALE 19
And a query something like this
SELECT a.NAME FROM [NAME] a WHERE a.NAME = JOHN SMITH
//but returns both records in the table
How would I be able to just return one single record from the table? Any help would be much appreciated.