Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
select batchid,lecturefacultyid from batchoutputbatchid,lecturefacultyid -----------------------1 32 2I want to match this whole column with(batchid,lecturefacultyid)with the column of feedback table.with the columns of Feedback tablebatchid facultyid -----------------------1 32 2How can i do this?output should be only matching (batchid,lecturefacultyid)
khtan
In (Som, Ni, Yak)
17689 Posts
Posted - 2006-08-01 : 05:35:06
like this ?
select b.batchid, b.lecturefacultyidfrom batch b inner join feedback fon b.batchid = f.batchidand b.lecturefacultyid = f.facultyid