Viewing 15 posts - 3,796 through 3,810 (of 8,731 total)
This is similar to the option previously posted by Anthony using the DelimitedSplit8k.
WITH CTE AS
(
SELECT *, MAX(ItemNumber) OVER(PARTITION BY hid) - 1 AS thisItem
FROM #test
CROSS APPLY dbo.DelimitedSplit8K (hid,',')
)
SELECT Item
FROM...
November 17, 2015 at 2:07 pm
Just if anyone wants an example that is not as complex as the one from Drew (that problem required a more complex solution than this one).
WITH CTE AS(
...
November 17, 2015 at 1:26 pm
If you were working on a 2012+ version, you could use try_parse, try_convert or try_cast.
Otherwise, you need to do it manually.
SELECT *
FROM tbl
WHERE CASE WHEN Column1 NOT LIKE...
November 17, 2015 at 1:14 pm
RVO (11/17/2015)
Luis,So what is the solution
for
The estimated row counts are way off
UPDATE STATISTICS ?
That should correct that issue, unless is code related. You still have to work on that...
November 17, 2015 at 12:01 pm
kaj (11/17/2015)
UPPER(LTRIM(RTRIM(FIS2_Account_Shared.TD_LEGAL_ENTITY))) = UPPER(LTRIM(RTRIM(FIS2_Acct_Lgl_Ent.MNEMONIC)))
OR UPPER(LTRIM(RTRIM(FIS2_Account_Shared.TD_LEGAL_ENTITY))) = UPPER('TD SECURITIES CANADA')
In my limited experience...
November 17, 2015 at 11:53 am
Ed Wagner (11/17/2015)
Sean Lange (11/17/2015)
Luis Cazares (11/17/2015)
Lynn Pettis (11/17/2015)
OMGStep 1: Prepare 3 envelopes. :hehe:
ROFL.
I thought step 3 was to prepare 3 envelopes.
It's too late for that. Unless someone wants to...
November 17, 2015 at 11:47 am
RVO (11/17/2015)
Luis,So what should I do about
". . . The estimated row counts are way off, but I'm not sure if they're like that from the non-equi joins.."
If you...
November 17, 2015 at 11:43 am
RVO (11/17/2015)
Hello Luis,"....No, I'm just saying that if it's a cross join, you should write it as such..."
Do you mean you would lie to see
SELECT .....
FROM
a
CROSS JOIN
b
style ?
Yes, it's...
November 17, 2015 at 10:38 am
Lynn Pettis (11/17/2015)
OMG
Step 1: Prepare 3 envelopes. :hehe:
November 17, 2015 at 10:23 am
SoHelpMeCodd (11/17/2015)
November 17, 2015 at 6:58 am
ChrisM@Work (11/17/2015)
November 17, 2015 at 4:15 am
Phil Parkin (11/16/2015)
There was a problem with your final LIKE. '%%' does not mean anything more than '%', which in turn means anything or nothing.
Anything or nothing that is not...
November 16, 2015 at 1:33 pm
Empty space in data files won't hurt performance, unless the disk is full and that prevents OS operations. Growing a file is expensive, so you must plan to leave free...
November 16, 2015 at 1:28 pm
If I understand correctly, you want something like this:
SELECT DISTINCT ProjectName AS Project
FROM Timesheet
WHERE (@ProjectType = 'P25, R&D' AND (ProjectName LIKE '2%' OR
...
November 16, 2015 at 1:22 pm
DonlSimpson (11/16/2015)
Ed Wagner (11/16/2015)
anthony.green (11/16/2015)
djj (11/16/2015)
anthony.green (11/16/2015)
Ed Wagner (11/16/2015)
SithDark
Chocolate
Bean
Coffee
Java
Jabba
November 16, 2015 at 12:42 pm
Viewing 15 posts - 3,796 through 3,810 (of 8,731 total)