|
大家关心一下彩票把:
1. 删除7个区域中4个区域没有号码的记录:
DELETE all35.n2, all35.n3, all35.n4, all35.n5
FROM all35
WHERE (((all35.n2)<=5) AND ((all35.n3)>=16) AND ((all35.n4)<=20) AND ((all35.n5)>=26));
2. 删除总和小于70或者大于180:
DELETE ALL35.n1, ALL35.n2, ALL35.n3, ALL35.n4, ALL35.n5, ALL35.n6, ALL35.n7, [n1]+[n2]+[n3]+[n4]+[n5]+[n6]+[n7] AS tt
FROM ALL35
WHERE ((([n1]+[n2]+[n3]+[n4]+[n5]+[n6]+[n7])>=158));
3.删除递增数多于2:
DELETE ALL35.n1, ALL35.n2, ALL35.n3, ALL35.n4, ALL35.n5, ALL35.n6, ALL35.n7, IIf(Val([n2])-Val([n1])=Val([n3])-Val([n2]),1,0)+IIf(Val([n3])-Val([n2])=Val([n4])-Val([n3]),1,0)+IIf(Val([n4])-Val([n3])=Val([n5])-Val([n4]),1,0)+IIf(Val([n5])-Val([n4])=Val([n6])-Val([n5]),1,0)+IIf(Val([n6])-Val([n5])=Val([n7])-Val([n6]),1,0) AS tt
FROM ALL35
WHERE (((IIf(Val([n2])-Val([n1])=Val([n3])-Val([n2]),1,0)+IIf(Val([n3])-Val([n2])=Val([n4])-Val([n3]),1,0)+IIf(Val([n4])-Val([n3])=Val([n5])-Val([n4]),1,0)+IIf(Val([n5])-Val([n4])=Val([n6])-Val([n5]),1,0)+IIf(Val([n6])-Val([n5])=Val([n7])-Val([n6]),1,0))>2));
4. 删除偶数为1个或者7个:
DELETE ALL35.n1, ALL35.n2, ALL35.n3, ALL35.n4, ALL35.n5, ALL35.n6, ALL35.n7, Abs(Int(Val([n1])/2)*2-Val([n1]))+Abs(Int(Val([n2])/2)*2-Val([n2]))+Abs(Int(Val([n3])/2)*2-Val([n3]))+Abs(Int(Val([n4])/2)*2-Val([n4]))+Abs(Int(Val([n5])/2)*2-Val([n5]))+Abs(Int(Val([n6])/2)*2-Val([n6]))+Abs(Int(Val([n7])/2)*2-Val([n7])) AS t1
FROM ALL35
WHERE (((Abs(Int(Val([n1])/2)*2-Val([n1]))+Abs(Int(Val([n2])/2)*2-Val([n2]))+Abs(Int(Val([n3])/2)*2-Val([n3]))+Abs(Int(Val([n4])/2)*2-Val([n4]))+Abs(Int(Val([n5])/2)*2-Val([n5]))+Abs(Int(Val([n6])/2)*2-Val([n6]))+Abs(Int(Val([n7])/2)*2-Val([n7])))=1 Or (Abs(Int(Val([n1])/2)*2-Val([n1]))+Abs(Int(Val([n2])/2)*2-Val([n2]))+Abs(Int(Val([n3])/2)*2-Val([n3]))+Abs(Int(Val([n4])/2)*2-Val([n4]))+Abs(Int(Val([n5])/2)*2-Val([n5]))+Abs(Int(Val([n6])/2)*2-Val([n6]))+Abs(Int(Val([n7])/2)*2-Val([n7])))=7));
5.1 尾数统计查询:
SELECT all35.n1, all35.n2, all35.n3, all35.n4, all35.n5, all35.n6, all35.n7, Right(Str([n1]),1) AS t1, Right(Str([n2]),1) AS t2, Right(Str([n3]),1) AS t3, Right(Str([n4]),1) AS t4, Right(Str([n5]),1) AS t5, Right(Str([n6]),1) AS t6, Right(Str([n7]),1) AS t7
FROM all35;
5.2 删除尾数相同:
|
|