D
Diego F.
Hi. I need to map items from a DataSet to a SQL table.
The problem is that in the DataSet I can have the same item repeted, but in
the table, I have a field "quantity" to avoid that. So what I need is a
structure where I get each item and the number of repetitions.
In the DataSet, I have one table and I only need to use one column, and the
items are integers, so the idea is passing from:
100 102 100 103 to
100 (2) 102 (1) 103 (1) or something like that.
I don't know if I can get something with the DataSet Select method. I passed
the column to an ArrayList, but I don't know if that simplifyes something.
Can you help me?
Regards,
Diego F.
The problem is that in the DataSet I can have the same item repeted, but in
the table, I have a field "quantity" to avoid that. So what I need is a
structure where I get each item and the number of repetitions.
In the DataSet, I have one table and I only need to use one column, and the
items are integers, so the idea is passing from:
100 102 100 103 to
100 (2) 102 (1) 103 (1) or something like that.
I don't know if I can get something with the DataSet Select method. I passed
the column to an ArrayList, but I don't know if that simplifyes something.
Can you help me?
Regards,
Diego F.