c# - union processed data from DataTables into new one and set the result to RDLC -
i want make datatable data multiple queries. show @ example: got table data:
datatable1 column id, a, b, c and want create datatable2 can put column d new value="this table2 rows" first 10 rows column b equal value 5:
datatable2 column id, a, b, c, d then want create datatable3 column d value="this table3 rows" first 6 rows rows id not in datatable2
and on... want union datatable:
datatable2 column id, a,b,c,d union datatable3 column id, a,b,c,d union datatable4 column id, a,b,c,d to datatable100 , present result in rdlc. create datatable use microsoft visual studio 2015 .xsd editor. how can achieve this?
in sql make this:
select top 10 id, a, b, c, d="table2 rows" ##temp1 datatable1 b=5; select top 6 id, a,b,c,d="table3 rows" ##temp2 datatable1 b=5 , id not in (select id ##temp1); select top 2 id, a,b,c,d="table4 rows" ##temp3 datatable1 b=2 , id not in (select id ##temp1) , id not in (select id ##temp2); and on. don't know how in visual studio. can use temporary tables?
Comments
Post a Comment