Viewing 15 posts - 46 through 60 (of 475 total)
Jeff Moden (8/19/2014)
davidmckee (8/19/2014)
I did some research after copying the code into the query and receiving...
August 19, 2014 at 10:49 pm
I'm not sure what tool you are using to connect to the database, so I can't give you any help on that. The statement I provided is to create...
August 19, 2014 at 5:58 pm
I would go for computed columns for the winner/loser
Something like this:
CREATE TABLE Games (
HomeTeam CHAR(1) NOT NULL, -- use an appropriate varchar if you have full names
AwayTeam CHAR(1) NOT NULL,...
August 19, 2014 at 5:40 pm
davidmckee (8/19/2014)
The standings is not a true table...it looks to the "games" table and the standings are all calculated and sorted.
So I have created the...
August 19, 2014 at 4:32 pm
I think this should do the trick, however I am assuming that the MIN and MAX functions are fixed to the entire range.
WITH ExcelData AS (
SELECT *
FROM (VALUES
('A',6,0),
('A',6,0),
('A',4,2),
('A',3,2),
('A',3,3),
('A',3,3),
('A',3,3),
('A',1,5)
) EXCEL(Team, Wins,...
August 19, 2014 at 3:33 pm
Glad to see it helped.
August 14, 2014 at 12:56 pm
Thanks guys
That was the article I wanted to link to before I ran out of time 🙂
August 13, 2014 at 12:44 am
Hi
ISNUMERIC may not be doing what you are expecting.
Try the following
SELECT lat
FROM #t
WHERE lat like '%[^0-9.-]%';
SELECT long
FROM #t
WHERE long like '%[^0-9.-]%';
August 12, 2014 at 7:23 pm
Where does MS SQL store the cache? Is a view cache or the index that you mentioned exist after a reboot or does MS SQL have to work to recreate...
August 12, 2014 at 2:13 pm
I suppose it comes down to where you want the performance hit to happen.
If you have a table that has a lot of changes happening to it but is infrequently...
August 11, 2014 at 8:50 pm
August 11, 2014 at 8:10 pm
Hi
You subqueries are returning the sum for all ITEMNOs and LOCATIONCODEs. I suspect you should be joining these to the outer query of ITEMNO and LOCATIONCODE.
select ITEMNO, LOCATIONCODE
, AVG(UNITCOST)...
August 7, 2014 at 3:31 pm
From what I've been able to determine MS SQL can't do reprojections is that correct?
SQL Server will not natively reporject, but the is an option to create or use...
August 6, 2014 at 2:44 pm
Viewing 15 posts - 46 through 60 (of 475 total)