# \#nsfetchrequest

**URL:** https://forums.swift.org/tag/nsfetchrequest/694.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [How to Fetch entries from database using input parameter as key in predicate](https://forums.swift.org/t/how-to-fetch-entries-from-database-using-input-parameter-as-key-in-predicate/79653)

<div class="topic-metadata">

**Author:** [@bhanubmb](https://forums.swift.org/u/bhanubmb)\
**Replies:** 2\
**Last updated:** [May 5, 2025, 10:38pm UTC](https://forums.swift.org/t/how-to-fetch-entries-from-database-using-input-parameter-as-key-in-predicate/79653 "2025-05-05T22:38:57Z")

</div>

I posted this question with error message as title. got no help. I am programmer with 20 years experience. but new to Swift Programming. So sorry, my terminology could be different / misleading. I am navigating to diff…

---

## [Create variable of type NSFetchRequestResult that can be used as NSFetchRequest result type](https://forums.swift.org/t/create-variable-of-type-nsfetchrequestresult-that-can-be-used-as-nsfetchrequest-result-type/59258)

<div class="topic-metadata">

**Author:** [@Chris](https://forums.swift.org/u/Chris)\
**Replies:** 2\
**Last updated:** [July 28, 2022, 11:51pm UTC](https://forums.swift.org/t/create-variable-of-type-nsfetchrequestresult-that-can-be-used-as-nsfetchrequest-result-type/59258 "2022-07-28T23:51:42Z")

</div>

I am trying to teach myself core data. I have code that works including the function below, if I hard code the result type, that will test a persistent store to see if it is empty and if so, read in data from disk and s…

---

## [How to switch between different CoreData Entities in NSFetchedResultsController?](https://forums.swift.org/t/how-to-switch-between-different-coredata-entities-in-nsfetchedresultscontroller/57645)

<div class="topic-metadata">

**Author:** [@artexhibit](https://forums.swift.org/u/artexhibit)\
**Replies:** 2\
**Last updated:** [May 28, 2022, 6:37am UTC](https://forums.swift.org/t/how-to-switch-between-different-coredata-entities-in-nsfetchedresultscontroller/57645 "2022-05-28T06:37:03Z")

</div>

I am using a CoreData in my project. It has 2 separate Entities : Currency and Currency2 . The entities have identical attributes, but store a different data which populates a tableView . And user can choose which data h…
