Forum Discussion
Kreggar
Sep 18, 2025Occasional Reader
Finding Possible Matches to a Solution
Hello Everyone, I'm wondering if anyone has any tricks or formulas that I can use to find any possible combination of numbers that will create the desired solutions I'm looking for. Take a look at t...
peiyezhu
Sep 19, 2025Bronze Contributor
//select rowid,* from Sheet1;
with recursive D as (
select f01 E,rowid old_rowid,1 level,f01 和,rowid x from Sheet1 union all select E||'+'||f01,Sheet1.rowid,D.level+1,f01+和,x||','||rowid from Sheet1,D where rowid>old_rowid and round(f01+和,2)<=40)
select row_number() over () no,* from D where round(和,2)=40 limit 500;