Birthdate Calculations

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Birthdate Calculations

    How do I use SQL to get all records from an Access Database where the birthdate
    of an individual is within that week? I was trying a > Now()-1 and < Now()+7,
    but that only checks to see if they were born yesterday ;) and yet to be born?
    How do I narrow the search to only Month and Day?

    Thanks,
    Dustin


    LivingstoneTechie Guest

  2. Similar Questions and Discussions

    1. Calculations not working
      Hi All, getting frustrated. I've done forms with calculations (invoice sheets etc.) and they worked well in the past. I can't seem to get the...
    2. How to convert from BirthDate to Age
      Hi ! please help - I have tabel with a Birthday column in a access database and need to show the age in a datagrid....
    3. Calculations with date
      Hello all, I am looking for an advice or suggestion in this task: I do have a Perl script which contains 2 variables ($low, $high). The value...
    4. date calculations
      Nadya, In days? =DateDiff("d",,) or simply = - -- Fred Please reply only to this newsgroup.
    5. column calculations
      create a computed column to add year to the existing column See following example. CREATE TABLE dbo.t2 ( dt datetime NULL, next_yr AS...
  3. #2

    Default Re: Birthdate Calculations

    Use:

    Select Name, birthdate from employees where month(birthdate) = 4
    and Day(birthdate) >= 21 and Day(birthdate) <= 28

    It will return everyone born between April 21 and April 28

    OldCFer Guest

  4. #3

    Default Re: Birthdate Calculations

    Thanks Larry!!!

    Everything is working great!


    Dustin
    LivingstoneTechie 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