Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

I have created a database, what is data structure and relationship?

$
0
0

I have a database.

I have 4 tables.

Employee table

Project Table

Sales order table

Customer table

================================

SalesOrderId is unique

EmploeeId Is unique

CustomerID is unique

ProjectId is unique

What would be the relationship for these tables?

Should I create 5th table that has salesOrderID and ProjectID and the primary key is the combination of salesOrderId and ProjectId?

Is the whole process correct?

Regards,

GGGGGNNNNN


GGGGGNNNNN


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>