Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8356523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:13:19+00:00 2026-06-09T10:13:19+00:00

I have imported a mysql from a web app into my iOS app. This

  • 0

I have imported a mysql from a web app into my iOS app. This database is designed specifically without using foreign keys.

I need to do a Left-Join but I can’t figure out how to do this in iOS core-data without using a relationship.

Is there not a way to just get two tables data using a Data.id == Item.id like syntax in a
NSPredicate???

———-EDITED———-

To put it more specifically I want to take a Data entity with and match the item attribute with the Entity Item’S entity code attribute. Any “objects” that don’t have a match should not be included.

Just like a left join….. Ya feel me?

I am stumped.

Help
Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T10:13:20+00:00Added an answer on June 9, 2026 at 10:13 am

    You ask “is there no easy way in core data“?
    Turns out, it is much easier in core data than in SQL.

    Simply make entity Item a relationship of entity Data. Your predicate could then be

    [NSPredicate predicateWithFormat:@"item = %@", itemObject];
    

    What could be easier than that??

    Assumptions: relationship is one-to-one, name of relationship is item, itemObject is a managed object of type Item.

    For the record: you are actually not even dealing with a table, because Core Data is an object graph and not a database. You will find many discussions on this here on SOF.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have downloaded whole database from geonames.org and imported all countries into mysql. i
I have to migrate database from mysql to ms sql server 2005.I imported table
I am using the following script to import data into my mysql database from
I have just imported a huge MySQL database. Most fields are latin1_swedish_ci, and they
I have imported a JSF/Facelets project from SVN into Netbeans. Any change which I
I have imported the data into an database. Patient(pt_id,pt_name,pt_type,pt_loc) Now , I want to
I have imported my database by script from live site to my local server.
I have a mysql query that pulls into excel via an ODBC connection. This
I have a MySQL table that I have imported from a CSV file. In
I have a string field in Mysql (date fields imported from from MSSQL) and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.