python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
MYSQL - not distinct but eliminate
From a SELECT I get this result:
u.id, c.id
101, 33
104, 57
105, 51
A UNION SELECT DISTINCT finds following records:
u.id, c.id
104, 57
The final result is:
u.id, c.id
101, 33
104, 57
105, 51
But I wa...
Jørn Vase
Votes: 0
Answers: 0
Why is the DELETE statement using psycopg is not working?
I am working on a delete request. All of my functions are working, but especially this one is not. Actually, it runs, and using my insomnia looks like the row was deleted, but when I get all rows it i...

user17841947
Votes: 0
Answers: 0
Merge duplicate table rows than delete duplicates without timeout
I have the following (simplified) table structure:
table_user_book
id | book_id | user_id | page
---+---------+---------+------
1 | b1 | c1 | 16
2 | b1 | c1 | 130
3 | b2 |...
hitech95
Votes: 0
Answers: 1
Complicated SQL for update and delete on a large table
I am having a complicated SQL problem in PostgreSQL.
Suppose I have a large table called 'selling_prices'. It contains around 19 million rows. I want to remove some duplicate rows and also update some...
hakuna_matata
Votes: 0
Answers: 2