1。用户案例:如果AppTrack表中不存在具有相同属性(名称,电话,电子邮件)的记录,则将Lead表中的EXIT字段更新为“ True”。
铅桌
LeadId Name phone Email Date Exit
1 A 1234 A@gmail.com 1st-aug
应用跟踪
AppID LeadID Name Phone Email Date
输出:
铅桌
LeadId Name phone Email Date Exit
1 A 1234 A@gmail.com 1st-aug True
铅桌
LeadId Name phone Email Date Exit
1 A 1234 A@gmail.com 1st aug True
2 A 1234 A@gmail.com 3rd aug
应用跟踪:
AppID LeadID Name Phone Email Date
x 1 A 1234 A@gmail.com 2nd aug
输出:
铅桌:
LeadId Name phone Email Date Exit
1 A 1234 A@gmail.com 1st aug True
2 A 1234 A@gmail.com 3rd aug false
3。用户案例:如果在AppTrack表中存在具有相同属性(名称,电话号码,电子邮件)的记录,并且Leaddate和Apptrack日期的日期差> 14,则将Lead表中的EXIT字段更新为“ true”。 ”(始终与最近的记录进行比较)
铅桌:
LeadId Name phone Email Date Exit
1 A 1234 A@gmail.com 1st aug True
2 A 1234 A@gmail.com 3rd aug false
3 A 1234 A@gmail.com 20th aug
AppID LeadID Name Phone Email Date
x 1 shweta 1234 shweta@gmail.com 2nd aug
y 2 shweta 1234 shweta@gmail.com 4th aug
铅桌:
LeadId Name phone Email Date Exit
1 A 1234 A@gmail.com 1stAug True
2 A 1234 A@gmail.com 3rdAug false
3 A 1234 A@gmail.com 20thAug True