Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 stretched table

Author  Topic 

inbs
Aged Yak Warrior

860 Posts

Posted - 2010-01-11 : 03:59:27
i have this table:

DataName	SizeData_MB	LogName	SizeLog_MB     CreationDate
CTU 2.25 CTU_log 0.81 2010-01-10
CTU 2.10 CTU_log 0.71 2010-01-09

i want to see like that:
DataName	SizeData_MB	LogName	SizeLog_MB     CreationDate 
CTU 2.25 CTU_log 0.81 2010-01-10
SizeData_MB SizeLog_MB CreationDate_Yesterday
2.10 0.71 2010-01-09



rajdaksha
Aged Yak Warrior

595 Posts

Posted - 2010-01-11 : 04:01:39
Hi

You want display only columns?.



-------------------------
[R][A][J]

Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2010-01-11 : 04:01:58
SELECT DATEADD(DAY, -1, CreationDate) AS CreationDate_YesterDay
FROM Table1




N 56°04'39.26"
E 12°55'05.63"
Go to Top of Page

inbs
Aged Yak Warrior

860 Posts

Posted - 2010-01-11 : 05:47:31
it is not answer to my question
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2010-01-11 : 06:05:05
this looks like just a formatting / presentation issue. You should handled this in your front end application. Not in SQL Server


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -