Jump to content

Database Search Query To Return The Matching Column


Guest Andrew Buchan

Recommended Posts

Guest Andrew Buchan

I have an Application which queries multiple tables in a SQL Server 2005 Database.For example I have 3 tables, for simplicity sake lets say the tables are called t1, t2 and t3And in those tables I am checking columns for a given value, lets say the columns are called c1 and c2.So, I want to return an extra column/field that states the name of the column which contains the given search value.Is this possible in a query?

Link to comment
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...