What is crow’s foot notation?
Crow’s foot notation draws tables as boxes and relationships as lines, and puts a symbol at each end of a line that says how many rows of that table can match one row at the other end. It takes its name from the three-pronged fork that means “many”, which looks like a bird’s foot.
Every end is built from three marks:
- A ring means zero.
- A bar means one.
- The foot means many.
Each end carries two of them. The mark that touches the box is the maximum (cardinality): one or many. The mark further along the line is the minimum (optionality, sometimes called modality): zero if the end may hold no row, one if it must hold one. That gives four ends:
- Exactly one: two bars .
- Zero or one: a bar and a ring .
- One or more: a foot and a bar .
- Zero or more: a foot and a ring .
A parent’s end is never many, so the pictures here draw its exactly one as a single bar .
A small hotel shows most of them; the hotel management system template is a fuller hotel design. Rooms belong to a room type, and a booking names its guest and, once the front desk assigns one, its room:
CREATE TABLE dbo.RoomType ( RoomTypeId int NOT NULL CONSTRAINT PK_RoomType PRIMARY KEY, Name nvarchar(50) NOT NULL ); CREATE TABLE dbo.Room ( RoomId int NOT NULL CONSTRAINT PK_Room PRIMARY KEY, RoomTypeId int NOT NULL, Number nvarchar(10) NOT NULL, CONSTRAINT FK_Room_RoomType_RoomTypeId FOREIGN KEY (RoomTypeId) REFERENCES dbo.RoomType (RoomTypeId) ); CREATE TABLE dbo.Guest ( GuestId int NOT NULL CONSTRAINT PK_Guest PRIMARY KEY, FullName nvarchar(100) NOT NULL ); CREATE TABLE dbo.Booking ( BookingId int NOT NULL CONSTRAINT PK_Booking PRIMARY KEY, GuestId int NOT NULL, RoomId int NULL, ArrivesOn date NOT NULL, CONSTRAINT FK_Booking_Guest_GuestId FOREIGN KEY (GuestId) REFERENCES dbo.Guest (GuestId), CONSTRAINT FK_Booking_Room_RoomId FOREIGN KEY (RoomId) REFERENCES dbo.Room (RoomId) );

How do you read a crow’s foot diagram?
Read a line one direction at a time. Start at one table, follow the line, and the symbol at the far end tells you how many rows over there go with one row here.
Take the line between dbo.RoomType and dbo.Room. From the room type’s side, the far end is a ring and a foot : each room type has zero or more rooms. From the room’s side, the far end is one bar : each room has exactly one room type. Both sentences describe the same foreign key, Room.RoomTypeId.
The line between dbo.Room and dbo.Booking reads the same way. Each room has zero or more bookings, and each booking has zero or one room . The ring is there because a booking can exist before the front desk assigns a room.
So the end next to a table answers a question about the other table. If you catch yourself reading the foot at dbo.Booking as “a booking has many”, turn around: the foot belongs to the rooms’ sentence.
Which SQL makes the parent’s end mandatory or optional?
The end at the parent table, the one the foreign key points at, comes from one word in the child’s column: NULL or NOT NULL.
It is never “many”. A foreign key column holds one value per row, and that value matches the parent’s primary key, which is unique. The only question left is whether it must name one, and that is the column’s nullability:
INSERT INTO dbo.Guest (GuestId, FullName) VALUES (1, N'Ana Ruiz'); INSERT INTO dbo.Booking (BookingId, GuestId, RoomId, ArrivesOn) VALUES (100, 1, NULL, '2026-06-12'); INSERT INTO dbo.Booking (BookingId, GuestId, RoomId, ArrivesOn) VALUES (101, NULL, NULL, '2026-06-12');
Msg 515, Level 16, State 2, Line 5
Cannot insert the value NULL into column 'GuestId', table 'Hotel.dbo.Booking'; column does not allow nulls. INSERT fails.
The statement has been terminated.Booking 100 goes in with RoomId NULL: no room yet, and SQL Server doesn’t check a NULL against dbo.Room. Booking 101 leaves out the guest as well, and Msg 515 stops it, because GuestId is NOT NULL. So GuestId draws one bar at dbo.Guest (mandatory, exactly one) and RoomId draws a bar and a ring at dbo.Room (optional, zero or one ). The primary key vs foreign key post covers what else SQL Server checks on each side.
One-to-many, one-to-one and many-to-many in crow’s foot
The end at the child table counts child rows per parent row. A plain foreign key lets many rows repeat the same value, so its end is a ring and a foot : zero or more. That is one-to-many, like every line in the hotel picture above.
To cap the child’s end at one, make the foreign key unique. There are two ways to do that, and the hotel uses both:
CREATE TABLE dbo.CheckIn ( BookingId int NOT NULL, CheckedInAt datetime2(0) NOT NULL, CONSTRAINT PK_CheckIn PRIMARY KEY (BookingId), CONSTRAINT FK_CheckIn_Booking_BookingId FOREIGN KEY (BookingId) REFERENCES dbo.Booking (BookingId) ); CREATE TABLE dbo.LoyaltyMember ( LoyaltyMemberId int NOT NULL CONSTRAINT PK_LoyaltyMember PRIMARY KEY, GuestId int NOT NULL, CardNumber char(10) NOT NULL, CONSTRAINT AK_LoyaltyMember_GuestId UNIQUE (GuestId), CONSTRAINT FK_LoyaltyMember_Guest_GuestId FOREIGN KEY (GuestId) REFERENCES dbo.Guest (GuestId) );

