How do I go about this? Creating table while looping through dates?

How do I do this? Creating table while looping through dates?
I have a table with information like:
ID---Date---Status
1-------04/23-----Open
1-------04/25-----Open
2-------04/24-----Closed
3-------04/26-----Closed
What I want to do is create another table based on this per ID, but have all the dates/statuses on the same line as that ID number (as additional columns). The problem is that the number of columns needed is to be dynamically decided by the number of dates.
To illustrate my example, I'm looking to achieve the following:
ID---04/23 Status---04/24--Status---04/25--Status---04/26--Status
1----Open--------------<null>-------------Open---------------<null>
2----<null>------------Closed-------------<null>-------------<null>
3----<null>------------<null>-------------<null>-------------Closed
What would be the best way to go about this?
Can someone please point me in the right direction?
Would I need to do some looping?
Thanks in advance!

thedunnyman wrote:
How do I do this? Creating table while looping through dates?
I have a table with information like:
ID---Date---Status
1-------04/23-----Open
1-------04/25-----Open
2-------04/24-----Closed
3-------04/26-----Closed
What I want to do is create another table based on this per ID, but have all the dates/statuses on the same line as that ID number (as additional columns). The problem is that the number of columns needed is to be dynamically decided by the number of dates.
To illustrate my example, I'm looking to achieve the following:
ID---04/23 Status---04/24--Status---04/25--Status---04/26--Status
1----Open--------------<null>-------------Open---------------<null>
2----<null>------------Closed-------------<null>-------------<null>
3----<null>------------<null>-------------<null>-------------Closed
What would be the best way to go about this?
Can someone please point me in the right direction?
Would I need to do some looping?
Thanks in advance!I hope you are asking about writing a query to DISPLAY the data that way ... not to actually create such a massively denormalized table ....

