Hi,
I'm trying to do this query:
This works, but what I really want to do is something like:
..so I get something like:
user_id user_username
1234 someone
2344 another person
...instead of what I get now:
user_id user_username
1234 someone
2344 another person
1234 someone
1234 someone
2344 another person
(i.e repeating the same person)
Is this even possible?
TIA
Andy
I'm trying to do this query:
Code:
select a.user_username, a.user_id, a.user_real_name2 from gforum_User as a
inner join gforum_Message as b
on b.to_user_id_fk = a.user_id
where b.to_user_id_fk = 309804 order by user_username ASC
This works, but what I really want to do is something like:
Code:
select DISTNCT(a.user_username), a.user_id, a.user_real_name2 from gforum_User as a
inner join gforum_Message as b
on b.to_user_id_fk = a.user_id
where b.to_user_id_fk = 309804 order by user_username ASC
..so I get something like:
user_id user_username
1234 someone
2344 another person
...instead of what I get now:
user_id user_username
1234 someone
2344 another person
1234 someone
1234 someone
2344 another person
(i.e repeating the same person)
Is this even possible?
TIA
Andy