This could be somewhat of a programming question (i hope not).. I am writting a stored procedure and i have 4 values being passed into it.. The values could be null - which i check for.. I need to write a query that select * from tableName where column = column..
For example:
Name = 'Test'
Status = 'Active'
State = ""
City = ''
Now i need to find out what is null and not null - then build my query to add in the where clause of the values that were passed in that were not null..
Does this make senes?
So in the example above:
select * from tableName where name = 'test' and status='active'
Thanks
For example:
Name = 'Test'
Status = 'Active'
State = ""
City = ''
Now i need to find out what is null and not null - then build my query to add in the where clause of the values that were passed in that were not null..
Does this make senes?
So in the example above:
select * from tableName where name = 'test' and status='active'
Thanks