ISNULL In SQL
Please post DD_L, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. If you know how, follow ISO-11179 data element...
View ArticleISNULL In SQL
Take a look at these blogs that explain possible performance problems with offered solutions:Do you use ISNULL(...). Don't, it does not perform - short blog by Denis GoboDynamic Search Conditions in...
View ArticleISNULL In SQL
IF ISNULL(@ZipCode,'')<>'' AND ISNULL(@NCode,'')<>'' BEGIN SELECT * FROM ZipCode WHERE ZipCode like '%' + @zipcode + '%' AND code like '%' + @ncode + '%' ENDPlease mark as answer if this...
View ArticleISNULL In SQL
select * from ZipCode where isnull(ZipCode,' ') like '%' + @zipcode + '%' and isnull(code,' ') like '%' + @ncode + '%'Many Thanks & Best Regards, Hua Min
View ArticleISNULL In SQL
may this help :select * from ZipCode where (@zipcode IS NULL OR ZipCode like '%' + @zipcode + '%') and (@ncode IS NULL OR code like '%' + @ncode + '%')Please vote if you find this posting was helpful...
View ArticleISNULL In SQL
select * from ZipCode where ZipCode like '%' + @zipcode + '%' and code like '%' + @ncode + '%'my issue is if the @Zipcode is null i should 't be running the satement and for the same for @ncode so...
View Article
More Pages to Explore .....