Skip to content
Advertisement

How do I get a space in my property name?

I have the following query: The problem is that I make the property ProjeAdı in the Select clause. I want the property to match the sql column, Proje Adı (note the space). How can I do that? Answer aliases cant have spaces between them , just like any variable name cant have white space, they are considered as bad naming

sql SUM: change null with 0

I have a query like this: And another like this: I want to select from those tables, with condition But I also want to change the null record which appears with 0, I’ve tried COALESCE but it still doesn’t give me the right result. Answer In general you would first set NULL values to 0 and then SUM them: Otherwise

T-SQL sort integer values

I’d like to create a procedure which later will have 5 integer parameters as an input. Within these procedure I want to sort those integer values in ascending order and later update a table. I did it …

Advertisement