Viewing 15 posts - 1,756 through 1,770 (of 6,486 total)
In other words:
SELECT A.NOME,
A.MATRICULA,
CASE P.TIPO_AULA
WHEN 1...
August 24, 2009 at 1:15 pm
You're doing the LEFT OUTER join correctly. What is tripping you up is what you are leaving in the WHERE clause.
Leaving
H.SALA 0
means that only those rows that have...
August 24, 2009 at 1:13 pm
Frankly this is one where I would go CLR. In other words - write it in C# or VB and use it in SQL. You will have a...
August 24, 2009 at 12:05 pm
Here's my full test set. Looks pretty close to right.
One additional adjustment I made in the calculation of the average is to make sure that it was float (not...
August 24, 2009 at 12:03 pm
JP Sabin (8/24/2009)
"Select ID,
datediff(month,...
August 24, 2009 at 11:44 am
Keep in mind that unless those datasets are REALLY small, changes are fairly good that they will be turned into Worktables anyway, so you don't ever completely get away from...
August 24, 2009 at 8:56 am
Using Dave's idea of renormalizing the data (i.e unpivoting the data), it's actually a lot easier than it looks:
Select ID,
datediff(month, min(month),...
August 24, 2009 at 8:42 am
Using OPENXML in this way means you can only do inserts one row at a time, and restricts your options.
You should look over the solid advice from Jacob Sebastian here...
August 21, 2009 at 12:47 pm
Are you rebuilding indexes/shrinking stuff/updating statistics?
August 21, 2009 at 12:39 pm
Ells (8/19/2009)
Any suggestions for a suitable dtat type to hold the value 10.1 that is not...
August 19, 2009 at 11:00 am
So have you managed to get to the bottom of what is making it run long?
Would the proc actually finish if you just simply let it process long...
August 17, 2009 at 2:25 pm
Keep in mind that testing with SELECT * guarantees a bookmark lookup. Are you sure you're not picking up the slowness of those bookmarks? If it's not selective...
August 17, 2009 at 1:52 pm
You want to read up on the PATINDEX function, which may allow you to find the space you need. I use the word "MAY" because trying to break up...
August 17, 2009 at 1:11 pm
Elliott W (8/12/2009)
No, it is basic TCP/IP, only one listener on a port.
..per machine/IP address. It's probably a given, but it is sometimes useful to add the obvious in...
August 17, 2009 at 12:10 pm
We've had mixed results with outsourcing some of those roles. We have some amount of our coding and maintenance work being performed off-shore, and we've found that it vastly...
August 17, 2009 at 11:20 am
Viewing 15 posts - 1,756 through 1,770 (of 6,486 total)