i have a temp table #student_detailswhich contains below valuesstudent_id subject_id 1 111 3 111 4 111 5 111 3 121 4 121i need to select the students which is common in both subjects,what should i do???i am new to sql, can anyone help??
↧