here"s the thing. I have a table called list, and the fields used in this operation are updated_at and grab.
updated_at is the last update time.
grab represents whether the information is crawled or not. A value of 1 means it is crawled, and a value of 0 means it is published by users of this site.
now I want to take the latest data and show it to users, but I hope the information posted on this site is at the top of the list. The strategy is that the information with a grab of 1 is the same as the ranking of the information released by this site ten days ago.
how to write this sql statement?
ps: result set grab = 1 and grab = 0 are merged into one set, and the result set cannot be separated. For example, the ranking released by users of this site 5 days ago is higher than that of the latest crawl, but the ranking of the latest crawl is higher than that released locally 11 days ago, and the ranking released by this site 12 days ago is higher than that of 5 days ago, rather than ranking the local and crawling separately.