Find the same day in a range then find the difference between the days

Need assistnace with the following .
I have a table of ids for courses and each course class is on a day. I have to take the first day the course class is on and find the next same day then work out the difference in days.
eg. a course class is on a saturday then have to go thru the course class associated to a course and find the next saturday then work out the difference.
Anyone able to help - it would be much appreciated

course class id date day
abcdefa 18/12/2002 wednesday
abcdefb 19/12/2002 thursday
abcdefc 20/12/2002 friday
zxvyza 17/12/2002 monday
zxvyzb 20/12/2002 thursday
zxvyzc 21/12/2002 friday
zxvyzd 24/12/2002 monday
zxvyze 26/12/2002 wednesday
lmnopa 11/11/2002 tuesday
lmnopb 12/11/2002 wednesday
lmnopc 14/11/2002 friday
lmnopd 19/11/2002 wednesday
lmnope 21/11/2002 friday
where abcdefa, abcdefbc, abcdefc are for course id abcdef
and the other set of course class ids are for course id zxvyz.
and 3rd set relates to course id lmnop.
expectation:
the difference between days for the first set of data to be 0
the difference between days for 2nd set to be 7 days (ie. take the first day for the course class and see if can find another that is the same and then work out the difference i.e monday) then return the difference then go to next course class id.
the diff between 3rd set is calc the diff between Wednesdays, ignore the last friday and find the next course class id. the answer here will be 7 days.
I have worked out the days from the dates (although the above is only an example)but wasnt sure how to pick the same days then work out the difference and then move to the next course class id. Some course classes wont have another same day.

