Home »
MCQs »
SQLAlchemy MCQs
If you want to apply a JOIN to a SELECT statement so that the related rows are loaded in the same result set, which form of relationship loading will you use?
47. If you want to apply a JOIN to a SELECT statement so that the related rows are loaded in the same result set, which form of relationship loading will you use?
- Lazyload()
- Joinedload()
- Subqueryload()
Answer: B) Joinedload()
Explanation:
Joinedload() is used when you want to apply a JOIN to a SELECT statement so that the related rows are loaded in the same result set.