有这么一些数据
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | // 表test {name: "billy", date: "2019-01-01"} {name: "billy", date: "2019-01-03"} {name: "billy", date: "2019-01-04"} {name: "billy", date: "2019-01-08"} {name: "billy", date: "2019-01-10"} {name: "billy", date: "2019-01-21"} {name: "billy", date: "2019-01-25"} {name: "billy", date: "2019-01-26"} {name: "rose", date: "2019-01-01"} {name: "rose", date: "2019-01-03"} {name: "rose", date: "2019-01-06"} {name: "rose", date: "2019-01-07"} {name: "mike", date: "2019-01-01"} {name: "mike", date: "2019-01-08"} {name: "mike", date: "2019-01-20"} |
其中
billy 01-01 01-03 01-04符合条件
rose 01-03 01-06 01-07符合条件
mike 不符合条件
请问下怎么写sql语句,或者类似的思路?