Viewing 15 posts - 16 through 30 (of 54 total)
HI Lynn
I really appreciate your help in giving perfect solution. It works excellent.
Actually i am quite new to SQL, and don’t know how to use row number() function.
And i made...
January 22, 2010 at 6:07 pm
I updated the code now it looks ok...
Table:
MeterReading---------- ReadingDate
0 ---------- '2003-06-13 00:00:00.000'
70 ---------- '2003-11-12 00:00:00.000'
162 ---------- '2004-05-25 00:00:00.000'
239 ---------- '2004-11-03 00:00:00.000'
365 ---------- '2005-05-24 00:00:00.000'
Output...
January 22, 2010 at 1:17 am
Sorry jeff
i typed correctly and checked with the preview but it came odd format.
January 22, 2010 at 12:57 am
HI Jeff
I really thankful to you.
I will send you now.
January 22, 2010 at 12:32 am
HI Jeff
Thanks for your time.
Actually what i am looking is row caculation between dates(Date type is DATETIME).
Any help would be Appreciated .
January 22, 2010 at 12:04 am
Here is the data in my table
Reading
20090909
20060909
20070909
My user asked no of days between readings.
Here is the sample ouput i want
Reading No Of...
January 21, 2010 at 4:28 pm
Hi
The data has been stored as INT type for example 11/11/09 means 20091111
So i converted
to Reading_date using this statement.
CONVERT(DATETIME,CAST(ReadingDate_Key AS VARCHAR(12)),112) AS ReadingDate.
Plaese let me know if...
January 21, 2010 at 4:21 pm
Thanks for your help.
i will work it out...
December 17, 2009 at 12:42 pm
Hi
If i want to use SSIS,What is the method for that?
December 17, 2009 at 12:55 am
Hi
Thanks for your help.
select *
into test
from openrowset('msdasql', 'driver={microsoft dbase driver (RubbishDays2008_Property.dbf)};dbq=c:\', 'select * from filename')
I am getting following error..
Msg 7403, Level 16, State 1, Line 1
The OLE DB provider...
December 17, 2009 at 12:54 am
Thanks Steve..
It works perfectly..awesome
this is final code..
cast( trn.TGJTYR as char(4)) + RTRIM(cast( trn.TGJTPD as char(2)))+ '01'
December 13, 2009 at 8:13 pm
multiple fields,
i tried your solution but its giving inaccurate results like this
@year=2004
@period=9
select year+period+'01'
result: 2014
i wnat like this 20040900
December 13, 2009 at 7:56 pm
Hi Jeff
I solved my problem by using temp table concept.
sorry for giving trouble....
December 13, 2009 at 1:54 pm
Viewing 15 posts - 16 through 30 (of 54 total)