![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have inherited a SQL db and am trying to get some data from it. The issue I am having is that the data is broken down by year in tables (data2000, data2001, data2003, ...). None of these tables had a key that was able to relate them to each other. I created a key by combining a division number and department number. The only problem is that each year they added and subtracted departments, and changed the department name (misspelled, abbreviated). I need to create a table that has the latest department/division name in one place (having pulled from 2006 to 2000 and filling in where possible). How? This is my first foray into the SQL world, and I appreciate any help you can give me. JPM |
#3
| |||
| |||
|
|
I have inherited a SQL db and am trying to get some data from it. The issue I am having is that the data is broken down by year in tables (data2000, data2001, data2003, ...). None of these tables had a key that was able to relate them to each other. I created a key by combining a division number and department number. The only problem is that each year they added and subtracted departments, and changed the department name (misspelled, abbreviated). I need to create a table that has the latest department/division name in one place (having pulled from 2006 to 2000 and filling in where possible). How? This is my first foray into the SQL world, and I appreciate any help you can give me. JPM |
#4
| |||
| |||
|
|
I have inherited a SQL db and am trying to get some data from it. The issue I am having is that the data is broken down by year in tables (data2000, data2001, data2003, ...). None of these tables had a key that was able to relate them to each other. I created a key by combining a division number and department number. The only problem is that each year they added and subtracted departments, and changed the department name (misspelled, abbreviated). I need to create a table that has the latest department/division name in one place (having pulled from 2006 to 2000 and filling in where possible). How? This is my first foray into the SQL world, and I appreciate any help you can give me. JPM |
#5
| |||
| |||
|
|
I have inherited a SQL db and am trying to get some data from it. The issue I am having is that the data is broken down by year in tables (data2000, data2001, data2003, ...). None of these tables had a key that was able to relate them to each other. I created a key by combining a division number and department number. The only problem is that each year they added and subtracted departments, and changed the department name (misspelled, abbreviated). I need to create a table that has the latest department/division name in one place (having pulled from 2006 to 2000 and filling in where possible). How? This is my first foray into the SQL world, and I appreciate any help you can give me. JPM |
#6
| |||
| |||
|
|
I have inherited a SQL db and am trying to get some data from it. The issue I am having is that the data is broken down by year in tables (data2000, data2001, data2003, ...). None of these tables had a key that was able to relate them to each other. I created a key by combining a division number and department number. The only problem is that each year they added and subtracted departments, and changed the department name (misspelled, abbreviated). I need to create a table that has the latest department/division name in one place (having pulled from 2006 to 2000 and filling in where possible). How? This is my first foray into the SQL world, and I appreciate any help you can give me. JPM |
#7
| |||
| |||
|
|
I have inherited a SQL db and am trying to get some data from it. The issue I am having is that the data is broken down by year in tables (data2000, data2001, data2003, ...). None of these tables had a key that was able to relate them to each other. I created a key by combining a division number and department number. The only problem is that each year they added and subtracted departments, and changed the department name (misspelled, abbreviated). I need to create a table that has the latest department/division name in one place (having pulled from 2006 to 2000 and filling in where possible). How? This is my first foray into the SQL world, and I appreciate any help you can give me. JPM |
#8
| |||
| |||
|
|
I have inherited a SQL db and am trying to get some data from it. The issue I am having is that the data is broken down by year in tables (data2000, data2001, data2003, ...). None of these tables had a key that was able to relate them to each other. I created a key by combining a division number and department number. The only problem is that each year they added and subtracted departments, and changed the department name (misspelled, abbreviated). I need to create a table that has the latest department/division name in one place (having pulled from 2006 to 2000 and filling in where possible). How? This is my first foray into the SQL world, and I appreciate any help you can give me. JPM |
#9
| |||
| |||
|
|
I have inherited a SQL db and am trying to get some data from it. The issue I am having is that the data is broken down by year in tables (data2000, data2001, data2003, ...). None of these tables had a key that was able to relate them to each other. I created a key by combining a division number and department number. The only problem is that each year they added and subtracted departments, and changed the department name (misspelled, abbreviated). I need to create a table that has the latest department/division name in one place (having pulled from 2006 to 2000 and filling in where possible). How? This is my first foray into the SQL world, and I appreciate any help you can give me. JPM |
#10
| |||
| |||
|
|
I have inherited a SQL db and am trying to get some data from it. The issue I am having is that the data is broken down by year in tables (data2000, data2001, data2003, ...). None of these tables had a key that was able to relate them to each other. I created a key by combining a division number and department number. The only problem is that each year they added and subtracted departments, and changed the department name (misspelled, abbreviated). I need to create a table that has the latest department/division name in one place (having pulled from 2006 to 2000 and filling in where possible). How? This is my first foray into the SQL world, and I appreciate any help you can give me. JPM |
![]() |
| Thread Tools | |
| Display Modes | |
| |