This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select * from | |
(select callTime,callType,employee,phoneNumber,count(*) as n from table2 group by callTime,callType,employee,phoneNumber) x | |
where x.n > 1; | |
delete a | |
from leads a | |
LEFT JOIN | |
( | |
SELECT MIN(ID) ID,phone |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data = [ | |
{ "name" : "ABC", "parent":"DEF", }, | |
{ "name" : "DEF", "parent":"null" }, | |
{ "name" : "new_name", "parent":"ABC" }, | |
{ "name" : "new_name2", "parent":"ABC" }, | |
{ "name" : "Foo", "parent":"DEF"}, | |
{ "name" : "Bar", "parent":"null"}, | |
{ "name" : "Chandani", "parent":"new_name", "relation": "rel", "depth": 3 }, | |
{ "name" : "Chandani333", "parent":"new_name", "relation": "rel", "depth": 3 } | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
ini_string = "'technews One lone dude awaits iPad 2 at Apple\x89Ûªs SXSW store" | |
res1 = " ".join(re.split("[^A-Za-z0-9]+", ini_string)) | |
print(res1) | |
if re.match("[^\t\r\n\x20-\x7E]+", ini_string): | |
print("found") | |
result = ini_string.encode().decode('ascii', 'replace').replace(u'\ufffd', '`') | |
result2 = ini_string.encode().decode("utf-8").replace(u"\x89Ûª", "`").encode("utf-8") |
NewerOlder