I'm creating a .asp page in which a customer will enter his address info (house number, street direction, street name, street type, post direction, apartment, and zip). The page will then attempt to verify whether or not the address exists in a view via a Select statement on all of these fields.
The problem I'm running into is that not everyone will be entering information for all of the fields. For example, 123 Main ST, 71230 would only have a house number(123), street name (Main), street type (ST), and zip (71230). When this occurs, the Select statement won't return any rows since it's still searching on all fields and some of the fields contain Null values.
Is there any way around this other than to create a different Select statment for each scenerio?
The problem I'm running into is that not everyone will be entering information for all of the fields. For example, 123 Main ST, 71230 would only have a house number(123), street name (Main), street type (ST), and zip (71230). When this occurs, the Select statement won't return any rows since it's still searching on all fields and some of the fields contain Null values.
Is there any way around this other than to create a different Select statment for each scenerio?