Click here to Skip to main content
15,900,254 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I was just confused so ignore it.
Posted
Updated 31-Dec-13 23:17pm
v2

Trivially, but not in any way we can describe meaningfully based on your post. One way would be to store the starting date and calculate the salary based on time passed since the starting date. But your question as it stands is vague and meaningless. How do you WANT to increase it ? What have you tried ? What is your table structure ? What are the rules you want to impliment. Even if you can't be bothered trying to do this for yourself before asking for help, no-one can help you without more information.

Based on your comments, I think selecting your data in a cte and then treating it like a list you want to find islands in, will help.


[^]

Is a great article on finding islands. I don't see how this relates to your original question.

[^]

Covers selecting a range to a single string. What you want is a little crazy IMO. Your better off doing this in code.
 
Share this answer
 
v3
Comments
Christian Graus 1-Jan-14 4:57am    
I answered this above. I have no clue how this relates to increasing salaries. Please update your question so it's the one you're asking now.
Christian Graus 1-Jan-14 5:03am    
I did. What's the problem ?
Christian Graus 1-Jan-14 5:11am    
So, use the solution to find gaps that I posted above.
Christian Graus 1-Jan-14 5:04am    
Ask a new question if you have a new question ( not now, bit in general )
Christian Graus 1-Jan-14 5:07am    
Are you confused ? I added the answer to my original answer, so you could see the links and click on them. It's also possible to use XML to turn the set of days in to a single string.
That's really annoying. You asked two questions and I answered them both. Your edit pollutes the site by robbing my answer of usefulness to others. Why did you ask two questions, and refuse to try to solve either ?
 
Share this answer
 
Comments
thatraja 1-Jan-14 7:46am    
Annoying thing is he deleted all of his comments :|
Christian Graus 1-Jan-14 17:27pm    
Yes, wildly antisocial. I still tried to help, but he did not reply again.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900