Hello I have 50 Tables in Sql server.
All the tables are in join.
For Ex.
Country Table
PKCountryID
Name
State Table
PKStateID
FKCountryID
Name
City Table
PKCityID
FKStateID
Name
Employee Table
PKID
FIrstName
LastName
FKCityID
So i want all the columns of all tables. For that i write below Fiddle.
This will give me result like
COLUMN_NAME
PKEmployeeID
Name
FKCityID
But I want result like this.
COLUMN_NAME
PKEmployeeID
Name
-FKCityID
PKCityID
Name
-FKStateID
PKStateID
Name
-FKCountryID
PKCountryID
Name
PKCityID
Name
-FKStateID
PKStateID
Name
-FKCountryID
PKCountryID
Name
PKStateID
Name
-FKCountryID
PKCountryID
Name
PKCountryID
Name