ousoonerjoe
Programmer
Using SQL Server 2008.
We have some legacy accounting tables that contain Amt1, Amt2, Amt3,...Amt15. We need to search for a value across all 15 fields. Besides typing out all 15 variations, is there a simpler way to return all rows that contain the given value in any column of the table?
Thank you.
--------------------------------------------------
Bluto: What? Over? Did you say "over"? Nothing is over until we decide it is! Was it over when the Germans bombed Pearl Harbor? No!
Otter: Germans?
Boon: Forget it, he's rolling.
--------------------------------------------------
We have some legacy accounting tables that contain Amt1, Amt2, Amt3,...Amt15. We need to search for a value across all 15 fields. Besides typing out all 15 variations, is there a simpler way to return all rows that contain the given value in any column of the table?
Thank you.
--------------------------------------------------
Bluto: What? Over? Did you say "over"? Nothing is over until we decide it is! Was it over when the Germans bombed Pearl Harbor? No!
Otter: Germans?
Boon: Forget it, he's rolling.
--------------------------------------------------