Difference between link and child tables?

I just started using erpnext and im fairly new to programming. I’m confused between link and child relation. Say I can get all the data from a doctype using link then why should I use “is a child table”?

A child table is where you want to add rows. It is a table, a link field links two documents with each other. Let’s say we have three entities:

  1. Client
  2. Project
  3. Bank

Now a Client can have multiple projects, so for that purpose we will use a child table. However a client can only have one bank, so for that we will use a link field.

1 Like

Got it. Thank you :slight_smile: