Viewing 15 posts - 6,901 through 6,915 (of 15,381 total)
jobrien9796 (9/6/2013)
September 6, 2013 at 1:57 pm
Something like this?
UPDATE #Month
SET [PrevPerc] = [CurrPerc],
[MONTH] = case [MONTH] when 1 THEN 12 ELSE [MONTH] - 1 END,
[YEAR] = case [MONTH] when 1 THEN T.[YEAR] - 1 ELSE T.[YEAR]...
September 6, 2013 at 1:36 pm
Michael Valentine Jones (9/6/2013)
Sean Lange (9/6/2013)
Michael Valentine Jones (9/6/2013)
September 6, 2013 at 1:31 pm
PhilPacha (9/6/2013)
Sean Lange (9/5/2013)
--begin edit--
IIF was added to SQL 2012 :angry:
--end edit--
The first statement would be something like this:
SELECT case Field1 when NULL then...
September 6, 2013 at 1:30 pm
lisa.ogle (9/6/2013)
September 6, 2013 at 1:27 pm
tdanley (9/6/2013)
September 6, 2013 at 12:49 pm
Let's start with some ddl and actual sample data. The problem with just posting some characters is we have no idea what the datatypes are or where the column breaks...
September 6, 2013 at 12:18 pm
Check out the articles in my signature about cross tabs. In particular you will want to focus on the dynamic cross tab article. It should help get you pointed right...
September 6, 2013 at 12:09 pm
meghna.bhargav (9/6/2013)
With the issue, I think i have...
September 6, 2013 at 12:07 pm
Michael Valentine Jones (9/6/2013)
September 6, 2013 at 12:05 pm
meghna.bhargav (9/6/2013)
When you start typing the issue...
September 6, 2013 at 10:50 am
If you want to capture the datatypes here are a couple of different ways.
select *
into MyNewTable
from msdb.dbo.sysjobs
where 1 = 0
select c.name as ColumnName, t.name as DataType, c.is_nullable
from msdb.sys.columns c
join...
September 6, 2013 at 10:23 am
You might have read the article but you missed the point. The idea is to provide tables and data in a consumable format. That means that the volunteers around here...
September 6, 2013 at 8:13 am
Jeff Moden (9/5/2013)
September 6, 2013 at 7:36 am
Jeff one other thing that might make an excellent addition to this article is an explanation of how to collect the information. There are many times that people say something...
September 6, 2013 at 7:35 am
Viewing 15 posts - 6,901 through 6,915 (of 15,381 total)