Actuarial Outpost
 
Go Back   Actuarial Outpost > Cyberchat > Non-Actuarial Topics
FlashChat Actuarial Discussion Preliminary Exams CAS/SOA Exams Cyberchat Around the World Suggestions

DW Simpson Global Actuarial Recruitment

Reply
 
Thread Tools Display Modes
  #1  
Old 01-29-2002, 11:24 AM
Roy Hinkley Roy Hinkley is offline
 
Join Date: Oct 2001
Posts: 11
Default

I also posted this under General Actuarial, but I'm afraid not everyone reads those threads!

I have an Access table in which I’d like to do a little transposing of data. For example, assume I have the following fields: Region, Branch, 1999IBNR, 2000IBNR, 2001IBNR; I’d like to map that to a table with the fields Region, Branch, Year, IBNR. Is there a way to do this? Any help would be appreciated.
Reply With Quote
  #2  
Old 01-29-2002, 11:39 AM
Toll Free Toll Free is offline
Member
 
Join Date: Nov 2001
Posts: 57
Default

Here's how I'd do it:

Step 1: Run a "make table" query mapping "Region" to new field "Region", "Branch" to new field "Branch", "1999" to new field "Year", and "1999IBNR" to new field "IBNR"
Step 2: Run an append query on the table from Step 1, mapping "2000" to "Year" and "2000IBNR" to "IBNR"
Step 3: Same as Step 2, for 2001

It's not pretty, but it will work. Hopefully, you weren't simplifying for 15 years and 8 fields.
Reply With Quote
  #3  
Old 01-29-2002, 11:58 AM
Wag, the Dog Wag, the Dog is offline
Member
SOA
 
Join Date: Jan 2002
Location: Rust belt
College: Purdue
Posts: 692
Default

Quote:
On 2002-01-29 11:24, Roy Hinkley wrote:
I also posted this under General Actuarial, but I'm afraid not everyone reads those threads!

I have an Access table in which I’d like to do a little transposing of data. For example, assume I have the following fields: Region, Branch, 1999IBNR, 2000IBNR, 2001IBNR; I’d like to map that to a table with the fields Region, Branch, Year, IBNR. Is there a way to do this? Any help would be appreciated.
Do you see the forum section entitled:

Software - Technology

?

A moderator set it up just for you. It would be rude for you not to use it, wouldn't it?
Reply With Quote
  #4  
Old 01-29-2002, 12:00 PM
switched switched is offline
Member
 
Join Date: Dec 2001
Posts: 144
Default

tf:

at least our answers matched! (I posted in the other thread)
Reply With Quote
  #5  
Old 01-29-2002, 05:09 PM
Roy Hinkley Roy Hinkley is offline
 
Join Date: Oct 2001
Posts: 11
Default

Toll Free, Switched, thanks for taking the time to answer my question. An alternative I came up with was to create a dummy table with all the years and map them to the regions and branches, then use a nested iif statement to attach the IBNR [e.g. iif(year=1997,1997ibnr,etc.)]. It worked pretty cleanly.
Reply With Quote
  #6  
Old 01-30-2002, 12:24 PM
Actuary321 Actuary321 is offline
Member
 
Join Date: Sep 2001
Posts: 19,462
Default

Another option would be to export to an Excel spreadsheet do the transposition and then import it back to access.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -4. The time now is 05:21 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
*PLEASE NOTE: Posts are not checked for accuracy, and do not
represent the views of the Actuarial Outpost or its sponsors.
Page generated in 0.15279 seconds with 9 queries