Skip to content
Advertisement

Tag: tsql

Get Row based off Date and previous row

I’ve got the following sample data and what I’m trying to do is based off the DateChanged value is get the appropriate Amount from the linked table along with the previous row. The results would then display as How could this be done? What I have so far is this but wondering is there’s a better way Answer Just use

Column to see Completion

I’m trying to come up with a way to add an extra column to this result-set that is a bit value of 1/0if the particular owner has all the rows as not null. The column would be: Answer You can use window functions:

Advertisement