8 lines
165 B
MySQL
8 lines
165 B
MySQL
|
SELECT
|
||
|
cache_name,
|
||
|
downloads,
|
||
|
max_downloads,
|
||
|
julianday('now') - julianday(uploaded) AS age
|
||
|
FROM records
|
||
|
WHERE downloads >= max_downloads OR age > 5;
|