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

  1. #1

    Default ASP Help Needed


    Hi

    I need some help with the ASP . I need to know how to make Grand total
    based on Dates . I have the sub total for the dates and like to make
    grand total for same dates . Please see the example below


    Date Sub Total Grand Total

    04/25/2005 $34

    0425/2005 $89

    04/25/2005 $78 --------

    04/26/2005 $34

    04/26/2005 $56
    ------
    04/27/2005 $23

    04/27/2005 $90
    --------

    What I would like to know is that how to make Grand total by dates .
    Grand totals for 04/25 ,04/26, 04/27 using ASP . I need to do it on the
    ASP page .

    I am using MS SQL server 2000 as database

    Thanks



    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Kaushik Mandal Guest

  2. Similar Questions and Discussions

    1. Help with XML needed!!!!
      Hello, I would like to create an extention that will help to manage a glossary. First I need to decide on the structure of the xml document that...
    2. more help needed
      well in the hopes of getting some more help here goes why doesnt this query work i get a 500 internal sevrer error message and no debug info...
    3. help needed please
      I tested this page <%@ Page Language="C#" ContentType="text/html" ResponseEncoding="iso-8859-1" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01...
    4. Help Needed .....
      If someone can help me out I'll b really greatful. Question: Pls write down the benefits, objectives, technical details, implementation,...
    5. else needed?
      On if statements, I periodically don't want anything to happen if the requisite is not met. In most cases just writing the statement in the format...
  3. #2

    Default RE: ASP Help Needed

    Hi!

    This is interesting, and I needed an answer to this too, once. Use datetags,
    for example. What you can do is provide an extra (numeric) field that is the
    sum of all the days since (say) 01 jan 2000. Use datediff() to do the math.
    Then, sort on that field. Derive the difference, again, using datediff()

    Or, dont touch the database (best practice - if you did a PORPER analisys
    beforehand you may not neet to) and use datediff to get to these dates that
    you need....
    It seems possible to use VBS functions in SQL...

    Annother tip, (maybe) is to use this syntax #dd/mm/yyyy# (or whatever your
    dateformat may be) to force strict reading...

    (all this of the top of my head, been late last nite, clarity to be added as
    needed....)

    happy coding!


    --
    --------------------------------------------
    All is Haiku, even the chant of the wind


    "Kaushik Mandal" wrote:
    >
    > Hi
    >
    > I need some help with the ASP . I need to know how to make Grand total
    > based on Dates . I have the sub total for the dates and like to make
    > grand total for same dates . Please see the example below
    >
    >
    > Date Sub Total Grand Total
    >
    > 04/25/2005 $34
    >
    > 0425/2005 $89
    >
    > 04/25/2005 $78 --------
    >
    > 04/26/2005 $34
    >
    > 04/26/2005 $56
    > ------
    > 04/27/2005 $23
    >
    > 04/27/2005 $90
    > --------
    >
    > What I would like to know is that how to make Grand total by dates .
    > Grand totals for 04/25 ,04/26, 04/27 using ASP . I need to do it on the
    > ASP page .
    >
    > I am using MS SQL server 2000 as database
    >
    > Thanks
    >
    >
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    >
    Master Dev 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