Viewing 15 posts - 31 through 45 (of 568 total)
Hi,
Use the inner join of both table with the columns on Acct_no and State, then select the max Visit_date by group the Acct_no.
Have a question, suppose your Patient table have...
February 10, 2010 at 8:28 pm
mlandsheer (2/9/2010)
February 9, 2010 at 9:29 pm
CirquedeSQLeil (2/8/2010)
I hadn't considered this method. Makes sense though.
Hi Janson,
Is there any direct convert method to get the year and week from date time?
I thought this code having some...
February 9, 2010 at 2:02 am
Hi
One of the record in the ftpfile table does’t have the DOT(“.”) character and same which you search in the charindex/substring, hence this error occurred.
February 4, 2010 at 12:10 am
KeyurGohel (2/3/2010)
001 500 1200 500 ...
February 3, 2010 at 11:51 pm
Hi Mahesh,
But, you can raise this message by you validate the string before updating, is it valid data type to update the target.
if isnumeric('***')= 0
begin
ROLLBACK TRAN
RAISERROR ('!!INSERT success but UPDATE...
February 3, 2010 at 10:47 pm
Hi Jeff,
Nothing wrong, the praise from one’s percent mood, so reflect you’re in good disposition!!!
February 1, 2010 at 10:22 pm
Hi Jeff,
You know about what the newbie’s doing wrong, even you ask such question.
February 1, 2010 at 9:28 pm
SELECT
(case when n = 1 then @pStartDate
else DATEADD(mm,DATEDIFF(mm,0,@pStartDate) + (t.N-1),0)end) AS MonthStart,
(case when n= DATEDIFF(mm,@pStartDate,@pEndDate)+1 then @pEndDate
else DATEADD(mm,DATEDIFF(mm,0,@pStartDate) + (t.N ),0) -1 end)AS MonthEnd...
February 1, 2010 at 8:32 pm
declare @from datetime,@to datetime
set @from = '2009-01-10'
set @to = '2010-10-20'
SELECT STUFF(CONVERT(CHAR(11),DATEADD(mm, n-1, @from),100),4,3,'') AS MonthName ,
dateadd(mm, datediff(mm, 0, (DATEADD(mm, n-1, @from)) ), 0) startdate,
(DATEADD(MONTH, 1, (dateadd(mm, datediff(mm, 0, (DATEADD(mm,...
January 30, 2010 at 1:56 am
Hi Mitesh Oswal,
I expect this feed back from OP.
Moreover you just put the if null in the
isnull(datediff(day,a.End_Date,b.Start_Date),0/*any other values*/)diff
So that we have map other than zero in this place.
January 28, 2010 at 9:55 pm
select a.* ,b.Start_Date,datediff(day,a.End_Date,b.Start_Date)diff
from
#Care_Episodes a
left outer join
#Care_Episodes b
on
a.Person_ID = b.Person_ID
and
a.PKID = b.PKID-1
January 28, 2010 at 9:04 pm
SQL ORACLE (1/27/2010)
not the date of modifying table data.
Hi,
Record modified track!!
Unless you follow the Gail approach or set the audit trial/table to the target table or the target table...
January 27, 2010 at 8:47 pm
Hi Saravanan,
Nice work,
But, is its works only in the 2000?
And just fine turn this code to suit with the below VIEW
/*
THIS INFO ALREADY IN THE
XYZ VIEW, THEN WHY WE...
January 22, 2010 at 12:35 am
Hi Saravanan,
The OP says, he got the text when run the sp_helptext, but along with the comment mentioned in the top of the view/procedure, OP need to trim the commend...
January 21, 2010 at 11:20 pm
Viewing 15 posts - 31 through 45 (of 568 total)