I have a database that is not normalized (its a conversion I did from an old FoxPro db) I have a list like this...
fld1 fld2 fld3 fld4 fld5
25 ORSTPOL ORST
25 ORSTPOL ORSTP
25 ORSTPOL ORSTPL
Information in fields one and two are repeated 2 to 20 times with different entries for each in fields 3, 4, and 5. There is a lot of redundant data and we're trying to consolidate the list so we can fix it! How would I do a query that would list the info in fields one and two, with a list of all the possible other fields but on the same row?
Here's a sample of the data, though the last three fields didn't paste in quite right.
804053 CLACK CO LAW 3 CLK LAW 3
804053 CLACK CO LAW 3 CLACK LAW 3
804053 CLACK CO LAW 3 CCOM 3
804053 CLACK CO LAW 3 CC LAW 3
804053 CLACK CO LAW 3 CLAK LW3
804055 CLACK CO LAW 2 CLK LAW 2
804055 CLACK CO LAW 2 CLAK LW2
804055 CLACK CO LAW 2 CC LAW 2
804055 CLACK CO LAW 2 CLACK LAW 2
804055 CLACK CO LAW 2 CCOM 2
Here's my hoped for results...
804055 CLACK CO LAW 2 CLK LAW 3 CLACK LAW 3 CCOM 3 CC LAW 3 CLAK LW3....etc, all in one row.
I know in SQL you can join a table to itself aliased with another name...would this be the same approach? Does that work in Access?
TIA!
PenelopeC
~~~>-/O~~~~~swimming right along
fld1 fld2 fld3 fld4 fld5
25 ORSTPOL ORST
25 ORSTPOL ORSTP
25 ORSTPOL ORSTPL
Information in fields one and two are repeated 2 to 20 times with different entries for each in fields 3, 4, and 5. There is a lot of redundant data and we're trying to consolidate the list so we can fix it! How would I do a query that would list the info in fields one and two, with a list of all the possible other fields but on the same row?
Here's a sample of the data, though the last three fields didn't paste in quite right.
804053 CLACK CO LAW 3 CLK LAW 3
804053 CLACK CO LAW 3 CLACK LAW 3
804053 CLACK CO LAW 3 CCOM 3
804053 CLACK CO LAW 3 CC LAW 3
804053 CLACK CO LAW 3 CLAK LW3
804055 CLACK CO LAW 2 CLK LAW 2
804055 CLACK CO LAW 2 CLAK LW2
804055 CLACK CO LAW 2 CC LAW 2
804055 CLACK CO LAW 2 CLACK LAW 2
804055 CLACK CO LAW 2 CCOM 2
Here's my hoped for results...
804055 CLACK CO LAW 2 CLK LAW 3 CLACK LAW 3 CCOM 3 CC LAW 3 CLAK LW3....etc, all in one row.
I know in SQL you can join a table to itself aliased with another name...would this be the same approach? Does that work in Access?
TIA!
PenelopeC
~~~>-/O~~~~~swimming right along