Hi I am trying to get information from two tables in the database but it gives an argument exception saying "Column 'SubContratorID' does not belong to table .”
Which 'SubContratorID' is it referring to …??
String query = @"Select ps.PSubContractID,s.SubContractorID,s.FirstName,s.LastName,s.Position,s.Email,s.TelNo,s.Agency From PSubContract as ps, SubContractor as s Where ps.ID=@id and ps.Phase=@phase and ps.SubContractorID=s.SubContractorID";
silly mistake