November 6, 2008 at 2:53 pm
I'm doing a CONVERT in my join, to the same column that's getting inserted into a table. My convert only applies to the join, right ? It doesn't affect the data being inserted ? Since #CIFHold.RWA_ID is defined as decimal, I should be ok.
CREATE TABLE #CIFHold
(Call_ID int,
RWA_ID decimal (10,0),
ProducerID char(6),
StateCd char(2))
INSERT INTO #CIFHold
SELECT c.call_id, c.RWA_ID, l.ProducerID, l.StateCdFROM Call_Detail c
JOIN Leads l on convert(char(20), c.RWA_ID) = l.RWA_ID
JOIN Leads_CE lc ON lc.RWA_ID = c.RWA_ID
JOIN CIF_Detail cd ON c.Call_ID = cd.Call_ID
WHERE c.Call_ID = @Call_ID
Dumb question, I know, but I had a quick panic attack after some user errors referencing the same field.
November 6, 2008 at 8:33 pm
Yes it only applies to the join. The data is not changed.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply