Getting birthdays in the next 30 days

Hello,
i have a database which is filled with information about all the people you know. One of the columns in the database is the birthday of this person.
Now i would like to know which persons gonna have their birthday in the next 30 days.
If it is possible I would get these persons with 1 SQL-Query but I think it is not that obvious.
Another way is to get all birthdays and process them with Java code which I know how to do this, but I think it will be more efficient with 1 SQL-Query.
But the problem with the SQL-Query is that you must not take the year into account, only the day and months.
Does anyone have an SQL-Query which can accomplish this?
Btw: I'm using an Apache Derby database.
Thx

I was planning to use the BETWEEN function, but the problem is that the day of birth is stored in the database, so for example this could be a date in the year 1980. This year should be converted to the current year and then compared with the system date (difference of 30 or with the between function).

Similar Messages

  • Can`t finish watching movie after I`ve paid for it the next day, get ~content require HDCP for playback~, but everything else works

    I`ve had a problem where I`ve purchased a movie via apple tv, watched half of the movie, then tried to watch he end the next day (before the thing expires), and i get a "...need HDCP for feedback", although everything else on the apple tv works fine (i.e previews of other movies, picks up comuters, netflix etc.

    Thank you for your help. Now my notebook (gt60-2oc) is perfect. I am the happiest person in the world .
    I followed these steps: topic=250946.0
    And the file I used is this :
    drive.google.com/file/d/0B5MQU_zcEPWTbTJjSkdlS01xc0k/view?usp=sharing
    Thanks again to all .

  • HT1766 I have manually back up my iphone few days back, and my contact got missing the next day. i restored my back up from iTunes, however, my contact did not get restored. How do i check if the manual back up did actually back up my contact or not?

    I have manually back up my iphone few days back, and my contact got missing the next day. i restored my back up from iTunes, however, my contact did not get restored. How do i check if the manual back up did actually back up my contact or not? How do i get back my old contact in my phone?

    Your entire second paragraph is so confusing I am going to ignore it.
    But I may be able to answer your first and third paragraphs, which seem to address the same question.
    I wonder where your iPhone states it was backed up yesterday.  I am going to assume that you see this under Settings > iCloud > Storage & Backup.
    If that is true, then the backup from yesterday is in iCloud.  The one and only way to restore an iCloud backup is to do this on your iPhone:
    Settings > General > Reset > Erase All Content and Settings
    That will cause your iPhone to begin a setup process.  As part of that process, assuming you enter the same Apple ID you used when you created the iCloud backup, you will be offered the opportunity to restore from it.

  • I set iCloud up last week and the next day when out in the field I could not get Outlook to open up.  I want to change my settings so I can get mail at home or in the field

    I set iCloud up last week and the next day when out in the field I could not get Outlook to open up.  I want to change my settings so I can get mail at home or in the field, not just when i'm at home.  I have a PC and fios internet with Verizon at home.  I have a Sprint air card in the field or access an available wifi.  I want to change my settings to allow for receiving email in the field.  What's the point of an air card and icloud for backup fi it doesn't work in the field for some odd reason?

    Apple - Support - Mail Setup Assistant

  • Once I purchase a new application from Apple store by using credit card, I used to get the billing information in my mail the next day. But now a days it is not happening why?

    Once I purchase a new application from Apple store by using credit card, I used to get the billing information in my mail the next day. But now a days it is not happening why?

    Probably volume of purchases on Apple Systems
    by the way this is a user to user forum  no-one from Apple here

  • My pictures taken on my touch were loaded onto my iPad using photo stream.  The next day they were gone and I can't get them back on my iPad .  They are still on my itouch .  Any suggestion?

    My pictures taken on my itouch were synced to my iPad using photo stream.  The next day they weren't on my iPad but were still on my itouch.  How do I get them back on my iPad?

    Use 3rd party software like:
    http://www.digidna.net/products/diskaid
    http://www.wideanglesoftware.com/touchcopy/index.php
    For items purchased (including apps) from iTunes:
    http://support.apple.com/kb/HT1848

  • How do I get calendar to forward birthdays to the next year?

    How do I get calendar to forward birthdays to the next year without having to type them all in again?

    Either set a repeating date on the event (repeat every 1 year) or set the birthday field in your contacts on iOS & OS X, then enable the birthday calendar in the  settings. I have no idea how to do this on Windows, so you will need to provide more info about what you are using if you are really on Windows.
    We'll get this moved somewhere more appropriate if you say what device & OS you are using.

  • When I open a tab the next day I still get the previous day's version??

    I never get the current day's version of the tab I open the next day.
    == This happened ==
    Every time Firefox opened
    == I began using windows 7 and current version of Firefox.

    A reboot of the computer shouldn't be necessary.
    It sounds that Firefox didn't get closed properly and was still running if a reboot was necessary.
    It is usually best to use "Firefox > Exit" (Windows: Firefox/File > Exit; Mac: Firefox > Quit Firefox; Linux: Firefox/File > Quit) to close Firefox if you are currently doing that by clicking the close X on the Firefox title bar.

  • HT4993 Can I buy 4 iphone 5s from 10pm-4am and get them the next day? or am I limited to a certain number?

    Can I buy 4 iphone 5s from 10pm-4am and get them the next day?

    he knows his ID , if he did all whats in the link he can get his password back ?
    how can i make him call applecare ? is there a way to speak to them from jordan ??
    i have been trying to reach any1 in apple so they can communicate and help my friend (us) to make him remember it .
    am not asking for the password or trying to get into the phone without using it , and i can take my money back though i need to help my friend as well since now he cant use it as well.
    thanks kil

  • I rented a movie and moved it to my ipad.  My ipad was stolen the next day before I ever watched the movie.  Is there a way to get the rented movie back to my computer so I can watch it?

    I rented a movie and moved it to my ipad.  My ipad was stolen the next day before I ever watched the movie.  Is there a way to get the rented movie back to my computer so I can watch it?

    I guess it never hurts to ask.
    tt2

  • My Mozilla toolbar was messed up and I managed to get it back how I like it and shut it down. When I used my PC the next day ALL my years of bookmarks are gone!

    I accidentally messed up how my Mozilla toolbar looks. After hours of searching on how to put it back I did what the help tab said.
    I continued to use my PC the rest of the day with no issues, especially my bookmarks. I turned the PC off for the night and when I turned it on the next day ALL of my years of bookmarks were gone. I have zero PC savvy and my PC terminology is limited. I literally had years of bookmarks in my folders some I cannot remember where I found them. Can I retrieve them at all? If so, how using basic English and pictures?

    Make sure that toolbars like the "Bookmarks Toolbar" are visible.
    *"3-bar" Firefox menu button > Customize > Show/Hide Toolbars
    *View > Toolbars<br>Tap the Alt key or press F10 to show the Menu Bar
    *Right-click empty toolbar area
    *check that "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    *if "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the Customize palette into the Customize window to the Bookmarks Toolbar
    *if missing items are in the Customize palette then drag them back from the Customize window on the toolbar
    *if you do not see an item on a toolbar and in the Customize palette then click the Restore Defaults button to restore the default toolbar setup
    *https://support.mozilla.org/kb/customize-firefox-controls-buttons-and-toolbars
    You can check for problems with the <b>places.sqlite</b> database file in the Firefox profile folder.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
    *Places Maintenance: https://addons.mozilla.org/firefox/addon/places-maintenance/

  • TS3623 Ordered a movie to rent. Was watching it then it stopped and had the timer going. Turned it off, tried to watch the next day and could not get it to play. Even after going into settings and going into iTunes Store and then rentals like it said. No

    Ordered a movie to rent. Was watching it then it stopped and had the timer thing going on forever. Stopped watching it and went to bed. Tried to watch it again the next day.It Said for us to go to settings, then iTunes Store, then ck for rentals.  Still, the timer kept working and could not continue to watch our silly movie. This has happened to us many times. VERYYYYYYYYYYYYY annoying. I am beginning to HATE Apple TV. Please advise!

    If it's stopping during the movie that could be network related. As for locating the rental, try logging out of your account and signing back in again.

  • Since latest ios update, my iphone 6 loses my ringtones. I download new and that's gone the next day too

    Since latest ios update, my iphone 6 loses my ringtones. I download new and that's gone the next day too. How can I get my phone to keep my ringtones?

    Most USB port do not supply enough current to charge the iPad.

  • Itunes match deletes random songs from my iphone, even if i re download them from the cloud, the next day another 3 or 4 are deleted by itself, anyone know a fix?

    anybody know how i can fix this, i already tried to turn off itunes match off and on again on the iphone but it does not seem to work, also artwork once downloaded into the iphone it does not stay there, the next day its just a blank artwork and after the internet circles in the top left of the iphone stop spinning, i go back to my music library and then back to the song and it downloads it, but it does not stay there forever, any fix?
    it would be kindly appreciated since this is a very annoying bug, specially the songs that just get erased from my iphone for no reason.

    Hi Kevinpnb,
    Welcome to the Support Communities!
    Sorry to hear of your frustration with Music Match on your iPhone.  You should be able to delete the music from your iPhone by following the steps in this article:
    iTunes Match on iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT5637
    Deleting songs downloaded to your device
    You can delete a song or album from your iPhone, iPad, or iPod touch at any time. Don't worry; it'll still be in the cloud.
    Tap the Music app.
    Tap More > Songs at the bottom.
    Scroll or search for the song you would like to delete from your device.
    Swipe right to left on the song, and then tap Delete.
    Note: You must be in Artists, Songs, or Albums view to delete songs from your device. Deleting from a playlist won't remove a song from your iOS device.
    Also, this information can be found on page 64 of the iPhone User Guide for iOS 7
    http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf
    Remove a song from iPhone. Tap Songs, swipe the song, then tap Delete. The song is deleted from iPhone, but not from your iTunes library on your Mac or PC, or from iCloud.
    If you have iOS 7, this will delete the song from local storage, but the song will still appear with a cloud symbol in the Music app, as you've noticed. To hide the iTunes in the Cloud purchases, navigate to Settings > iTunes & App Store, and disable "Show All: Music”
    There may be a few orphaned songs on your iPhone that were partially downloaded or corrupted in some way. If that is the case, you can erase all of the music from your phone.  Follow the instructions below and select the Music app under Usage:
    iPhone, iPad, and iPod: Understanding capacity
    http://support.apple.com/kb/ht1867
    If the issue still persists, try backing up your iPhone to iCloud, and then restore it:
    iCloud: Restore your iOS device from iCloud
    https://support.apple.com/kb/ph12521
    I hope this information helps ....
    - Judy

  • Why in iOS 6 (Calendar) it opens at the next day instead of today?

    Why in iOS 6 (Calendar) it opens at the next day instead of today?

    Nope... some of these are birthday all-day events created three years ago, or more. When I edit the events there is no time zone listed, but here is what I do notice:
    When I view the "repeat" information for one of the problem events in iOS, it says "Custom." When I select that I see that it says "Yearly" instead of "Every Year." The events that do not have a problem are set to repeat "Every Year"
    The two I just compared were created in 2008 (the one that works) and 2011 (the one that doesn't). I am guessing that I created one of these events using my iPhone, and the other using Google Calendar via a Web browser. I will try to create some test events using both devices to see if there is any difference.

Maybe you are looking for

  • How to implement Modbus Ethernet communicat​ion in Lookout, if we want to simulate the PC as PLC ?

    Problem Description : Dear Sir, We are doing a project where we are using Lookout with Front end Modicon PLC. The communication is by Ethernet, using Modbus. Since the installation is at a distant place, we wanted to use another PC (running Lookout)

  • How can I list an album under multiple artists?

    Take, for example, the album Undercurrent by Bill Evans and Jim Hall. I have it listed as Bill Evans & Jim Hall, with the album artist as Bill Evans, so that, for sorting purposes, it appears with the rest of my Bill Evans collection. However, it is

  • Dbms_pipe error

    hi all, we are using dbms_pipe with our application and sudenly we are gettinmg the below error. Sun Feb 05 08:25:13 2012 trnsfr_get_list: ORA-20001: Send Timeout on pipe ORA$PIPE$00E2CB3E0001Any Comments please.. Edited by: user8792751 on 05-Feb-201

  • Release strategy PR: strategy is not  working correctly higher values

    Hi All, Release strategy for Purchase requisition is set for account assignment, Value in INR, Plant and US value(as it is used in class in other poles) as characteristics. Assigned to Class, maintained Release group and created release codes. Create

  • Moto X says that I sms messages couldn't be sent

    and to click the notification to see which ones but I don't have any sms messages. I don't know how to fix it and it's become irritating. I've looked in all menu settings and can't seem to be able to fix it.