Similar Messages

  • Difference between the Internet & Intranet

    `Difference between the Internet & Intranet

    mnvamsi wrote:
    `Difference between the Internet & Intranet[http://www.letmegooglethatforyou.com/?q=Difference+between+the+Internet+%26+Intranet]
    ~

  • Difference between the balance in FBL3N and FS10n

    Hi Sapians,
          There is a difference between the balance in FBL3N and FS10n. There are no recent changes made in the GL master data. Also there is a difference between the debit and credit balances of FS10N and table GLT0.
    Please advice.
    Ashwin

    Go through following notes:
    FI-GL-GL-D     970096     FS10N: Drilldown -> differences with active new G/L     
    FI-GL-GL-D     1609283     FS10N: Drill-Down leads to differences with active splitting     
    FI-GL-GL-D     1021174     FS10N: Drilldown -> differences despite Note 970096     
    FI-AR-AR-D     327139     Balance display FI: drilldown perfrmnce for balncs     
    FI-AR-AR-D     716640     Balance display: Drilldown: Total of open items <> balance

  • I have downloaded 2 rented movies. I can find then in my downloads but can not find then in iTunes. I read the others that have had the same problem an I can't find the rented in iTunes

    I have downloaded 2 rented movies. I can find then in my downloads but can not find then in iTunes. I read the others that have had the same problem an I can't find the rented in iTunes

    Hey rangermikegsm,
    Welcome to Apple Support Communities.
    It sounds like you’re concerned because you don’t see your rentals in iTunes, but they appear to have downloaded. Take a look at the article below and check the Rentals tab in iTunes on your MacBook.
    About renting movies from the iTunes Store - Apple Support
    Find movies you rented previously
    Find your movie on the device you used to rent it.
    On a Mac or PC: Go to the Rentals tab in the Movies section of the iTunes Library.
    On an iOS device: Go to the Rental tab of the Videos app.
    Using Apple TV (2nd or 3rd generation): Look in the top shelf of the main menu.
    Ciao,
    -Jason

  • TS1424 i bought a book and itunes charged me three times for the same book, how do i submit a claim to get the money back and where do i find then form

    i bought a book and itunes charged me three times for the same book, how do i submit a claim to get the money back and where do i find then form

    Welcome to the Apple community.
    Select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History.

  • I have two iphones using the same computer and I can only find a backup for my iphone and not my girlfriends.  She uses itunes a lot more often then I do but cant find it

    I have two iphones using the same computer and I can only find a backup for my iphone and not my girlfriends.  She uses itunes a lot more often then I do but cant find it.  Really need some help.  Shouldnt her apps and details be saved online in the itunes store?  Even her apps wont appear

    If you create an Apple ID for your daughter, signing out of the existing Apple ID with the iTunes & App Store on her iPhone will not change anything on your iPhone.
    All apps include DRM protection which is tied to the Apple ID that was used to download the apps.
    If she starts using her Apple ID to download apps, when there is an app update for an app on her iPhone that was downloaded with the current shared Apple ID, she will need to use that Apple ID and password to download the app updates.

  • I have activated iCloud on iPad2 and iPhone4S (both on iOS 7) using the same Apple ID and signed into 'Find my iPhone' still my iphone is not visible in my devices. I can only see my iPad.

    I have activated iCloud on iPad2 and iPhone4S (both on iOS 7) using the same Apple ID and signed into 'Find my iPhone' still my iphone is not visible in my devices. I can only see my iPad.

    On your iPhone, try toggling Find My iPhone off, then back on after a few seconds.

  • My ipad2 is asking old id password, when i go to forget password link for that id then I am not getting any mail to reset the same. Please help how can i remove or change the old id.

    my ipad2 is asking old id password, when i go to forget password link for that id then I am not getting any mail to reset the same. Please help how can i remove or change the old id.

    You cannot remove or change the old ID. This is Find My iPhone Activation Lock. You need to recover the credentials for the Apple ID originally used to activate the iPad.
    Check your spam and junk folders.

  • Every now and then when I log in to hotmail the program will open, all my e-mails are there but I can't open any of them. At the same time everything opens just fine on Chrome. Eventually the problem on Mozilla fixes itself. Suggestions?

    Occasionally hotmail will open just fine but I cannot access any of my listed e-mails or files. At the same time everything works just fine in Chrome. Eventually the problem on Mozilla sorts itself out somehow and I can then open e-mail through that browser again. I don't make any changes on my system to correct the problem.

    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4.0+ SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    '''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
    ''When you figure out what is causing that, please let us know. It might help other user's who have that problem.''

  • Apple TV 2G (Airplay and Homesharing) can only stream from devices on the same wireless access point range??

    connection:
    40 Mbps Fiber Broadband connection using:
    Devices:
    1. Main Modem/router (AP1): Huawei HG8245 (provided by ISP) - Wireless enabled.
    2. Remote Access point (AP2): Linksys/Cisco E3200 Wireless gigabyte router flashed with DD-WRT v24-sp2 (06/14/11) mini (Cascaded -wired- LAN to LAN from main modem).
    3. Wireless Repeater to cover a dead spot  (AP3): Linksys/Cisco E1000 wireless repeater.
    4. Apple Tv (AT2G) with home sharing/airplay enabled.
    5.( Ipad) with home sharing on itunes enabled.
    6. Win7 (PC) using iTunes with Home sharing enabled.
    all devices are updated to their latest firmware.
    In order to cover a large 3 story house with Wifi. I had (AP1) is located on the first floor, while (AP2) is located in the basement floor directly wired by LAN to LAN with (AP1). (AP3) is located on the Ground floor away from the living room to repeat wireless network into the back yard. While (AT2G) is located in the living room on the ground floor right in the middle of both (AP1) + (AP2) while connected via Wifi.
    Network SSID, security, passphrase and wireless settings of (AP2) are identical to (AP1) to create a single big LAN/WLAN roaming network where all devices connected to both wireless access points can find/share the others. As understood, it's refered to as bridging.
    I have noticed that my iphone/ipad does not show the airplay button anywhere within the wireless network. it seems that the apple TV randomly choses to connect to the AP with stronger signal, or switch to the other in case of a reboot to one of them.
    to elaborate further, if i was sitting in the living room (groundfloor), trying to airplay some you tube contents via Wifi to my Apple TV, i may not find the airplay button available all the time, i found out the reason is while i'm wirelessly connected to AP1, the Apple TV was connected to AP2 and both deviced cannot detect each others to enable my purpose. that goes the same for Home Sharing. only if my Ipad/PC and Apple Tv are on the same wireless AP. they would detect each others immediately.
    although, the second AP (AP2) is suppose to extend my wireless network of the same subnet in which any device connected can be found.
    After all sorts of trial and error tweaking my router/access point, I thought the problem would be due to the Linksys 3200 capability of bridging WLAN and lacks few protocols that enables my purpose. i have flashed the firmware to a DD-WRT, but again, problem was not solved.
    I have not tried having my Apple Tv wired to either router/AP, but i assume it may work well if i do so. i still need to solve this wireless connection issue though.
    Am i the only one with this problem, would there be something wrong with my setup? 
    Your feedback is highly appreciated.

    You may or may not already have your network set up correctly, it's just that I can't tell from what you have said.
    I have a main router provided by my ISP, I have several other Airport Extremes and Airport expresses connected by Ethernet, all set up to bridge the network created by the main router.
    Each maker has their own settings, but bridging should be reasonably obvious. In simple terms my main router distributes IP addresses to all devices, the Airports bridge that network by passing these addresses to the devices from the main router. A base station that isn't in bridging mode will distribute its own addresses to the devices connected to it.
    I don't really follow your next point.
    instruction for configuration vary from manufacturer to manufacturer, the best course of action here is to refer to the manual. If everything is set up properly the addresses of everything on your network will have identical sets of numbers for the first 3 of 4 groups of numbers that make up an address, the last set must always be different. I think the part you are referring to with your DD-WRT is the option to have Ethernet and wifi bridged or not.
    Some routers may be easier to configure than others, but generally speaking they should all work with the Apple TV. 5Ghz is less likely to suffer interference but it is much more likely to be blocked by solid objects, it may or may not be an advantage.

  • How can you find out if another VI running on the same computer and how can you find out the name of that VI?

    Suppose that several VIs running simultaneously on the same computer. How can I find out the names of the running VIs, from another VI?
    If the already running VIs are clones of the same basic VI, open and run with the option "Prepare to call and forget", how can I find out the names and index of each clone? 

    I had an application where I spawned (= ran with Start Asynchronous Call) multiple (reentrant) copies of VIs, and would occasionally "lose control" of them.  I needed a way to find all VIs that were running "Top Level" and stop them (so I didn't have to log off from Windows).
    I used the Application Property "All VIs in Memory" to get an array of (wait for it ...) All VIs in Memory.  I took each name, opened a VI reference to it (simply wire the name string in, as the VI is, by definition, "in memory"), looked at its VI Execution State, and if it was Run Top Level, Invoked the FP.Close and Abort VI Methods.  [To prevent the VI that did all this from "committing Suicide", I compared the name string with the current Call Chain, and did nothing if there was a match].
    I think you could adopt this idea to do what you need.
    BS

  • HT1222 I just wish we had a "backwards" half circle to hit when we need to go back one page.  Does anyone else feel the same way?  How did I find this page anyway?

    I just wish we had a "backwards" half circle to hit when we need to go back one page.  Does anyone else feel the same way?  How did I find this page anyway?

    how about you just swipe from left to right.  works for me.

  • I cleared the internet browsing history a few days ago. Since then, no history from these few days has been saved in there. How can i get it to save again?

    I cleared the internet browsing history a few days ago. Since then, no history from these few days has been saved in there. How can i get it to save again?

    I have solved the problem. I accidentally have set it to private browsing.

  • I am trying to install current version of QuickTime.  I get the message that it cannot find QuickTime.msi on my computer.    Then I get a message "The older version of QuickTime cannot be removed. Contact your technical support group."

    I am trying to install current version of QuickTime.  I get the message that it cannot find QuickTime.msi on my computer.
    Then I get a message "The older version of QuickTime cannot be removed. Contact your technical support group.
    I am simply trying to view video files recorded on my iPhone and transferred to my computer.

    See if anything in this post might help...
    https://discussions.apple.com/message/22905774#22905774

  • The below vi is not giving me what I want. If I select 2 with maximum number of 3 then there are 3 array elements display that is correct but if I select 8 with the same maximum number of 3 then only 1 array element display. Why is that?

    The below vi is not giving me what I want. If I select 2 with maximum number of 3 then there are 3 array elements display that is correct but if I select 8 with the same maximum number of 3 then only 1 array element display. Why is that?
    Attachments:
    test2.vi ‏29 KB

    It's because in case 2 you hold the array build result from the previous loop iteration in a shift register...in case 8 you do not...
    You say that if you set the maximum number to three it will produce an array with three elements, that is not correct, it will run when the iteration index is 0,1,2 and 3...resulting in 4 elements. If you want 3 you need to decrement the maximum number to 2. The same goes for case 8.
    MTO

Maybe you are looking for