Viewing 15 posts - 5,956 through 5,970 (of 10,144 total)
polkadot (7/31/2012)
... I need an alias for the column the WHERE STATEMENT generates...
The WHERE clause doesn't generate an output column. Ever.
There are four well-known ways to calculate running totals...
August 1, 2012 at 2:17 am
nguyennd (8/1/2012)
Koen Verbeeck (8/1/2012)
What's wrong with union?Since TSQL offers only union, intersect and except, any solution that I can think of right now involves union.
because performance, the tables A,B have...
August 1, 2012 at 2:10 am
dwain.c (7/31/2012)
SQLRNNR (7/27/2012)
SQL Kiwi (7/27/2012)
And people ask me why I don't post as much on SSC as I used to 🙁
Really unfortunate - I would love to see more from...
August 1, 2012 at 1:56 am
opc.three (8/1/2012)
New day (at least in this time zone, Mountain) so new word:Worth
Throw
August 1, 2012 at 1:47 am
Abu Dina (7/31/2012)
I've made the change and the function is working better now. 🙂
Going...
August 1, 2012 at 1:42 am
Abu Dina (7/31/2012)
Another question if you don't mind (you're going to hate me once this little project of mine is done! but if you're anywhere near the northwest then...
July 31, 2012 at 10:05 am
oolawole (7/31/2012)
...Any help?
Fix your sample data script which is incomplete and full of errors and your view definition which references a table which doesn't exist and I'd be glad to...
July 31, 2012 at 9:46 am
Here's another way:
-- ID of the first row of the dupeset is rn = 1, subsequent dupes have rn > 1
SELECT
ID,
NAME,
[Description],
Location,
StorageRef,
rn = ROW_NUMBER() OVER...
July 31, 2012 at 9:31 am
Abu Dina (7/31/2012)
Thanks Chris.Just to confirm. Is the FuzzyMatch_iTVF2k5 is a full implementation of http://research.microsoft.com/pubs/75996/bm_sigmod03.pdf ?
No - it's the closest online reference I could find at the time. The iTVF...
July 31, 2012 at 8:25 am
Hello and welcome to ssc. Please read the link in my signature block, this will show you how to set up and post scripts for sample data. You're far more...
July 31, 2012 at 7:17 am
Craig Freedman has an excellent description of how recursive CTE's work.
What's important to remember about rCTE's is that only the result of the last recursive iteration (the alias lr)...
July 31, 2012 at 7:12 am
Excellent investigative work, Paul.
It's not uncommon for indexes to be disabled during loads - but best practice is to enable them again afterwards 😉
July 31, 2012 at 7:03 am
sku370870 (7/31/2012)
If I sort by List I get:
1>2
1>2>3
1>2>3>6
1>2>3>7
1>2>3>7>10
1>2>3>7>9
1>2>4
1>2>4>8
1>2>5
So, the only niggle is that 1>2>3>7>10 is appearing before 1>2>3>7>9
I've tried...
July 31, 2012 at 6:17 am
Put in a specific check for NULL:
SELECT TOP 100 PERCENT
WebFormData_2.FieldValue AS Surname,
WebFormData_7.FieldValue AS SpecialReq
FROM db.R
INNER JOIN db.WebFormData WebFormData_2
ON db.R.WebFormRowId = WebFormData_2.WebFormRowId
AND (WebFormData_2.WebFormFieldId = 98 OR WebFormData_2.WebFormFieldId...
July 31, 2012 at 6:12 am
ISNUMERIC isn't very useful, see this article[/url].
(CROSS/OUTER) APPLY can be a handy and efficient alternative:
SELECT
m.BatchFileId,
x.Num1
FROM MyTable m
CROSS APPLY (
SELECT Num1 = CAST(
CASE WHEN m.LineItemValue NOT LIKE '%E%' THEN m.LineItemValue...
July 31, 2012 at 5:52 am
Viewing 15 posts - 5,956 through 5,970 (of 10,144 total)