Hi
Followed the below steps and observed that Column internal name in document library is different than Site column name or column name in content type
Part I) : Create a new lookup column
1. Content type "Document" is already added to Document library.
2. Create a new Lookup list on Site collection say "ColorList"
3. Add entries in that list.
4. Go to Site Actions > Site Settings > Site content types > select Document content type.
5. Create a new lookup column name "LookupColor" based on "ColorList" list in site collection.(its internal column name is "LookupColor")
6. As Content type is already added to document library the newly created column "LookupColor also added to document library with internal name ("LookupColor")
Part II) : Delete the a earlier created lookup column
1. Go to Site Actions > Site Settings > Site content types
2. Select the "Document" content type, remove the earlier created "LookupColor" column from content type and its all derived content type.
3. Go to Site Actions > Site Settings > Site columns
4. Delete the earlier created "LookupColor" column from site collection.
5. When we go to document library and Library Settings > Columns still earlier created column is seen in document library its internal name "LookupColor"
Part II) : Recreate the a new column lookup column with same name
1. Go to Site Actions > Site Settings > Site content types > select Document content type.
2. Create a new lookup column name "LookupColor" based on "ColorList" list in site collection.(its internal column name is "LookupColor")
3. As Content type is already added to document library the newly recreated column "LookupColor also added to document library which having internal name as ("LookupColor0")
The column internal name present in the site collection and Document content type is "LookupColor", whereas the column name in document library is "LookupColor0. When we go to document library settings two column are shown in columns list one having internal name "LookupColor" and other having "LookupColor0". When we select the Document Content type from document library then "LookupColor0" is associated with "Document" content type. Which is different than one added to content type from site collection.
When I try to find "LookupColor0" column field by internal name using Web.Fields.GetField in site collection I am not able to get the field for same column.