LeonelSanchezJr
Programmer
When I run the query below, I get 295 rows back. However, when I run my Update query I only get 158 rows updated. What am I doing wrong?
select hlpdsk_all.cproblemnum, hlpdsk_all.ccallnot
es, callnotes.ccallnotes childrecord
from hlpdsk_all
left join helpdesk on hlpdsk_all.cproblemnum = helpdesk.cproblemnum
left join callnotes on helpdesk.icallnoteskey = callnotes.id
where hlpdsk_all.drecorded >= '05/23/01' and hlpdsk_all.drecorded < '05/24/01'
UPDATE QUERY BELOW
UPDATE Callnotes SET cCallNotes = c.cCallNotes
FROM Callnotes a
INNER JOIN HelpDesk b
ON a.ID=b.icallnoteskey
and b.drecorded >= '05/23/01' and b.drecorded
<'05/24/01'
INNER JOIN Hlpdsk_All c
ON b.cproblemnum=c.cproblemnum
WHERE c.drecorded >= '05/23/01' and c.drecorded
<'05/24/01'
select hlpdsk_all.cproblemnum, hlpdsk_all.ccallnot
es, callnotes.ccallnotes childrecord
from hlpdsk_all
left join helpdesk on hlpdsk_all.cproblemnum = helpdesk.cproblemnum
left join callnotes on helpdesk.icallnoteskey = callnotes.id
where hlpdsk_all.drecorded >= '05/23/01' and hlpdsk_all.drecorded < '05/24/01'
UPDATE QUERY BELOW
UPDATE Callnotes SET cCallNotes = c.cCallNotes
FROM Callnotes a
INNER JOIN HelpDesk b
ON a.ID=b.icallnoteskey
and b.drecorded >= '05/23/01' and b.drecorded
<'05/24/01'
INNER JOIN Hlpdsk_All c
ON b.cproblemnum=c.cproblemnum
WHERE c.drecorded >= '05/23/01' and c.drecorded
<'05/24/01'