title: Unable to fetch specific column that from core data
body: <p>I have created a an entity called <code>Statutory</code> with four columns namely <code>name</code>,<code>complianceName</code>,<code>statMappingName</code>,<code>country</code></p>
  
  <p>i want a get all <code>complianceName</code> names that matches a specific <code>statMappingName</code>. Following is my code</p>
  
  <pre><code> NSString *nameToGet = self.statNameArray[indexPath.row] ;
          NSPredicate *predicate = [NSPredicate predicateWithFormat:@"complianceName = %@", nameToGet];
          [fetch setPredicate:predicate];
  
      NSLog(@"n %@",predicate);
      NSError *error = nil;
      NSArray *results = [[self managedObjectContext] executeFetchRequest:fetch error:&amp;error];
      if(results) {
          NSLog(@"Entities with that name: %@", results);
      } else {
          NSLog(@"Error: %@", error);
      }
  </code></pre>
  
  <p>But it is not providing the compliance name specific to that <code>statMappingName</code>. How can I be able to get all <code>complianceName</code> that has a specific  <code>statMappingName</code>?</p>