I already found the MySQL query that I want to use
INSERT INTO tbl_time_in (studentID, studentDAY, studentDATE, studentTIME_IN, temp_schedule_ID)
SELECT *
FROM (SELECT 'rupert', 'Tuesday', 'June 29, 2016' ,'23:20', '59') AS tmp
WHERE NOT EXISTS (SELECT studentID
FROM tbl_time_in
WHERE studentID = 'rupert' and studentDATE = 'June 29, 2016' and temp_schedule_ID = '59')
but I also want to know how could I implement this in C# correctly.
I tried to use ExecuteNonQuery and ExecuteReader but it always gives an empty result.