icarus1
Member
Hi there,
I have a data base with 2 tables:
table1:
VB.NET:
Date Name Id Hours_Clocked
=====================================
10/02/2010 Michael 1 15,3
10/02/2010 Nick 2 10,4
11/02/2010 Michael 1 9,5
12/02/2010 Michael 1 10,8
12/02/2010 George 3 5,2
table2:
VB.NET:
Id Name
=============
1 Michael
2 Nick
3 George
For example when I am using
Dim date As String
Dim sqlCommand As String
sqlCommand = "SELECT * FROM table1 WHERE Date = """ & date & """ "
The result in the DataGridView is:
Ex. date = 12/02/2010
VB.NET:
Date Name Id Hours_Clocked
=====================================
12/02/2010 Michael 1 10,8
12/02/2010 George 3 5,2
Now my proble is that I need to build a DataGridView like this:
Example: date = 12/02/2010
VB.NET:
Date Name Id Hours_Clocked
=====================================
12/02/2010 Michael 1 10,8
12/02/2010 George 3 5,2
Nick 2
or another Example: date = 11/02/2010
VB.NET:
Date Name Id Hours_Clocked
=====================================
11/02/2010 Michael 1 9,5
Nick 2
George 3
Can you please help me to syntax the right SQL question???
Thank you.