Viewing 15 posts - 11,911 through 11,925 (of 15,381 total)
Siten0308 (5/21/2012)
.... HOLY crap your good.... no seriously, thats exactly what i need thank you :):-D
You are welcome and thanks for letting us know. Hopefully now you see the importance...
May 21, 2012 at 3:29 pm
Like this?
insert #Match
select c.id as CustomerId, p.id as PersonID, 'FirstName' as MatchType
from #Customers c
join #Person p on c.firstname = p.firstname
union
select c.id as CustomerId, p.id as PersonID, 'LastName' as...
May 21, 2012 at 3:16 pm
So you want the cartesian that I explained about 40 posts ago? Give me about 2 minutes and I can knock this out.
May 21, 2012 at 3:13 pm
Siten0308 (5/21/2012)
using the second row insert of match as an example:
Insert #Match
select '1', '6', 'firstname' union all
first number 1, comes from table Customer, second number...
May 21, 2012 at 3:04 pm
Lynn Pettis (5/21/2012)
Siten0308 (5/21/2012)
insert Match2
select '1', '1','firstname' union all
select '1', '6', 'firstname' union all
select '4', '2', 'address' union...
May 21, 2012 at 2:56 pm
hehe you are pretty close. Thanks for recapping all the scripts and such that will certainly help. If you just create inserts for your match table based on the sample...
May 21, 2012 at 2:09 pm
No what we keep asking for is for you to tell us what those values are. Not pseudocode, not an explanation of how to do it. Notice how the sample...
May 21, 2012 at 1:41 pm
toddasd (5/21/2012)
Select ISNULL(Item, ' ') from ITEMS
Or are you trying to find values that...
May 21, 2012 at 1:25 pm
Better, we now have 2 out of 3 things we need. We have ddl and sample data. What is the desired output from this sample data. You said something about...
May 21, 2012 at 1:14 pm
Siten0308 (5/21/2012)
May 21, 2012 at 1:10 pm
Pretty hard to tell without anything solid to look at but I think you could make your query a bit simpler like this:
select case when ITEM is null then '...
May 21, 2012 at 1:07 pm
Hard to say without ddl but if the ID is included in the join condition that should work and not get cartesians.
May 21, 2012 at 1:01 pm
Is there something that DENYs select on that object. DENY will always trump GRANT.
May 21, 2012 at 12:58 pm
dkschill (5/21/2012)
May 21, 2012 at 12:51 pm
Siten0308 (5/21/2012)
Match table
Customerid ...
May 21, 2012 at 12:45 pm
Viewing 15 posts - 11,911 through 11,925 (of 15,381 total)