Viewing 15 posts - 9,016 through 9,030 (of 15,381 total)
CHARINDEX???
create table PseudoTable
(
OneColumnToRuleThemAll varchar(max)
)
insert PseudoTable
select '01J416781|1|2013|2|Value' union all
select '934|f|asdf|qwer|erty|sdfg'
select * from PseudoTable
where CharIndex('|', OneColumnToRuleThemAll) = 10
It would be a lot more helpful if you could take a few minutes...
March 20, 2013 at 8:47 am
meadow0 (3/20/2013)
Sean, that worked perfect...I understood the Replace function was doing nothing, I had written it at a time when I was in fact replacing something....
Then you should remove it....
March 20, 2013 at 8:34 am
You really haven't posted much in the way of details other than a somewhat vague description of what you are trying to do.
Maybe you want left(SomeColumn, 9)??
March 20, 2013 at 8:19 am
I see a few issues going on here. First you are taking in parameters to build a dynamic string and you going to end up executing that dynamic sql with...
March 20, 2013 at 8:12 am
NineIron (3/20/2013)
His "Quirky Update" works like a charm. Thanx.
No problem. Just make sure that your structures meet ALL of the requirements or it can lead to some very strange and...
March 20, 2013 at 7:56 am
LOL Erin beat me to it.
To the OP. This one happened to be pretty simple. Generally we like to see ddl, sample data and desired output. You might want to...
March 19, 2013 at 3:53 pm
SELECT
EMPL_ID,
PAY_TYPE_ID,
SUM(LABOR_HRS) AS 'HOURS',
SUM(case when PAY_TYPE_ID = 99 then 0 else LABOR_COST end) AS 'Labor Cost'
???
March 19, 2013 at 3:51 pm
Sounds like you need a running total. Check out Jeff's article about this here. http://www.sqlservercentral.com/articles/T-SQL/68467/%5B/url%5D
March 19, 2013 at 2:31 pm
jgluszak (3/19/2013)
March 19, 2013 at 1:49 pm
abembalkar (3/19/2013)
orderid processid uid ordervalue perwet(percent wieghtage)
1 ...
March 19, 2013 at 12:46 pm
cnayan (3/19/2013)
My question is the latter one - which is more efficient.
So do as Lynn suggested IF they both return correct results.
Looks to me like what you need to...
March 19, 2013 at 12:11 pm
Hi and welcome to SSC. It seems that you didn't really post everything needed for somebody to help here. There are a number of tables missing in your ddl that...
March 19, 2013 at 12:07 pm
Why not just look at the excellent code that Chris M posted earlier in one of the dozen or so threads on the same topic.
http://www.sqlservercentral.com/Forums/Topic1432131-391-1.aspx#bm1432134
March 19, 2013 at 11:53 am
john_t_bailey (3/19/2013)
Thanks for the quick response.
May I assume from your answer that this capability does not exist in SSRS 2008; but requires SSRS 2012? And actually, 2012...
March 19, 2013 at 9:34 am
Minnu (3/19/2013)
There are no triggers on particular table.am inserting manually, i.e
insert into table_name values (.....)
If there are no triggers and you are not using a proc this is a...
March 19, 2013 at 9:09 am
Viewing 15 posts - 9,016 through 9,030 (of 15,381 total)