Viewing 14 posts - 76 through 89 (of 89 total)
If I use just this ASV.[1st_NA] in the query then from the results in the example attachement you can see that it doesnt show same results as when we use...
October 6, 2009 at 4:23 am
I've been looking over the (CTE) Common Table Expressions sites on google. I understand some of it, but struggling to see stuff about using it within CASE Statements...
Anyway I have...
October 5, 2009 at 3:28 pm
From looking at the CASE my main problem I dont understand is how I can use a field that I have built using a previous CASE Statement in my new...
October 5, 2009 at 9:35 am
No worries, I'll have a go myself and comeback to you when I get stuck
Thanks.
October 5, 2009 at 8:42 am
Ok brilliant, now I have created the Appointment picture 😀
Thanks for the help in doing that!!
This below is now the query I have, I now need to understand how I...
October 5, 2009 at 7:44 am
If your date is not null, but is actually an empty string - the empty string is evaluated as a 0 which is 19000101. Not sure that is the problem...
October 4, 2009 at 3:53 pm
I've been looking at this and when I run the query looking at the NA1's I get 19000101 as a result when the NA dates are actually less than the...
October 4, 2009 at 2:56 pm
Sorry its complex 🙂
Well then, the question becomes:
If NA1 date is less than booking date - what do you want for Appt1?
If NA1 date is greater than booking date -...
October 2, 2009 at 2:52 pm
Okay, can the NA dates be less than the booking date? Are the NA dates NULL or empty strings if they don't have a date?
Yes the NA dates could be...
October 2, 2009 at 1:26 pm
am sorry, but I am not following the logic here. What happens if your NA column is not the same as appt1? What if the booking_date is less than...
October 2, 2009 at 8:25 am
I am looking at another database now and trying to put together something similar to what was done earlier in this thread, the only problem is that this database is...
October 2, 2009 at 3:41 am
Thanks for this 😀
Sorry for the delay in reply, only just had chance to look at this.
I'm going to read and understand what it does now.
Thanks again 😀
September 30, 2009 at 4:03 am
I have tried the CASE Statment and this is what I come up with for part of it, but have an error I cant get around....
Error :
Msg 156, Level...
September 29, 2009 at 2:23 pm
Thanks for that, I'll give it a go 🙂
September 29, 2009 at 7:03 am
Viewing 14 posts - 76 through 89 (of 89 total)