penguinspeaks
Technical User
Hey all. Got what I am hoping is a quick question for ya's.
("SELECT DISTINCT team2 FROM matches WHERE team1 = '" & var1 & "' AND team2 <> '" & var1 & "'")
This does give me the DISTINCT teams that are in that field. However, somehow, I would also like to have a COUNT of each DISTINCT team2
so it may return something like
team_A 5 meaning team A appeared 5 times in that field.
team_B 8 meaning team B appeared 8 times in that field and so on.
is this possible to do??
as you can see.. this is using sql in asp
hope someone can help.
thanks in advance
Jeff
Bam
("SELECT DISTINCT team2 FROM matches WHERE team1 = '" & var1 & "' AND team2 <> '" & var1 & "'")
This does give me the DISTINCT teams that are in that field. However, somehow, I would also like to have a COUNT of each DISTINCT team2
so it may return something like
team_A 5 meaning team A appeared 5 times in that field.
team_B 8 meaning team B appeared 8 times in that field and so on.
is this possible to do??
as you can see.. this is using sql in asp
hope someone can help.
thanks in advance
Jeff
Bam