Viewing 15 posts - 1,906 through 1,920 (of 2,462 total)
The company I work for has offices in a lot of markets (Seattle, NY, San Fran, Chicago, Houston, L.A., etc...). I have seen compensation fluctuate a lot based on cost...
-- Itzik Ben-Gan 2001
August 12, 2014 at 2:49 pm
SSAS is the Analysis part of the Microsoft BI stack (SSRS, SSIS and SSAS). Pre-2012 the only components were OLAP cubes (Dimensional model) and Data mining. In 2012 they...
-- Itzik Ben-Gan 2001
August 12, 2014 at 10:01 am
First let's create a function called topn...
CREATE FUNCTION topn(@n int, @x int)
RETURNS TABLE AS
RETURN
(
WITH
E1(n) AS (SELECT 1 FROM (VALUES (1),(1),(1),(1),(1),(1),(1),(1),(1),(1)) t(n)),--10
E2(n) AS (SELECT 1 FROM E1 a CROSS JOIN...
-- Itzik Ben-Gan 2001
August 11, 2014 at 6:56 pm
Just a quick note about duplicates.
If the possibility exists for duplicate values then you would use DENSE_RANK instead of ROW_NUMBER. In the examples below I took Lutz' code...
-- Itzik Ben-Gan 2001
August 11, 2014 at 4:07 pm
Great, great article Ed!
-- Itzik Ben-Gan 2001
August 4, 2014 at 8:32 am
I am better now Jeff, thank you for asking. I dislocated a rib last week. Got it fixed this weekend. All better now. No more softball for me until next...
-- Itzik Ben-Gan 2001
July 28, 2014 at 4:59 am
Luis Cazares (2/11/2014)
Have you tested again?
Luis - I completely flaked out and missed this message. I am truly sorry and feel like a jerk. I fixed the my code and...
-- Itzik Ben-Gan 2001
July 24, 2014 at 2:48 pm
Jeff Moden (7/17/2014)
Alan.B (2/7/2014)
-- Itzik Ben-Gan 2001
July 24, 2014 at 2:06 pm
...I know that TOP ### in order to support ORDER BY is a kludge, that might disappear in a future release.
I think I know what Post you are talking...
-- Itzik Ben-Gan 2001
July 14, 2014 at 4:21 pm
Jeff Moden (7/10/2014)
Alan.B (7/10/2014)
Phil, you can make this more than twice as fast by turning it into an inline table value function like this:
To that, I say... are you sure?...
-- Itzik Ben-Gan 2001
July 14, 2014 at 9:32 am
aochss (7/10/2014)
Msg 8152, Level 16, State 14, Line 1
String or binary data would be truncated.
The statement...
-- Itzik Ben-Gan 2001
July 10, 2014 at 3:34 pm
Phil Factor (7/10/2014)
[font="Courier New"]
-- does a particular procedure exist
IF EXISTS ( SELECT 1
FROM information_schema.Routines
WHERE ROUTINE_NAME = 'LeftTrim'--name of procedire
AND ROUTINE_TYPE = 'FUNCTION'--for a...
-- Itzik Ben-Gan 2001
July 10, 2014 at 10:43 am
ISNUMERIC('-') returns a 1. Discovered that this week (at an inconvenient time no less).
-- Itzik Ben-Gan 2001
July 10, 2014 at 6:58 am
It's worth noting that these are referred to as Compound Assignment Operators and you can use them for multiplication (*=), division ( /=), modulo (%=), and a few bitwise...
-- Itzik Ben-Gan 2001
July 10, 2014 at 5:42 am
Great article, 5 stars. I new nothing about this. Learned something new today already!
-- Itzik Ben-Gan 2001
July 10, 2014 at 5:04 am
Viewing 15 posts - 1,906 through 1,920 (of 2,462 total)