dbo.CheckIn uses BookingId as its whole primary key, so a booking can be checked in once. dbo.LoyaltyMember keeps a key of its own and adds a unique constraint on GuestId, so a guest can join the program once. A unique constraint or a primary key both do the job; SQL Server enforces each with a unique index.
INSERT INTO dbo.CheckIn (BookingId, CheckedInAt) VALUES (100, '2026-06-12 15:04'); INSERT INTO dbo.CheckIn (BookingId, CheckedInAt) VALUES (100, '2026-06-12 15:30'); INSERT INTO dbo.LoyaltyMember (LoyaltyMemberId, GuestId, CardNumber) VALUES (1, 1, 'H000000417'), (2, 1, 'H000000418');
Msg 2627, Level 14, State 1, Line 3
Violation of PRIMARY KEY constraint 'PK_CheckIn'. Cannot insert duplicate key in object 'dbo.CheckIn'. The duplicate key value is (100).
The statement has been terminated.
Msg 2627, Level 14, State 1, Line 5
Violation of UNIQUE KEY constraint 'AK_LoyaltyMember_GuestId'. Cannot insert duplicate key in object 'dbo.LoyaltyMember'. The duplicate key value is (1).
The statement has been terminated.The second check-in for booking 100 fails on PK_CheckIn, and the second loyalty card for guest 1 fails on AK_LoyaltyMember_GuestId. Both are Msg 2627, and both enforce the same thing: at most one child row per parent. That is a one-to-one relationship, and it is the only change SQL can make at the child’s end.
The minimum at the child’s end is always zero: booking 100 was in the table before its check-in row. A foreign key constrains the child table’s rows and nothing else.
Many-to-many would need a foot at both ends, and one foreign key can’t draw that. A room has several amenities and an amenity sits in several rooms, so the hotel stores each pairing as a row of a link table:
CREATE TABLE dbo.Amenity ( AmenityId int NOT NULL CONSTRAINT PK_Amenity PRIMARY KEY, Name nvarchar(50) NOT NULL ); CREATE TABLE dbo.RoomAmenity ( RoomId int NOT NULL, AmenityId int NOT NULL, CONSTRAINT PK_RoomAmenity PRIMARY KEY (RoomId, AmenityId), CONSTRAINT FK_RoomAmenity_Room_RoomId FOREIGN KEY (RoomId) REFERENCES dbo.Room (RoomId), CONSTRAINT FK_RoomAmenity_Amenity_AmenityId FOREIGN KEY (AmenityId) REFERENCES dbo.Amenity (AmenityId) );

