Viewing 15 posts - 7,651 through 7,665 (of 15,381 total)
DataAnalyst011 (7/8/2013)
That's exactly what I needed. And good catch on the -4. I modified that section. Thanks alot!
You are welcome. Glad that worked for you.
July 8, 2013 at 2:54 pm
The error message says it all. 🙂
However, there is no reason you can't use the same calculation again.
ALTER TABLE x
ADD CalcDt AS (dateadd(dd,-datediff(dd, [StrtTy], getdate()), [StrtLY]))
However, your original for DysBf...
July 8, 2013 at 2:36 pm
Thanks to Erin for pointing out that you had posted ddl and sample data in your first post. :blush:
Now your most recent post does not match that new sample data...
July 8, 2013 at 2:13 pm
jbalbo (7/8/2013)
That would work.. I thinkSorry I'm thinking Crystal...
Will it still look at is as < when null?
No, NULL by definition cannot be greater or less than anything. It is...
July 8, 2013 at 1:51 pm
I have to second what Dwain already stated. You don't have any way to force the order here. Why is Row 2 correct and Row 3 not correct? How do...
July 8, 2013 at 12:41 pm
I see what you are saying about the row number but I am a bit confused about the process as a whole. Why would the rowNumber change based on return...
July 8, 2013 at 12:26 pm
sharonsql2013 (7/8/2013)
(In Header table)If the product code selected is "health"
then In reporting table
ID should populate as H1
...
July 8, 2013 at 12:13 pm
This looks a lot like homework. What have you tried so far? If you really need some help we will need a few things:
1. Sample DDL in the form of...
July 8, 2013 at 11:02 am
Steve Jones - SSC Editor (7/8/2013)
Notifications working for people? Seem like the queue might be stuck.
None here.
July 8, 2013 at 10:59 am
You should read this article from Gail. It is discussing this type of query and the performance issues that arise from it.
http://sqlinthewild.co.za/index.php/2009/09/15/multiple-execution-paths/%5B/url%5D
July 8, 2013 at 10:24 am
Why do you think you need to shrink it? Wouldn't you think that production will get a lot bigger than dev anyway?
http://www.brentozar.com/archive/2009/08/stop-shrinking-your-database-files-seriously-now/%5B/url%5D
July 8, 2013 at 10:20 am
riya_dave (7/8/2013)
can anybody give me script for example i have 1256789 records and i need to update 5000 at a...
July 8, 2013 at 10:18 am
ulisseslourenco (7/8/2013)
Hi guys,Could somebody help me? This is a bit urgent
Best regards
In order to help we will need a few things:
1. Sample DDL in the form of CREATE TABLE...
July 8, 2013 at 9:13 am
riya_dave (7/8/2013)
i want to add column with no check constraint
like
alter table emp with nocheck
add column1 not null
and then i need to update with default values and then i need...
July 8, 2013 at 9:09 am
ramyours2003 (7/8/2013)
what are the prerequisites to configure replicatin in sql 2008 /
BOL is your friend.
http://msdn.microsoft.com/en-us/library/ms151254%28v=sql.105%29.aspx
July 8, 2013 at 9:01 am
Viewing 15 posts - 7,651 through 7,665 (of 15,381 total)