8
Answers

Remove duplicate entry in sql query

chethana mn

chethana mn

11y
1k
1
Hi,
 
I want to truncate duplicate rows but Qty should be added
 
I have a table filled with data,
 

Item Qty MinQty MaxQty
ABC10 20 50
XYZ 12 30 40
ABC 15 20 50
 
I want the result like,
Item Qty MinQty MaxQty
ABC25 20 50
XYZ 12 30 40
 
Kindly help me to write the query for the same...
Answers (8)
2
Ajeesh

Ajeesh

NA 349 1.6k 7y
If you are looking for a code to get the selected values from checkboxlist then you can use below code
  1. var checkboxValues = [];  
  2.                 //Get selected value from checkbox like below  
  3.                 $('[id*=chktagindex] input:checked').each(function () {  
  4.                     checkboxValues.push(this.value);  
  5.                 });  
  6.                 var result = checkboxValues.toString();  
 You need to change the checkboxlist markup like below
  1. <asp:CheckBoxList ID="chktagindex" runat="server" Width="162px">  
  2.                 <asp:ListItem Text="TagIndex1" Value="TagIndex1"> </asp:ListItem>  
  3.                 <asp:ListItem Text="TagIndex2" Value="TagIndex2"></asp:ListItem>  
  4.                 <asp:ListItem Text="TagIndex3" Value="TagIndex3"></asp:ListItem>  
  5.             </asp:CheckBoxList>  
 
0
Suraj Kumar

Suraj Kumar

NA 1.3k 14.4k 7y
Hi Nitish,
As you have given heading of your question "checkboxlist select query in j query" and also provided your code snippet. But, you have not properly ask what difficulty you are facing? So, can you modify your question for better understanding?
Thanks
Next Recommended Forum