Viewing 15 posts - 36,781 through 36,795 (of 59,072 total)
Hey folks. Wayne S. found the occurance of a bug in the code that I previously posted on this thread. I've repaired that code on this thread. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2010 at 8:52 pm
All these bloody "medical database" problems seem like homework to me. I know they can sometimes get a little screwy but there is just no way that the health...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2010 at 7:56 pm
I know this might seem stupid to even try but it made the code run twice as fast on my machine...
SELECT
X.*
FROM X
INNER JOIN (
SELECT
...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2010 at 7:48 pm
Carl Federl (9/15/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2010 at 7:39 pm
Heh. I built a whole import system for unpredictable inputs (basically, spreadsheet CSV files) (can't reveal the source... NDA hasn't expired yet) using methods very basically similar to yours...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2010 at 7:28 pm
LutzM (9/15/2010)
a) It seems like you want to have "flexible column names" for each row which is...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2010 at 7:16 pm
sql.abhishek (9/15/2010)
i have my input table as follows
ID----total_amt-----total_month--------start_date
1-----1200000--------6-------------- 9/4/2009
2----300000---------3---------------- 1/1/2006
3----300000---------10--------------- 9/6/2006
4
5 ...so on
and i want a way to get the output as
ID
-----sept'09----oct'09----nov'09-----dec'09-----total for 2009---jan'10-----feb10----Tot
1---200000---200000---200000---200000----- ...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2010 at 7:14 pm
JC-3113 (9/15/2010)
that will work
but how do i concantenate it to the string in @subject=
if my @@SERVERNAME is NSAB-SS73-ORA-N
then
I want it to look like this:
NSAB-SS73-ORA-N Test - DBCC...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2010 at 7:08 pm
Hmmm... not homework? How do you explain the remarkable similarity here...
http://www.sqlservercentral.com/Forums/Topic986540-391-1.aspx
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2010 at 7:03 pm
Ghanta (9/15/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2010 at 6:39 pm
I agree... great thread! The only thing that may be wrong in this whole thread is the original requirement. 😉 Why does someone want to denormalize data...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2010 at 6:35 pm
kommagoni (9/15/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2010 at 6:25 pm
The command line version of Winzip is actually the PRO version of Winzip and it hasn't been free for a long time.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2010 at 6:22 pm
WayneS (9/15/2010)
1. Change "Today" to "GetDate()".2. In your example, you want the date range to end on 9/14/2010. I assume this is a typo, and should be 9/14/2009?
I've got the...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2010 at 6:20 pm
Dung Dinh (9/15/2010)
You should use
select dateadd(yy,-1,dateadd(d,-1,getdate()))
Agreed... now all you need to do is to provide the other needed date. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
September 15, 2010 at 6:17 pm
Viewing 15 posts - 36,781 through 36,795 (of 59,072 total)