So I was working on some code to read and write data to SQL ( not using LINQ or any fancy stuff.. heck I just started doing managed code. ) I was specifically interested in the count of times , it should look something like this ( from SQL ) select COUNT(DateandTime),DateandTime