I have events table which include so many cols besides Id PK
and table Comments which includes text, eventId and Id PK .
how can I select the event information and it’s comments in one single sql statement, how to use it and how it should look like !?
Note that EventId(Comments) = Id(events)
Well this should do it…
If you dont need all columns it is good practice to select only the columns you realy need.
To Extract it in your C# code you might do it the
System.Datastyle: