+ Reply to Thread
Results 1 to 2 of 2

SQL command required

  1. #1
    Vass
    Guest

    SQL command required

    My SQL already removes duplicates and some rows that are blank
    with this:
    Select * From itran INNER JOIN ihead ON itran.it_doc = ihead.ih_doc WHERE
    itran.it_status = 'A' AND ihead.ih_quotat = "" AND itran.it_stock <>""

    But I would like it to add a column from the data queried, that takes 2 of
    the columns and multiplys them together
    thanks
    --
    Vass



  2. #2
    HS Hartkamp
    Guest

    Re: SQL command required


    SELECT *, [ColumnX]*[ColumnY] AS [FieldnameZ] FROM .. etc.


    Bas Hartkamp.


    "Vass" <[email protected]> schreef in bericht
    news:[email protected]...
    > My SQL already removes duplicates and some rows that are blank
    > with this:
    > Select * From itran INNER JOIN ihead ON itran.it_doc = ihead.ih_doc WHERE
    > itran.it_status = 'A' AND ihead.ih_quotat = "" AND itran.it_stock <>""
    >
    > But I would like it to add a column from the data queried, that takes 2 of
    > the columns and multiplys them together
    > thanks
    > --
    > Vass
    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1