hello...
I want to select two different set of rows(same no of columns)from single table and and i want to collect it in a single datatable .
e.g.
First query is
"select * from TABLE1 where chapter_name='chapter1'";
and second query is
"select * from TABLE1 where chapter_name 'chapter2'";
now i want to collect result of these two queries into a single datatable.
please suggest an answer
Loading

Sukesh MarlaRank #461 · 5.4K reputationPosted Sep 11, 2012, 2:09 AM EDT
What you can do is
DAtaTable dt=getFirstDataTable();
.
..
.
.
.
.
DAtaTable dt2=getSecondDataTable();
dt.Merge(dt2)
Now use dt
Check this is correct answer if it helped.
VulpesRank #55 · 29.2K reputationPosted Sep 11, 2012, 12:20 AM EDT
varsha waghmode56 reputationPosted Sep 11, 2012, 1:03 AM EDT
VulpesRank #55 · 29.2K reputationPosted Sep 11, 2012, 2:25 AM EDT
varsha waghmode56 reputationPosted Sep 11, 2012, 2:33 AM EDT
Sukesh MarlaRank #461 · 5.4K reputationPosted Sep 11, 2012, 10:26 AM EDT