I need to make one column distinct in inner join three tables
I need to make videoName distinct y only not other colunms
how can I write the query
please help
- SElECT distinct t1.MID, distinct t1.VideoName, t2.*,t3.UniID,t3.user_type from dbo.Material AS t1 INNER JOIN dbo.ModuleRelation As t2 ON t2.MID=t1.MID INNER JOIN dbo.Users AS t3 ON t3.UniID=t2.UId where t3.user_type='Staff' and t1.IsDeleted = 0 AND t2.MID='CM1034D';
thanks
Midhun TpRank #388 · 6.5K reputationPosted Aug 16, 2016, 6:57 AM EDT
Tapan PatelRank #614 · 3.9K reputationPosted Aug 16, 2016, 5:13 AM EDT
Midhun TpRank #388 · 6.5K reputationPosted Aug 16, 2016, 5:31 AM EDT
Joma Rajab125 reputationPosted Aug 16, 2016, 6:14 AM EDT
Midhun T P
thanksTapan PatelRank #614 · 3.9K reputationPosted Aug 16, 2016, 6:21 AM EDT
Midhun TpRank #388 · 6.5K reputationPosted Aug 16, 2016, 6:21 AM EDT
Joma Rajab125 reputationPosted Aug 16, 2016, 6:41 AM EDT
Joma Rajab125 reputationPosted Aug 16, 2016, 7:18 AM EDT
Midhun TpRank #388 · 6.5K reputationPosted Aug 16, 2016, 7:54 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts