I have two SQL tables that hold zipcode info. One is for US and one is for Canada. I am working on a stored procedure that has a parameter @city, and then returns the City, State, and Zip from each table
. I can get it working for one table or the other, but not both (unless I return 6 fields, one US.City then Can.City).
I really want to know if there is a way to load all info returned from both tables into common field names, so that I could display 3 columns instead of 6.
Any help would be appreciated... thanks in advance.
Code:
WHERE (City = @city)
I really want to know if there is a way to load all info returned from both tables into common field names, so that I could display 3 columns instead of 6.
Any help would be appreciated... thanks in advance.