Viewing 15 posts - 11,911 through 11,925 (of 15,379 total)
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
The point of ddl and sample data is to make it easy for the people helping you. You didn't post ddl or sample data in a consumable format. Think create...
May 21, 2012 at 12:43 pm
Hi and welcome to SSC!!! I will be happy to help. The first and most obvious thing is that you do not need a loop for this. I can't give...
May 21, 2012 at 12:11 pm
Viewing 15 posts - 11,911 through 11,925 (of 15,379 total)