---
title: "Discussion on \"Why should you use a DB transaction for updating, creating, and fetching multiple tables?\" | Hashnode"
description: "Discussion on \"Why should you use a DB transaction for updating, creating, and fetching multiple tables?\". 💡 Why Every Developer Should Understand Database Transactions\nWhile working on a company project, I was tasked with updating multiple interdependent tables in the database. Inserting transaction details required the order table to be populated first..."
url: "https://hashnode.com/posts/why-should-you-use-a-db-transaction-for-updating-creating-and-fetching-multiple-tables/67f69329739cfeb8769d8ef3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why should you use a DB transaction for updating, creating, and fetching multiple tables?](https://surajmandal.hashnode.dev/why-should-you-use-a-db-transaction-for-updating-creating-and-fetching-multiple-tables?utm_source=hashnode&utm_medium=feed)

💡 Why Every Developer Should Understand Database Transactions While working on a company project, I was tasked with updating multiple interdependent tables in the database. Inserting transaction details required the order table to be populated first...

Apr 9, 2025 · 3 min read · surajmandal.hashnode.dev  
Read the article

-   [#databases](https://hashnode.com/tag/databases)
-   [#transactions](https://hashnode.com/tag/transactions)
-   [#database-management-system](https://hashnode.com/tag/database-management-system)
-   [#database-design](https://hashnode.com/tag/database-design)
-   [#prisma](https://hashnode.com/tag/prisma)

## Written by

[Suraj Mandal](https://hashnode.com/@surajmandal)

@surajmandal

  
[View profile](https://hashnode.com/@surajmandal)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
