Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2007

    Question Unanswered: returning more than one column in function

    select tid, sum(AMOUNT) totalAccINR ,TOTALUSD totalAccomUSD from CMExpense where TOTALIN = '5000' group by tid ;

    how to write these select query inside the function

    and finally want to return totalAccINR, totalAccomUSD these 2 column values

    thanks in advance
    Last edited by gowridoc; 09-25-07 at 01:24.

  2. #2
    Join Date
    Apr 2002
    Toronto, Canada
    gowri, you need to consult your SQL Reference manual

    your query has three WHEREs -- you are allowed only one | @rudydotca
    Buy my SitePoint book: Simply SQL

Posting Permissions

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