update sql for cout of  pricecodes