Viewing 15 posts - 5,551 through 5,565 (of 8,731 total)
There's no difference. SQL Server will interpret them as the same query.
November 13, 2014 at 8:22 am
measterbro (11/12/2014)
Your query works but it only uses wins for the calculation.
In this example:
WLGB
B410
A253
The "games behind" are found by subtracting Team A wins from Team B...
November 12, 2014 at 1:01 pm
You should use error files to identify those rows an understand why they're missing.
November 12, 2014 at 10:41 am
Maybe something like this could help you.
WITH GamesWon AS(
SELECT Lge,
GameDate,
HomeTeam...
November 12, 2014 at 10:37 am
It's a nice question that might confuse some newbies. It's important to study the logical operators and the results given.
I'd love to see in the explanation that the correct answer...
November 12, 2014 at 10:00 am
Why do I always forget the safety net? I live on the edge. :hehe:
DECLARE @x table (y varchar(100));
INSERT INTO @x VALUES
('ReportServer-SalesOrders'),
('ReportServer-OKLA-SalesOrders'),
('SalesOrders');
SELECT REVERSE(left(REVERSE(Y), charindex('-', REVERSE(y) + '-')-1)) ,
...
November 11, 2014 at 11:30 am
Here are 2 additional options:
Note that PARSENAME can return incorrect results if you have dots in your values or if you have more than 4 sections.
DECLARE @x table (y varchar(100));
INSERT...
November 11, 2014 at 11:01 am
You don't need a loop. You need a really fast splitter which you can find in the following article: http://www.sqlservercentral.com/articles/Tally+Table/72993/
Once you split the data, you just need some cross tabs...
November 10, 2014 at 2:27 pm
Sometimes we miss the little details and just need a different point of view.
Glad I could help.
November 10, 2014 at 1:17 pm
jennigirl (11/10/2014)
'AVG' is not a recognized...
November 10, 2014 at 1:11 pm
I can't find the documentation, but I'm sure that it's because that's a parsing error while the others are execution errors.
November 7, 2014 at 2:07 pm
Your question seems incomplete.
You can modify data in SQL Server using views with some restrictions, check the following article: http://msdn.microsoft.com/en-us/library/ms180800.aspx
November 6, 2014 at 4:35 pm
Doctor Who 2 (11/6/2014)
November 6, 2014 at 10:04 am
Sean Lange (11/6/2014)
November 6, 2014 at 9:06 am
You're right, it wasn't about performance. It's because the splitter works on a single char basis. Modifying Alan's example could give us undesired results.
SELECT *
FROM dbo.PatternSplitCM('blrah1 \r\ bl\ah2 \r\ blah3','%[\r\]%')
WHERE...
November 6, 2014 at 8:24 am
Viewing 15 posts - 5,551 through 5,565 (of 8,731 total)