i dont use sql pivot
sql query return
date total name
01/01/2014 20 mark
10/01/2014 30 daniel
11/01/2014 40 mark
i want to datatable
date mark daniel
01/01/2014 20
10/01/2014 30
11/01/2014 40
VulpesPosted Mar 5, 2014, 4:54 AM
Try this revised code which also deals with the case where there's more than one row with both the same date and the same name:
WhalPosted Mar 5, 2014, 3:31 AM
date mark daniel
01/01/2014 20 30
VulpesPosted Mar 4, 2014, 4:37 PM
Then the following code should create another DataTable on the lines you want: