Viewing 15 posts - 241 through 255 (of 304 total)
Jeff Moden (10/10/2008)
ggraber (10/10/2008)
October 13, 2008 at 6:08 am
Shree (10/9/2008)
Jerry can you help me out to arrange them in one column?
This would get the CSV
DECLARE @Cities TABLE
(
State VARCHAR(20)
,City VARCHAR(20)
)
INSERT INTO @Cities
SELECT 'Connecticut','Hartford'
UNION ALL SELECT 'Connecticut','Stamford'
UNION ALL SELECT 'Connecticut','New...
October 10, 2008 at 11:35 am
Jeff Moden (10/8/2008)
ggraber (10/8/2008)
I just presented this concept at work using your split csv example.
I was just trying to think what...
October 10, 2008 at 7:29 am
I guess the question is that a while loop has a dynamic number of iterations based on the length of the parameter.
You don't have that kind of flexibility with a...
October 8, 2008 at 8:00 am
An article on this topic would be really cool, Jeff.
I just presented this concept at work using your split csv example.
I was just trying to think what other examples I...
October 8, 2008 at 7:48 am
Here's how to do it with UNPIVOT.
Please note that I only used part of the table definition for this example.
CREATE TABLE #mgr_calc
(
sID ...
October 8, 2008 at 7:39 am
Does this work for you?
SELECT TM.SrcId AS Source
,TD.SrcId AS Destination
,TD.Category
...
October 6, 2008 at 11:04 am
Here's how to get the destination CabinetID. But I'm not sure about the source.
Why doesn't TransferMaster have a Category?
Can you please post a sample result set?
SELECT TM.SrcId AS Source
,TD.SrcId AS...
October 6, 2008 at 9:05 am
If there really is no relationship between the tables then does that mean that the data in each field of each row of the final table is not related to...
October 6, 2008 at 8:05 am
clint_pow (10/3/2008)
If I will do the MAX(Price), the data will get the MAX(Value) of the field, example
1 4
1 5
2 ...
October 4, 2008 at 6:34 pm
I was thinking something like this.
But it is not tested because you have not provided any sample data. 🙂
Also, keep in mind that you can later join on the...
October 3, 2008 at 12:33 pm
clint_pow (10/2/2008)
Sorry I mean row if you take you example it will take like this :
DocNum Price
1 ...
October 3, 2008 at 6:44 am
Rich96 (10/2/2008)
So true Vladen. I'm having to forge ahead with the ASSumption that it won't change.....
You really do not have to (and should not) go with that assumption....
October 3, 2008 at 6:29 am
Viewing 15 posts - 241 through 255 (of 304 total)