Viewing 15 posts - 1 through 15 (of 16 total)
Yes, thanks Mark. Its what I need, just remove the parameter 'ReceivedDate'.
Place_ID AllAvai Today Tomorrow
1201
2211
3000
4000
Hi Alzdba,
I'm taking time on functions DATEADD and DATEDIFF. Yes, really I also feel my subtraction...
July 18, 2011 at 5:28 am
OMG, sorry for this silly question, I just ran small database, so all results returned 00:00:00.
Using datediff is easy.
January 6, 2011 at 2:48 am
Oh, Lutz, you're master. So many things to learn, I'm taking time on them. By the way, how to get the exact time when executing a query (to compare the...
January 6, 2011 at 1:58 am
Ouch, I think I understand something from Harin's code. He lists all the number available from 1 to 999999, then puts them in a range between min and max Invoice...
January 4, 2011 at 12:15 am
In my view, the perfect answer here is based on most requests that want to know all the missing codes. Like Harin's solution or this article:
http://www.sqlservercentral.com/articles/SQL+Puzzles/findinggapsinasequentialnumbersequence/2336/
But Lutz, your...
January 3, 2011 at 8:34 pm
First, I wish Lutz, Harin and other members a new year full of health and joy 🙂
Thank Lutz again, with your solution, now I know how to refer to other...
January 3, 2011 at 10:33 am
Thank LutzM, your keyword "sequence gaps" is really useful for me.
But how can I have the result like this:
Invoice_Code | Missing_Code
1 ...
December 30, 2010 at 2:12 am
Hm, might I take some advice from you, Jeff 🙂
December 20, 2010 at 12:51 am
OK, thank Kingston, Subquery is not new to me, but Table variable. And I think the important thing here is to create 2 alias names to compare, good idea with...
December 19, 2010 at 8:51 pm
Kingston, would u mind explaining me more about "tmp_inn" (maybe Temporary objects) ? Any link talks about it's usage.
Thanks.
December 17, 2010 at 1:19 am
Yes, Wayne, thank for your sharing.
I also think that to look another way to solve it rather than writing ROW_FUNCTION() in SQL 2000 (not feasible with my little skill).
I know...
December 16, 2010 at 10:23 pm
Really? I tried your code and it works correctly. With just my 5 records, I dont find the error.
DECLARE @tblTemp TABLE
(
Patient_code...
December 16, 2010 at 8:58 pm
Yes, Lynn, it works. But just on my Laptop. On my office's desktop, there's a Error Message:
'row_number' is not a recognized function name.
Both my laptop and office's desk are installed...
December 16, 2010 at 8:28 pm
Thank Lynn but your solution still has problem. Now when Anna returned to the clinic on the other day, her status is New while it must be Return.
20 ...
December 16, 2010 at 7:11 pm
Viewing 15 posts - 1 through 15 (of 16 total)