Query to remove """" (incomplete notes) from old procs

For complex topics that regular users would not be interested in. For power users and database administrators.
Post Reply
User avatar
drtech
Posts: 1649
Joined: Wed Jun 20, 2007 8:44 am
Location: Springfield, MO
Contact:

Query to remove """" (incomplete notes) from old procs

Post by drtech » Mon Feb 18, 2008 10:18 am

Is there a query i could run to remove the """" from old proc notes that have built up? Some of our staff have been forgetting to delete these when typing in notes and now there are lots of extra ones that are showing up on the report I would like to just erase.
David Fuchs
Dentist - Springfield, MO
Smile Dental http://www.887-smile.com

User avatar
jordansparks
Site Admin
Posts: 5744
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Post by jordansparks » Mon Feb 18, 2008 11:24 am

Queries with quotes in them are always tricky to put together. On a TEST database, I would try some variants of the following query:
UPDATE procnote SET ProcCodeNote=REPLACE(ProcCodeNote, '""', '');
or
UPDATE procnote SET ProcCodeNote=REPLACE(ProcCodeNote, '\"\"', '');
or something like that. Please note that I have not tested the above queries. Running them in Navicat will be more informative since it will tell you how many rows were altered.
Jordan Sparks, DMD
http://www.opendental.com

Post Reply