Re: [SQLDownUnder] DATE QUERY


    [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
    • From: Susan
    • Subject: Re: [SQLDownUnder] DATE QUERY
    • Date: Wed, 20 Dec 2006 15:10:05 -0800

    ok understand now.
     
    thanks again

    matthew_wills@xxxxxxxxxx wrote:
    Susan,

    >> btw- if we don't convert the date to dd//mm/yyyy now when I can convert
    it becuase the user just want to use dd/mm/yyyy

    The date will be shown based on the user settings of the PC that is
    generating the report. If their PC has locale of dd/mm/yyyy then that is
    how it will display.

    Seeya
    Matthew Wills | Senior Analyst Programmer | Adviser Tools and Services|
    Financial Planning and Third Party | NAB Technology | Wealth Management
    Australia





    |---------+---------------------------->
    | | Susan |
    | | | | com> |
    | | |
    | | |
    |---------+---------------------------->
    >--------------------------------------------------------------------------------------------------------------|
    | |
    | To: SQLDownUnder@xxxxxxxxxxxxxxxxxxxxxx |
    | cc: (bcc: Matthew Wills/AU1/WealthMgmt) |
    | Subject: Re: [SQLDownUnder] DATE QUERY |
    >--------------------------------------------------------------------------------------------------------------|




    yeap.

    btw- if we don't convert the date to dd//mm/yyyy now when I can convert it
    becuase the user just want to use dd/mm/yyyy

    I am using reporting service to display the report.
    first I thought I can use 'date picker' in but I can't...it always gives me
    an error

    Rob Farley wrote:
    So you're looking for overlapping date ranges? Ie, when the two starts
    are before the two ends? (d1.start <= d2.end and d2.start <= d2.end)

    Or am I misunderstanding your question?

    PS: Please just keep them as dates, don't convert them to strings to
    do the comparison.

    Rob


    On 20/12/06, Susan wrote:
    > Hello everyone,
    >
    > I have a task to create a report so when the user fills date funding
    from
    > and funding to, all data between the date will be appeared. It is much
    > simpler if in the table there is only 1 field call ' funding' so I can
    use '
    > between' function
    > however this is a bit tricky because in the table it has 2 fields call -
    > funding from and funding to both of them are datetime.
    >
    > If I use the query below, the result doesn't really what we want.
    >
    > (FundCovFrom1 between CONVERT(varchar,@FDateFr1,103)AND
    > CONVERT(varchar,@FDateFr2,103))
    > AND
    > (FundCovTo1 between CONVERT(varchar,@FDateTo1,103)AND
    > CONVERT(varchar,@FDateTo2,103))
    >
    > we want to have a result as: when we enter FundFr=18/09/2006 and
    > FundTo=18/03/2007
    >
    > ClientNo FundFr FundTo
    > 70878 18/09/2006 18/03/2007
    > 78945 18/09/2006 18/03/2007
    > 74531 18/09/2006 18/03/2007
    >
    > any idea how do I do it?
    >
    >
    > lastly----------- I wish you all
    >
    > MERRY CHRISTMAS AND HAPPY NEW YEAR
    >
    > thanks,
    > Susan
    >






    ______________________________________________________________________
    This email has been scanned by the MessageLabs Email Security System.
    For more information please visit http://www.messagelabs.com/email
    ______________________________________________________________________


    to unsubscribe to this list, please send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by http://www.readify.net


    This e-mail is sent by or on behalf of the named sender identified above.
    If:

    (a) you do not wish to receive any e-mail marketing material from this
    person in the future, please forward the contents of this email to
    unsubscribe@xxxxxxxxxx with the word "unsubscribe" in the
    subject box.

    (b) you wish to unsubscribe from all central e-mail marketing lists
    used by our business, please forward the contents of this e-mail to
    unsubscribeall@xxxxxxxxxx with the message "unsubscribe
    from all central e-mail marketing lists" in the subject box.

    If you do not forward the contents of this e-mail with your
    unsubscription then it may not be able to be implemented.

    The information contained in this e-mail communication may be
    confidential. You should only read, disclose, re-transmit, copy,
    distribute, act in reliance on or commercialise the information if you
    are authorised to do so. If you are not the intended recipient of this
    e-mail communication, please immediately notify us by e-mail to
    postmaster@xxxxxxxxxx, or reply by e-mail direct to the sender and then
    destroy any electronic and paper copy of this message. Any views
    expressed in this e-mail communication are those of the individual
    sender, except where the sender specifically states them to be the views
    of a member of the National Australia Bank Group of companies. Any
    advice contained in this e-mail has been prepared without taking into
    account your objectives, financial situation or needs. Before acting on
    any advice in this e-mail, National Australia Bank Limited recommends
    that you consider whether it is appropriate for your circumstances. If
    this e-mail contains reference to any financial products, the National
    recommends you consider the Product Disclosure Statement (PDS) or other
    disclosure document before making any decisions regarding any products.
    The National Australia Bank Group of companies does not represent,
    warrant or guarantee that the integrity of this communication has been
    maintained nor that the communication is free of errors, virus or
    interference.

    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com to unsubscribe to this list, please send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by http://www.readify.net



    (Click here for more information on the sqldownunder mailling list)