Viewing 15 posts - 76 through 90 (of 108 total)
I'll mess with the CHARINDEX. I think that is my best option. There isn't a - in the field, just the codes. As far as normalizing, that's...
March 10, 2009 at 12:39 pm
I have already gone and changed all of the subscriptions to a default user for the accounting group so I can't go looking at the owership of all those reports....
November 24, 2008 at 8:25 am
I followed your instructions and it does not work. No one has been able to tell me why I can send a test email, but still not have the...
November 7, 2008 at 1:58 pm
I never got mine to work.
When I first set it up, it was working fine for months, then one day after an error with integration, I noticed I didn't get...
October 30, 2008 at 10:15 am
rbarryyoung (10/24/2008)
declare @wh varchar(2)
set @wh='10';
Select obitno, oaorsc
From...
October 27, 2008 at 7:29 am
Just so I can try and understand more...
If I rewrite it to the following:
declare @wh varchar(2)
set @wh='10';
select obitno, oaorsc
from
(select obitno, oaorsc
from hsdet inner join hshed on obhssq=oahssq
where oainvd>20050100) as...
October 24, 2008 at 3:53 pm
Garadin (10/24/2008)
DECLARE @wh char(2)
SET @wh = '1'
SET @WH = CASE WHEN LEN(@WH) = 1 THEN '0' + @WH ELSE @WH END
select obitno, oaorsc
from hsdet inner join hshed...
October 24, 2008 at 3:18 pm
Lynn Pettis (10/24/2008)
select
obitno,
oaorsc
from
hsdet
inner join hshed
...
October 24, 2008 at 3:17 pm
Garadin (10/24/2008)
What are the results of this:
SELECT DISTINCT oaorsc
FROM hsdet inner join hshed on obhssq=oahssq
where oainvd>20050100
If the list is reasonably short, post the whole thing.
Here are the results. The...
October 24, 2008 at 3:09 pm
Lynn Pettis (10/24/2008)
select
obitno,
oaorsc
from
hsdet
inner join hshed
...
October 24, 2008 at 2:51 pm
Lynn Pettis (10/24/2008)
What are the data types for this two fieldsobhssq
oahssq
😎
that's the history sequence number to join up the order header file (hshed)with the order detail file(hsdet). They are...
October 24, 2008 at 2:38 pm
Yes I added the isnumeric=1 to my CTE. If I ran this statement alone,
select obitno, convert(int,oaorsc) as orsc
from hsdet inner join hshed on obhssq=oahssq
where isnumeric(oaorsc)=1
I would get a series...
October 24, 2008 at 2:35 pm
Gotcha. I ran the query like you have it. It comes back with 37,000+ rows. I modified it to show distinct oaorsc and it comes back with...
October 24, 2008 at 1:49 pm
Gave it a shot with the isnumeric, but it still came back with the same error.
October 24, 2008 at 1:23 pm
Viewing 15 posts - 76 through 90 (of 108 total)