Similar Messages

  • I'd like to wipe out my current LR of all photos and re upload new files.  How do I go about this?

    I'd like to wipe out my current LR of all photos and re upload new files.  How do I go about this?

    Option 1. Create a new catalog.
    Option 2. Select all images, hit the delete key and choose Remove. Then select Import.

  • I have moved from the UK to Canada and would like to pay for subscriptions in Canadian dollars rather than sterling pounds. Also I would like to take up the offer that I have purchase CS packages in my account. How do I go about this?

    I have moved from the UK to Canada and would like to pay for subscriptions in Canadian dollars rather than sterling pounds. Also I would like to take up Creative Cloud subscription offer because I qualified as a prior purchaser of CS packages.
    How do I go about this?

    I did that - nothing happen... I have changed my adobe ID and all address to my Canada home.
    Having log myself out and re-log back in to start the Creative Cloud subscription. The payment still shows in Sterling Pounds.
    This is difficult as I am no longer earning Sterling pounds as a wage and the subscription would automatically be doubled payment, because Canadian $ is less in currency exchange to the UK Sterling Pound.
    Thanks for your above suggestions, but what should I do now, to resolved this issue.
    Regards
    Robert

  • Can anyone offer some advice i am looking to upgrade the OS system on one of my macbook pro's, currently running os10.4.11, I would like to upgrade to OS10.5? how would I go about this, and is there a cost, for what is an old operating system now?

    Can anyone offer some advice i am looking to upgrade the OS system on one of my macbook pro's, currently running os10.4.11, I would like to upgrade to OS10.5? how would I go about this, and is there a cost, for what is an old operating system now?

    Since your Mac probably came with 10.4, there is no longer a way to get 10.5 Leopard install media. IF it has the requirements, you may be able to upgrade to 10.6 Snow Leopard by buying the boxed install media at the Apple Store for $30.
    System requirements are found here: http://support.apple.com/kb/SP575
    General support can be found here: http://www.apple.com/support/snowleopard/

  • I purchased installed Photoshop Elements on a Macbook last year via the disk. I want to install it on a newer Macbook which has no disk drive. How do I go about this?

    I purchased installed Photoshop Elements on a Macbook last year via the disk. I want to install it on a newer Macbook which has no disk drive. How do I go about this?

    Download and install and activate with the serial number from your original installation.
    PSE 12 Trial - http://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_elements
    PSE 10, 11 - http://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-10-11-downloads.html

  • After installing some updates on final cut pro 7 is asking me to enter my first and last names plus serial number which i dont have. how do i go about this?

    After intalling some updates for Final cut, I m asked to put my first and last names and serial number which unfortunatelt i do not have. how do i go about this?

    To add to what BenB advised, make sure you have proof of purchase when you call Apple for a replacement serial number.
    For future reference, it is a good idea to keep all software serial numbers in a database or text document.  Considering the cost of the software, keeping a list of serial numbers can come in very handy at times like this.
    -DH

  • HT201355 His there I want to change my iTunes password because I forgot it how do I go about this?? HELP!!

    His there I want to change my iTunes password because I forgot it how do I go about this?? HELP!!

    Reset your Apple ID password
    https://support.apple.com/en-us/HT201487

  • I have read that new purchases of macbook pro will get free upgrade to LION OS. When and how do I go about this?

    I have read that new purchases of macbook pro will get free upgrade to LION OS. When and how do I go about this?

    http://www.apple.com/pr/library/2011/06/06lion.html
    The Mac OS X Lion Up-To-Date upgrade is available at no additional charge via the Mac App Store to all customers who purchased a qualifying new Mac system from Apple or an Apple Authorized Reseller on or after June 6, 2011. Users must request their Up-To-Date upgrade within 30 days of purchase of their Mac computer. Customers who purchase a qualifying Mac between June 6, 2011 and the date when Lion is available in the Mac App Store will have 30 days from Lion’s official release date to make a request.
    Currently that's the only information available. I suspect more will be posted as we get closer to launch.

  • I need to update my operating system so i can get the latest version of Flash player - 11. This is so I can continue to watch 4 OD. How do I go about this?

    I need to update my operating system to install Flash player version 11 so I can continue to use the 4 od player. How do I go about this? The version of OSX required is 10.6. Can anyone help?

    Make sure your Mac meets the System Requirements for Snow Leopard...
    Snow Leopard Specs:
    http://support.apple.com/kb/SP575
    Mac OS X 10.6 Snow Leopard

  • I bought two in -app purchases for 9.99$ each. they never showed up on the game, i emailed GREE, inc and they said to get a refund how do i go about this? i have the emails for proof.

    I bought two in -app purchases for 9.99$ each. they never showed up on the game, i emailed GREE, inc and they said to get a refund how do i go about this? i have the emails for proof.

    Contact iTunes Store support staff through the report a problem links in your account history or,
    iTunes Customer Service Contact - http://www.apple.com/support/itunes/contact.html > Get iTunes support via Express Lane > iTunes > iTunes Store

  • Hi all. i have adobe PS cc and i want to upgrade to PS and lightroom. How do i go about this without haveing to pay for both and paying the one combined price? thanks

    hi all. i have adobe PS cc and i want to upgrade to PS and lightroom. How do i go about this without haveing to pay for both and paying the one combined price? thanks

    You should talk to Adobe Support thru chat or by phone when they are available (Not usually on weekends) as they might be able to help arrange the change without any cancellation penalties.
    Phone/Chat support - For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    Make sure you are logged in to the Adobe site, have cookies enabled, clear your cookie cache.  If it fails to connect try using a different browser.
    Creative Cloud support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html ( http://adobe.ly/19llvMN )
    Otherwise what you would normally do is first consult the following page to see what you can do on your own
    Manage your membership and payments | Creative Cloud
    https://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting -creative-cloud.html
    and then if necessary cancel the current plan (penalties being possible) and subscribe to the new one.
    Cancel your membership or subscription | Creative Cloud
    https://helpx.adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html

  • I want to bulk purchase single tracks, how do i go about this without buying and paying each time

    I want to bulk purchase single tracks for my ipod, how do i go about this without buying and paying each time, can i not amass a number of tracks and then go to checkout. It seems to want to charge me each time. Help!

    Put them in your wishlist

  • I wish to cancel my subscription to dreamweaver. how do I go about this ?

    I wish t cancel my subscription to dreamweaver. How do I go about this ?

    [email protected] wrote:
    Hi
    When I try to do as you requested by clicking cancel plan..it tells me i must contact customer support to cancel plan.
    Could you please cancel this plan for me ?
    This is a user to user forum. Like the vast majority of the posters here, I'm not an Adobe employee, just a software user like you. If the process requires contacting customer support, you'll need to do that.

  • I can't seem to install some apps that i downloaded for my iPad from my Mac. i have tried syncing them but they still don't appear on the pad. how do i go about this?

    i can't seem to install some apps that i downloaded for my iPad from my Mac. i have tried syncing them but they still don't appear on the pad. how do i go about this?

    These are iPad apps correct?
    Do you have restrictions set on the iPad? Settings>General>Restrictions>Installing apps>Off or Settings>General>Restrictions>Allowed Content?
    Are you sure that the Apps are selected to sync from the Mac to the iPad?
    Connect the iPad to the Mac and launch iTunes.
    Click on the iPad name on the left side under devices.
    Click on the Apps Tab on the right.
    Click on Install next to the apps that you want to sync.
    Click on the Sync Apps Heading to select it
    Click on Apply in the lower right corner of iTunes
    If you do not see the sidebar in iTunes 11 - go to View>Show Sidebar from the iTunes menu.

  • How to undo "Forget about this site" to restor my history???

    how to undo "Forget about this site" to restor my history
    i use this item in right click in history window
    what do i do?

    Using "Forget About This Site" will remove everything from that domain like bookmarks, cookies, passwords, cache, history, and exceptions, so be cautious if you need to keep passwords or other data from that site and you can't recover from that unless you have a backup of the affected files.
    It doesn't have any lasting effect, so if you revisit such a 'forgotten' website then data from that website will be saved once again.

Maybe you are looking for