python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to count changes within each column and in SQL
This is how the table is looking like:
id
city
address
steps
date
1
null
null
a
2021-11-01
1
NY
null
b
2021-11-04
1
Chicago
null
c
2021-11-05
2
SF
33, ABC colony
x
2021-12-01
2
SF
33, ...
trojan horse
Votes: 0
Answers: 2
SQLite - calculate percentage increase in values of a numeric column
I am interested in getting the % increase or decrease of the values in one column with respect to the previous value.
Can someone please advice how I should do this?
Thanks
This is what my table looks...

Benjamin Lopez
Votes: 0
Answers: 2
Finding the continuous windows of length k grouped by ID
Given this
ID
rownum
Value
100
1
false
100
2
false
100
3
true
100
4
false
100
5
false
100
6
false
100
7
true
100
8
false
100
9
false
101
1
false
101
2
false
101
3
false
...
Pruthivi Raj
Votes: 0
Answers: 2
Window function acts not as expected when I use Order By (PySpark)
So I have read this comprehensive material yet I don't understand why Window function acts this way.
Here's a little example:
from pyspark.sql import SparkSession
import pyspark.sql.functions as F
fro...

Vlad Vlad
Votes: 0
Answers: 1