Underlying Table & Field corresponding with Column
Posted: Wed 06 Jun 2012 20:46
Is there a way to derive the underlying table and field for a given column name?
For Example:
SELECT Memberships.Description AS MembershipName, CustomerMemberships.Date as Enrolled, Customers.FirstName+' '+Customers.LastName As Person
FROM Memberships INNER JOIN
CustomerMemberships ON Memberships.MembershipID = CustomerMemberships.MembershipID INNER JOIN
Customers ON CustomerMemberships.CustomerID = Customers.CustomerID
Given the following column name "MembershipName"
Is there a method to derive "Description" as the underlying Field and "Memberships" as the underlying Table?
I realize the circumstances that where Table and field names could not be derived, such as the "Person" column which results from concatenated fields.
For Example:
SELECT Memberships.Description AS MembershipName, CustomerMemberships.Date as Enrolled, Customers.FirstName+' '+Customers.LastName As Person
FROM Memberships INNER JOIN
CustomerMemberships ON Memberships.MembershipID = CustomerMemberships.MembershipID INNER JOIN
Customers ON CustomerMemberships.CustomerID = Customers.CustomerID
Given the following column name "MembershipName"
Is there a method to derive "Description" as the underlying Field and "Memberships" as the underlying Table?
I realize the circumstances that where Table and field names could not be derived, such as the "Person" column which results from concatenated fields.