Skip to main content
awesoon's user avatar
awesoon's user avatar
awesoon's user avatar
awesoon
  • Member for 9 years, 2 months
  • Last seen more than a month ago
comment
comment
Retrieving changed rows only from a table with 10^7 rows
Some notes about BETWEEN - this does not matter in my case. Selecting +-1 row at the beginning or the end of a range will not break the algorithm. Thank you for pointing it out, though :)
awarded
comment
Retrieving changed rows only from a table with 10^7 rows
Thank you for the answer! Yes, I definitely missed the obj_id = 42 part in the sub query
comment
Retrieving changed rows only from a table with 10^7 rows
I suppose, sub query should also contain p.obj_id = 42 condition. Works like a charm, thank you! One more question: is there any neat way to select one row, when all the rows contains the same data? Your query returns zero rows in this case: sqlfiddle
awarded
revised
Loading…
awarded
revised
Loading…
Loading…
awarded
awarded