dbo.RoomAmenity holds two foreign keys, each a one-to-many line from its parent, and its primary key is the pair: a composite key that stops the same pairing from going in twice.
INSERT INTO dbo.RoomType (RoomTypeId, Name) VALUES (1, N'Double'); INSERT INTO dbo.Room (RoomId, RoomTypeId, Number) VALUES (1, 1, N'101'), (2, 1, N'102'); INSERT INTO dbo.Amenity (AmenityId, Name) VALUES (1, N'Balcony'), (2, N'Bathtub'); INSERT INTO dbo.RoomAmenity (RoomId, AmenityId) VALUES (1, 1), (1, 2), (2, 1); INSERT INTO dbo.RoomAmenity (RoomId, AmenityId) VALUES (2, 1);
Msg 2627, Level 14, State 1, Line 9
Violation of PRIMARY KEY constraint 'PK_RoomAmenity'. Cannot insert duplicate key in object 'dbo.RoomAmenity'. The duplicate key value is (2, 1).
The statement has been terminated.Room 1 gets the balcony and the bathtub, and the balcony goes in room 2 as well, so each side has many of the other. The balcony for room 2 a second time fails on PK_RoomAmenity.
Solid or dashed: identifying and non-identifying lines
The line itself carries one more fact. When every column of the foreign key is also in the child’s primary key, the relationship is identifying: the child can’t be named without its parent. The line is solid and the child’s box has round corners . When the child has a key of its own, the relationship is non-identifying and the line is dashed .
A booking runs over several nights, and each night has its own rate. A night is known by its booking and its date:
CREATE TABLE dbo.BookingNight ( BookingId int NOT NULL, NightOf date NOT NULL, Rate money NOT NULL, CONSTRAINT PK_BookingNight PRIMARY KEY (BookingId, NightOf), CONSTRAINT FK_BookingNight_Booking_BookingId FOREIGN KEY (BookingId) REFERENCES dbo.Booking (BookingId) );

BookingId alone repeats once per night, so the child’s end is zero or more; the pair (BookingId, NightOf) is the primary key that keeps one rate per night. dbo.CheckIn above is identifying as well, but its key is BookingId alone, which is why its solid line ends in zero or one.
An identifying line always has one bar at the parent. Its foreign key columns are primary key columns, and primary key columns can’t be NULL, so the parent can’t be optional.
Not every crow’s foot diagram makes this difference; plenty draw every line solid. The ER diagram symbols post puts crow’s foot beside Chen and IDEF1X.
Crow’s foot notation cheat sheet
The hotel’s scripts together, keys only, show every end a SQL schema can produce:

Each end, where to find it in the picture, and the SQL behind it:
- One bar at the parent, exactly one:
dbo.Gueston the line todbo.Booking. The foreign key is NOT NULL, or part of the child’s primary key. - A bar and a ring at the parent, zero or one:
dbo.Roomon the line todbo.Booking. The foreign key allows NULL. - A ring and a foot at the child, zero or more:
dbo.Bookingon the line fromdbo.Guest. The foreign key isn’t unique. - A bar and a ring at the child, zero or one:
dbo.CheckInanddbo.LoyaltyMember. The foreign key is the child’s primary key or has a unique constraint. - A solid line , identifying:
dbo.BookingNightanddbo.CheckIn. Every foreign key column is in the child’s primary key. - A dashed line , non-identifying: every other line. The child has a key of its own.
Two ends are missing, and no script can draw them: one or more (a foot and a bar ) and exactly one at the child (two bars ). Both say a parent row must have a child row, and SQL Server has no constraint for that. If “every booking has at least one night” is a rule of the hotel, it lives in the application or a trigger, and a diagram read from the tables shows zero or more.
How ERDsmith helps
The ring at dbo.Room comes from one nullable column, Booking.RoomId, and the solid line to dbo.BookingNight from one primary key, so both are settled when the columns and keys are, before any row goes in. In ERDsmith the ends follow from those columns and keys, never drawn apart from them:
- A relationship is identifying exactly when all its columns are in the child’s primary key, and its line is solid ; otherwise it is dashed .
- An identifying relationship is mandatory, so its parent’s end is always exactly one, never a ring .
- A non-identifying relationship is optional when its columns allow NULL: make the column nullable and the parent’s end gets its ring ; make it NOT NULL and the ring goes.
- An imported script’s foreign key gets zero or one at the child when its columns carry a primary key, a unique key or a unique index without a filter, and zero or more otherwise.