Viewing 8 posts - 1 through 8 (of 8 total)
Hi Everett,
First of all, thanks for investing the time to help me out with this.
At the suggestion of a co-worker, I've gone a slightly different route. Here's the...
September 16, 2004 at 11:02 am
Ok, Everett, I did what you suggested.
select convert(varchar(10),visit_date,101)as VisitDate, visit_date,@minusdate,deposit_id,sub_obs
from subjective
Everything I requested in the Select statement was correctly returned. So the problem occurs when I attempt the comparison in...
September 14, 2004 at 1:19 pm
Hey Everett,
Excuse my ignorance, but when you say throw the results into the Select clause, I'm not sure I understand.
I have already run both as individual Select statements. In each...
September 14, 2004 at 1:03 pm
Hi Everett,
I did try that, but to no avail.
declare @MinusDate varchar(10)
select @MinusDate=convert(varchar,getdate() -7,101)
select deposit_id, sub_obs, convert(varchar(10),visit_date,101)as VisitDate
from subjective
where sub_obs like '%morphine sulfate%'
and visit_date = @MinusDate
September 14, 2004 at 12:40 pm
Hey guys,
Attached is my query, which still does not return the data that I know exists in visit_date field.
declare @MinusDate varchar(10)
select @MinusDate=convert(varchar,getdate() -7,101)
select deposit_id, sub_obs,visit_date
from subjective
where sub_obs like...
September 14, 2004 at 12:33 pm
Many thanks, Brad!
September 14, 2004 at 12:22 pm
Ok, Everett, will do.
Thanks again!
September 10, 2004 at 6:06 pm
Hi Everett,
Thanks for helping me out. However, I'm afraid I don't completely undertand the query. For instance, what does the 101 represent?
Thanks!
September 10, 2004 at 5:56 pm
Viewing 8 posts - 1 through 8 (of 8 total)