Snippets Collections
export const scrollTo = (distance) => {
    window.scrollTo({
        top: distance,
        behavior: 'smooth'
    })
}

export const scrollToTop = () => scrollTo(0)
select "field1", "field2", count(*)
from "tableName"
group by "field1", "field2"
HAVING count(*) > 1

/*
Client callable script include used for filtering sys_user lists
to identify duplication email users
name: duplicateEmail
active: true
client callabe: true
*/
function duplicateEmail() {
    var xx = new GlideAggregate('sys_user');
    xx.addAggregate('COUNT', 'email');
    xx.addHaving('COUNT', 'email', '>', '1');
    xx.query();
    var answer = new Array();
    while (xx.next()) {
        answer.push(xx.getValue('email'));
    }
    return answer;
}
star

Wed Jan 19 2022 14:10:03 GMT+0000 (UTC)

#javascript #remove #duplicate
star

Mon Jan 03 2022 02:32:45 GMT+0000 (UTC) https://stackoverflow.com/

#sql #postgres #duplicate
star

Tue Jan 26 2021 15:41:52 GMT+0000 (UTC) https://community.servicenow.com/community?id

#servicenow #javascript #duplicate

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension