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)
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
Rails is breaking SQL query when modifying order
Context
We have a Rails app that is retrieving conversations with the following raw SQL query:
SELECT sub.*,
profiles.status AS interlocutor_status
FROM (
SELECT DISTINCT ON (conversations.id...

lkartono
Votes: 0
Answers: 1
SQL - Ordering table with subquery for select
I am trying to do ordering on query with subquery for a name from uuid. Let's have those two tables in MySQL:
bans:
id
uuid
time
reason
1
c6b8eade-7db9-345b-b838-8f8361552cf5
1642369382
Test
...

Baterka
Votes: 0
Answers: 2
select the most recent item from mysql
i need to select. the most recent item from mysql table. I found several suggestions but nobody was the right one for my case.
Just to recap i have a table with
id, itemnr, date_edited
I tried with:
s...
marco77sa
Votes: 0
Answers: 0