changing mysql query ino sql

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shavy
    New Member
    • Oct 2007
    • 1

    changing mysql query ino sql

    I have this query which is in mysql
    [code=vb]
    symbolQuery = "select symbol,sum(IF(l edger='BUX' or ledger='BU2',ab s(qty)/2,abs(qty))),fe ptrddate "+"from bookkeeping.fep tradesTemp where"+"account != '999997' "+"and feptrddate = '"+dateStr+" ' "+"and symbol != '' "+"group by symbol";
    [/code]
    I want to change it in sql.....
    will therr be any difference?
    Last edited by pbmods; Oct 26 '07, 12:15 PM. Reason: Added CODE tags.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by shavy
    I have this query which is in mysql

    symbolQuery = "select symbol,sum(IF(l edger='BUX' or ledger='BU2',ab s(qty)/2,abs(qty))),fe ptrddate "+"from bookkeeping.fep tradesTemp where"+"account != '999997' "+"and feptrddate = '"+dateStr+" ' "+"and symbol != '' "+"group by symbol";

    I want to change it in sql.....
    will therr be any difference?
    Moved to MySQL forum.
    Please do not post questions in the articles section.

    Comment

    • amitpatel66
      Recognized Expert Top Contributor
      • Mar 2007
      • 2358

      #3
      Originally posted by shavy
      I have this query which is in mysql

      symbolQuery = "select symbol,sum(IF(l edger='BUX' or ledger='BU2',ab s(qty)/2,abs(qty))),fe ptrddate "+"from bookkeeping.fep tradesTemp where"+"account != '999997' "+"and feptrddate = '"+dateStr+" ' "+"and symbol != '' "+"group by symbol";

      I want to change it in sql.....
      will therr be any difference?
      There should not be any diff except some changes in syntax. Try changing it and post back in case if you face any error

      Comment

      Working...