ASP + SQL2000 : request with COMPUTE SUM(xx)

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default ASP + SQL2000 : request with COMPUTE SUM(xx)

    Hello,
    this is the query :
    select IdBC, DateBc, montantHT From Table_BC,
    Table_LignesC where Table_BC.IdBC=Table_LignesC.IdBC order
    by Table_BC.IdBC COMPUTE SUM(montantHT) by Table_BC.IdBC

    I can acces to my selection (IdBC, DateBc, montantHT)
    But how can i reach the famous sum ?
    I've red that when you execute this kind of query it
    returns 2 recordset
    but i can't read the second.
    Has someone already done this in ASP, or maybe could help
    me ?

    Thanks for your answers
    Bryce Guest

  2. Similar Questions and Discussions

    1. sql2000 backwards
      i made the mistake of getting the enterprise evaluation edition that will soon expire. i just purchased the developer edition and am wondering how...
    2. CF, SQL2000, and XML
      Long story short, I need to create an XML file from a SQL table preferably with CF. Right now I'm using a test table just to figure out how to do...
    3. How do I get 'COMPUTE' output
      Using the following SQL query: select MsgDate, 'User'= CASE SIP WHEN '192.168.0.2' THEN 'David' WHEN '192.168.0.3' THEN 'Eddie' WHEN...
    4. Perl - how to compute totals via hash request
      Dear Perl Gurus, I have a tab delimited log file that contains data of system downtimes. It has 4 fields namely ID, type of downtime (whether...
    5. [Q] How to automatically compute a self relationship key
      Consider the following using FMP Dev 6.04 and Mac OS X 10.2.6 : A DB with Names, addresses, etc. I want to automate the linking together of...
  3. #2

    Default Re: ASP + SQL2000 : request with COMPUTE SUM(xx)

    Set oRst = oRst.nextrecordset

    "Bryce" <bwattellier_NOSPAM@alris.com> wrote in message
    news:007b01c38127$58f22e00$a401280a@phx.gbl...
    > Hello,
    > this is the query :
    > select IdBC, DateBc, montantHT From Table_BC,
    > Table_LignesC where Table_BC.IdBC=Table_LignesC.IdBC order
    > by Table_BC.IdBC COMPUTE SUM(montantHT) by Table_BC.IdBC
    >
    > I can acces to my selection (IdBC, DateBc, montantHT)
    > But how can i reach the famous sum ?
    > I've red that when you execute this kind of query it
    > returns 2 recordset
    > but i can't read the second.
    > Has someone already done this in ASP, or maybe could help
    > me ?
    >
    > Thanks for your answers

    Raymond D'Anjou \(raydan\) Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139