Sql-server – Database analysis

cdatabase-designsql server

I have database which that store the sold products in Orders Table and another table called Transaction
to set the time and the total price for the individual order ,my question is: How to combined more than one
order with only one Transaction number , If there is any tables that I should to create or any thing to do to
achieve the desired result.
Thanksenter image description here

Best Answer

It looks like you're most of the way there, but the Foreign Key should go the other way around. The Orders table should have a FK reference to Transaction. This allows a Transaction to be connected to 1 or more Orders.