title: Repetition data in sql
body: <p>I have attendance table in SQLServer that has 3 fields (id,course,date) 
  I want this table not to accept the same id in attendance for same date and course
  but it can record id for different date or different course.</p>
  
  <p>I try to add command for this condition in my stored procedure but doesn't work.</p>