Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
cortpcl
Starting Member
4 Posts |
Posted - 2014-09-02 : 04:51:02
|
HI all,I have a dataset where i want to select the records that matches my input values. But i only want to try macthing a field in my dataset aginst the input value, if the dataset value is not NULL.I allways submit all 4 input values.@Tyreid, @CarId,@RegionId,@CarAgeGroupSo for the first record in the dataset i get a succesfull output if my input values matches RegionId and CarAgeGroup.I cant figure out how to create the SQl script for this SELECT?My datasetTyreId CarId RegionId CarAgeGroupNULL NULL 1084 265 35 1084 15 35 1084 1NULL 41 1085 NULL120 NULL NULL NULLNULL NULL 1084 265 NULL 1084 NULL |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2014-09-02 : 15:50:41
|
Given the sample data you provided, what should the SELECT return?Tara KizerSQL Server MVP since 2007http://weblogs.sqlteam.com/tarad/ |
|
|
|
|
|