Viewing 15 posts - 331 through 345 (of 1,923 total)
Is BadgeType = Reader in your sample data?
I dont seem to understand what is in your sample data and whats in your expected result. Also, can you be more...
March 27, 2012 at 9:35 am
Can you show us the expected output out of the sample data you provided?
March 27, 2012 at 9:00 am
jason 93512 (3/24/2012)
of all trades, master of few.. =)
LOL.. I'm master of NONE :w00t:
March 25, 2012 at 12:40 am
Try this chunk instead
,(select
CASE
WHEN cptcode LIKE '%99281%' then '1'
WHEN cptcode LIKE '%99282%' then '2'
WHEN cptcode LIKE '%99283%'...
March 24, 2012 at 6:32 pm
Slightly improved version
DECLARE @Tab TABLE
(
column1 INT
,column2 VARCHAR(2000)
)
INSERT INTO @Tab
SELECT 1, 'wo 99808944.PDF|F|Q:\Links\WO...
March 23, 2012 at 1:59 pm
knakka 14475 (3/23/2012)
This is almost close, except for one document is missing 99808944.PDF from the first column and also duplicates...Thank you for the quick response
That is because the 99808944.PDF did...
March 23, 2012 at 1:53 pm
How about this?
DECLARE @Tab TABLE
(
column1 INT
,column2 VARCHAR(2000)
)
INSERT INTO @Tab
SELECT 1, 'wo 99808944|F|Q:\Links\WO...
March 23, 2012 at 12:44 pm
defiantclass (3/23/2012)
I will try that, thank you. I think Union is what I was looking for.
Union ? Why union? I gave a cross-tab type query. The UNION ALL is for...
March 23, 2012 at 11:49 am
Without a predefined pattern, it is tough to find out the file names.
It is possible though, if we have the list of file extensions, but still, the whole string should...
March 23, 2012 at 11:48 am
This?
DECLARE @Tab TABLE
(
Src VARCHAR(10)
,Category VARCHAR(3)
,Amount DECIMAL(10,2)
)
INSERT INTO @Tab
SELECT 'Source...
March 23, 2012 at 11:23 am
Jeff Moden (3/22/2012)
ColdCoffee (3/22/2012)
Order by NEWID and take the TOP 400 🙂
I have to say that I agree with that. If the rows are in the random order provided...
March 22, 2012 at 11:13 pm
Yep
Select '(' + LastName + ') , ' + FirstName AS FullName From Table
Select FirstName + ' (' + LastName + ')' AS FullName From Table
March 22, 2012 at 6:17 pm
No Need to join.. Just the concatenation operator "+" to concatenate them
Like
Select FirstName + LastName AS FullName From Table
March 22, 2012 at 5:58 pm
Viewing 15 posts - 331 through 345 (of 1,923 total)