我正在尝试为简单的库数据库绘制ER图和SQL ddl。
我有以下实体:
Book (holds the ISBN as key, book title, author)
Copy (copyID of a copy of a book, dateAcquired, dateDestroyed)
Member (MemberID, name, address)
Loaned (i guess the date due and the date back and obviously foreign keys for memberID and copyID)
会员还可以是学生或员工。所以我认为这应该是一种“IS-A”关系。
我如何在正确的ER-Diagram和SQL-DDL
中表示这一点答案 0 :(得分:1)
我使用SQL Server 2008 Express为Northwind数据库创建此图表。该图由SSMS绘制
对于SQL-DDL,我使用SSMS编写数据库