I have Two Table Two Table Name called Following on this
1. TP_Users
2. TP_Roles
TP_Users Have Following Fields
Id (PK, int, not null)
UserName (nvarchar(50), null)
UserEmail (nvarchar(50), null)
DisplayName (nvarchar(50), null)
Password (nvarchar(50), null)
RoleId (FK, int, not null)
IsActive (bit, not null) ------>Foreign Key Reference
ClientId (int, null)
TP_Roles have Following Fields
Id PK, int, not null
Role_Name varchar(200), null
IsActive bit, null
TP_Users Parent table column name RoleId its Refrenced table TP_Roles column name id.
How to make relationships and how the link two tables using query ?