I need to understand how to represent the following in an ER diagram
If the relational schema is as follows:
B(X,W,P),where P is defined as NOT NULL,
C(P,Q)
D(P,X,R)
Give an ER diagram for the relational schema. Identify primary keys and constraints.
Which relation represents an entity, and which relation represents a relationship