select g.GroupID,g.GrpName,cg.ClientID, v.ClientGroupValueID,v.Value as groupvalue
from [Group] g, ClientGroupValue v, (select ClientGroup.ClientID, ClientGroup.GroupID,ClientGroup.ClientGroupValueID
from ClientGroup where ClientGroup.GroupID in
(select ViewGroup.GroupID from ViewGroup where ViewGroup.ViewID=1)) cg
where g.GroupID=v.GroupID and cg.GroupID=v.GroupID and cg.ClientGroupValueID=v.ClientGroupValueID
order by cg.Client