Thanks for your reply and the first table with the name of newsales with sample data is as under
prod_code description quant location year record_num ACC001 Hair 6 12-M 2003 3842
ACC401 Velvet 27 05-P 2003 178
ACC403 Necklace 20 10-L...
I am trying to join 2 tables with in a SUM IF statement. the code is as under:
SELECT prod_code, description, description1, quant,
SUM(IF(newsales.location = '05-P', newsales.quant,''))P,
SUM(IF(newsales.location = '10-L', newsales.quant,'')) L,
SUM(IF(newsales.location = '12-M'...
Hi every body!
I have a file which has a comma at the start and end of every line beside with in the lines. Can any one knows how to get rid of first and last commas of every line?
Thanks in advance.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.