MSSQL - do select form in the result fields do not appear repeated

1

TheselectIamdoingisthis:

SELECTDISTINCTdbo.Entity.ComercialName,dbo.ScheduleStatus.Description,dbo.ScheduleGoal.DescriptionASalias_DSG,dbo.ScheduleType.DescriptionASalias_DST,dbo.Entity.ID,dbo.Schedule.Notes,dbo.Schedule.DATEFROM(dbo.ScheduleRIGHTJOINdbo.ScheduleStatusONScheduleStatus.id=Schedule.ScheduleStatus)RIGHTJOINdbo.ScheduleGoalONSchedule.ScheduleGoal=ScheduleGoal.IdRIGHTJOINdbo.ScheduleTypeONSchedule.ScheduleType=ScheduleType.idRIGHTJOINdbo.EntityONSChedule.Entity=Entity.IdGROUPBYEntity.ComercialName,ScheduleStatus.Description,ScheduleGoal.Description,ScheduleType.Description,Entity.ID,Schedule.Notes,Schedule.DATE;

TheresultIwantis:

    
asked by anonymous 19.08.2015 / 17:46

0 answers