Designing an entity relationship diagram (ERD) for invoice printing software
The invoice-printing program is depicted in the figure below. I'd like to search for invoices based on the buyer's full name (Natural person/legal entity full name
) or the invoice date
to find all invoices associated with those two situations. For example, if a user searches for a given person or date, they will obtain a list of invoices, each with an invoice number.
In the future, I may need to search by invoice number
, where each invoice number
will only display one invoice.
So, based on the previous description, I require an ERD
similar to the one below.
It is not necessary to determine the data type of each entity in order to answer the question; what is most important is the relationship between the tables based on my above explanation. I tried to create four tables, but I was unable to establish the necessary relationship between them.
Click to download the database
Thank you for your interest.