ojo_dejunk <- function() {
connect_ojo(username = "admin")
dbSendQuery(ojo_db, "
DELETE FROM oscn_lastupdate
WHERE oscn_lastupdate_id NOT IN (SELECT oscn_ci_id FROM oscn_caseinfo);")
dbSendQuery(ojo_db, "
DELETE FROM odcr_lastupdate
WHERE odcr_lastupdate_id NOT IN (SELECT odcr_ci_id FROM odcr_caseinfo);")
disconnect_ojo()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.