P
planar.guardian
I have tried using the code listed for combining duplicate results
found in a table but have been unsuccessful. Here's what I have:
SELECT DISTINCT Replace([String],Left([String],3),"") AS Expr1, [DS:
ASU Data].Location
FROM [DS: Files] INNER JOIN [DS: ASU Data] ON [DS: Files].ID=[DS:
ASU Data].DSFileID
WHERE ((([DS: Files].[HM Filename]) Like "*" & [Enter Schematic Label]
& ".DS") AND (([DS: ASU Data].String) Like '[a-z]' & '[a-z]' & "\*"
And ([DS: ASU Data].String) Not Like "*.*"));
Essentially, this SQL is extracting the information from two columns
based on my entered criteria, and formatting the output. An example of
the resulting output is:
Name Subpicture
ACF353 T
UAA030 T
UAA030 WU
UAA030T T
UAA031 T
UAA032S TD
I would like to run a second query on these results to combine the
names that appear in duplicate so that the results will appear like
this:
Name Subpicture
ACF353 T
UAA030 T, WU
UAA030T T
UAA031 T
UAA032S TD
I downloaded the concatenate function that was posted on another group,
but I have been unsuccessful in getting it to work correctly with the
first query. Also, running the tool on the table first and then
performing another query is out of the question seeing how the database
contains over 350000 entries. Any help would be greatly appreciated.
Thanks.
found in a table but have been unsuccessful. Here's what I have:
SELECT DISTINCT Replace([String],Left([String],3),"") AS Expr1, [DS:
ASU Data].Location
FROM [DS: Files] INNER JOIN [DS: ASU Data] ON [DS: Files].ID=[DS:
ASU Data].DSFileID
WHERE ((([DS: Files].[HM Filename]) Like "*" & [Enter Schematic Label]
& ".DS") AND (([DS: ASU Data].String) Like '[a-z]' & '[a-z]' & "\*"
And ([DS: ASU Data].String) Not Like "*.*"));
Essentially, this SQL is extracting the information from two columns
based on my entered criteria, and formatting the output. An example of
the resulting output is:
Name Subpicture
ACF353 T
UAA030 T
UAA030 WU
UAA030T T
UAA031 T
UAA032S TD
I would like to run a second query on these results to combine the
names that appear in duplicate so that the results will appear like
this:
Name Subpicture
ACF353 T
UAA030 T, WU
UAA030T T
UAA031 T
UAA032S TD
I downloaded the concatenate function that was posted on another group,
but I have been unsuccessful in getting it to work correctly with the
first query. Also, running the tool on the table first and then
performing another query is out of the question seeing how the database
contains over 350000 entries. Any help would be greatly appreciated.
Thanks.