Viewing 15 posts - 61 through 75 (of 683 total)
Brandie Tarvin (7/17/2008)
...
Case QuantityShipped WHEN 0 THEN 0
ELSE ( SUM(ISNULL([Unit Price],0)) * QuantityShipped)
/ QuantityShipped END as...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
July 17, 2008 at 4:54 am
This would be my guess at what you're trying to do...
SELECT CONVERT(varchar(11), ShipDate, 106) AS...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
July 17, 2008 at 4:48 am
Thanks GSquared.
By the way, I've just noticed that Test3 references string1 several times. Is that supposed to be the case?
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
July 16, 2008 at 12:23 pm
GSquared (7/16/2008)
Out of 998 rows, 120 ended up with double-spacing still in them.
Slow down!
The link from 2002 says:
I'm pretty convinced now that it requires 6 REPLACEs. I think that, using...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
July 16, 2008 at 11:14 am
As usual, different methods will be better in different situations. They're all tools for the toolbox 🙂
GSquared, your last idea also cropped up in 2002...
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=21511
REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(colname,
...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
July 16, 2008 at 9:58 am
smunson (7/16/2008)
Holy Alphabet, Batman !!!Ryan, that's one of the slickest routines I've ever seen... Neato, peachy keen, cool, etc., etc. ...
WELL DONE !!!
Steve
(aka smunson)
:):):)
Hehe - you've made my...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
July 16, 2008 at 9:06 am
Jeff Moden (7/16/2008)
RyanRandall (7/14/2008)
update #TEST set Descr = replace(replace(replace(Descr, ' ', '¬ '), ' ¬', ''), '¬', '') where Descr like '%...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
July 16, 2008 at 8:33 am
mathewspsimon (7/16/2008)
Visit_Id Med_Id Date ...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
July 16, 2008 at 5:15 am
So what would you want the results to look like for this sample data?
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
July 16, 2008 at 3:54 am
Here's one way...
--sample data
declare @t table (s varchar(100))
insert @t
select 'ANALYSIS RECORDS (APPROX 100 PPS)'
union all select 'REVIEW MANUAL (75+ PAGES)'
union...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
July 15, 2008 at 10:56 am
You can use something like this to append the bits together...
--sample data
declare @t table (WoNumber varchar(20), LineNumber int, Detail varchar(100))
insert @t
...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
July 15, 2008 at 10:10 am
Just divide by 60000.0 - or is there more to it?
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
July 15, 2008 at 9:47 am
Something like...
update TableA set value = 1 from TableA inner join TableB on TableA.id1 = TableB.id1 and TableA.id2 = TableB.id2 where TableB.id = 12345
which looks a bit nicer if you...
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
July 15, 2008 at 5:23 am
The last post here might be useful (as might this thread)...
http://www.sqlservercentral.com/Forums/Topic158858-21-1.aspx
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
July 15, 2008 at 5:19 am
select log(1.0 * 150/100)
returns 0.405465108108164
Ryan Randall
Solutions are easy. Understanding the problem, now, that's the hard part.
July 15, 2008 at 5:09 am
Viewing 15 posts - 61 through 75 (of 683 total)