Viewing 15 posts - 331 through 345 (of 466 total)
Steve Jones - SSC Editor (8/3/2012)
August 3, 2012 at 2:16 pm
patrickmcginnis59 (8/2/2012)
bitbucket-25253 (8/2/2012)
Incorrect answers: 63% (129)
Total attempts: 205
And the implications this could have to...
August 2, 2012 at 7:43 am
MarbryHardin (8/1/2012)
Scott D. Jacobson (8/1/2012)
MarbryHardin (8/1/2012)
And consider if you want to supply variables...
August 1, 2012 at 2:52 pm
If you have "value BETWEEN a AND b", it really means "value >= a AND value <= b".
So your second statement is seeing if 0 >= 0.05 AND 0 <=...
August 1, 2012 at 2:07 pm
sqlfriends (7/30/2012)
roryp 96873 (7/30/2012)
July 30, 2012 at 11:09 am
ISNUMERIC will return a 1 if the value that is being tested can be converted to a int, bigint, smallint, tinyint, decimal, numeric, money, smallmoney, float, or real datatype. ...
July 30, 2012 at 11:00 am
I've used it to parse out address fields that have city, state and zip in one field. It's usually easier to look through it backwards with the idea that...
July 30, 2012 at 10:46 am
I think the STUFF function is what you are looking for.
declare @txt varchar(20) = 'RA99999-99'
select STUFF(@txt, 3, 0, '0')
July 30, 2012 at 10:41 am
Michael Lysons (7/27/2012)
Good, back-to-basics question.😀
Lol!
In all seriousness though, I selected the judge your skills option thinking it meant more than your SQL Server skills, but also you reasoning and logic...
July 27, 2012 at 9:38 am
Or at the risk of being wrong again, I think a catch-all query may be what you are looking for.
July 17, 2012 at 12:58 pm
Does
WHERE Agent = @test-2 AND Agent <> ''
not work?
Edit: Nevermind that, I read your question wrong.
July 17, 2012 at 12:49 pm
honza.mf (7/16/2012)
rhythmk (7/16/2012)
July 16, 2012 at 8:45 am
You could just pick the ones where the second order id is greater than the first.
select *
from OrderItem o1
join OrderItem o2 on o2.itemid = o1.itemid and o2.orderid > o1.orderid
July 13, 2012 at 2:39 pm
john.arnott (7/11/2012)
SQLDCH (7/11/2012)
July 11, 2012 at 10:34 am
SQLDCH (7/6/2012)
roryp 96873 (7/6/2012)
I think the Reds and the Nats will be shaking off that "doormats of the league" reputation over the next few years at least. Both are...
July 6, 2012 at 2:25 pm
Viewing 15 posts - 331 through 345 (of 466 total)