• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

output group issue

Guest
Jan 21, 2007 Jan 21, 2007

Copy link to clipboard

Copied

Hi I have a small problem wit my cfoutput group

if you look at http://www.northsydneycc.com.au/EditMatchResult.cfm

you will see the output is grouped by season but this is being duplicted for some reason

i have this query below, if i take out the second inner join then it displays correctly, but i need this to show the teamname

any ideas how to sort this out

<CFQUERY datasource="Cricket" Name="GetResults">
SELECT MS.MatchDate, MS.Opponent, ST.SeasonYear, TN.TeamName
FROM matchresults MS

INNER JOIN seasontable ST
ON MS.Season = ST.SeasonID

INNER JOIN teamnames TN
ON MS.TeamID = TN.ID

ORDER By MS.MatchDate, MS.TeamID
</cfquery>
TOPICS
Advanced techniques

Views

226

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 21, 2007 Jan 21, 2007

Copy link to clipboard

Copied

Relate column seasonYear to order-by clause, since cfoutput groups by it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 21, 2007 Jan 21, 2007

Copy link to clipboard

Copied

ok yes done that but still i get duplicate seasons

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 22, 2007 Jan 22, 2007

Copy link to clipboard

Copied

LATEST
Have you checked your data to make sure there aren't duplicate rows?

--
Adam

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation