Viewing 15 posts - 2,116 through 2,130 (of 5,590 total)
I can't believe that the "View is not ordered with an order by" thread is still going on. It's been thoroughly explained, and yet, still.....
December 16, 2010 at 4:55 pm
evald (12/15/2010)
And i would say also that if you ask 10 dba about this maybe only one knows all this story.
And I would have to say that all 10 should...
December 16, 2010 at 4:48 pm
Craig Farrell (12/16/2010)
Michael Valentine Jones (12/16/2010)
December 16, 2010 at 4:45 pm
Does this handle it for you?
(Since you posted on a SQL 2008 forum, I gave you a SQL 2008 response. Let us know if you're not on SQL 2008 for...
December 16, 2010 at 4:32 pm
Stephen crocker (12/16/2010)
Thank you, I'll give that a try
I take this to mean that you're going to read that link he suggested you read, and then to post your data...
December 16, 2010 at 2:26 pm
First, we need to get that data into a table.
-- See how you start off by actually creating a table and then
-- inserting the data into it? Your doing...
December 16, 2010 at 2:22 pm
itfbd (12/16/2010)
Below is the data from table :
EmpidDate PA
30001/12/201010
30002/12/201010
30003/12/201010
30004/12/201010
30005/12/201001
30006/12/201001
30007/12/201001
30008/12/201001
30009/12/201001
30010/12/201010
30011/12/201001
30012/12/201001
30013/12/201001
30014/12/201001
29101/12/201001
29102/12/201001
29103/12/201001
29104/12/201001
29105/12/201001
29106/12/201001
29107/12/201001
29108/12/201001
29109/12/201001
29110/12/201001
29111/12/201001
29112/12/201001
29113/12/201001
29114/12/201001
If i write query
select min(date) from EMP_ATTENDANCE
where emp_id = 291
and month(date) =...
December 16, 2010 at 1:46 pm
You're welcome. Thanks for the DDL/DML - it makes it a lot easier on us!
December 16, 2010 at 1:40 pm
bitbucket-25253 (12/16/2010)
WayneS (12/15/2010)
My second ever QotD is being published tomorrow. Can you'll let me know what you think of it please?
Wayne I believe it was a good question, and I...
December 16, 2010 at 1:36 pm
I think Microsoft prefers getdate().
CREATE TABLE #test (RowID INT IDENTITY, MyDate DATETIME DEFAULT (CURRENT_TIMESTAMP));
SELECT definition
FROM tempdb.sys.default_constraints
WHERE parent_object_id = object_id('tempdb..#test');
returns:
definition
-----------
(getdate())
December 16, 2010 at 12:23 pm
Lamprey13 (12/16/2010)
December 16, 2010 at 12:04 pm
I'm assuming that since your @DateRanges table has times that can start during the day, that you don't want any part of a holiday.
This should take care of it:
;
WITH CTE...
December 16, 2010 at 11:59 am
Okay, I messed up. I posted the wrong code (the posted code was run to get the error message for the QotD). Then I went and gave the explanation based...
December 16, 2010 at 10:34 am
My second ever QotD is being published tomorrow. Can you'll let me know what you think of it please?
December 15, 2010 at 8:17 pm
Craig Farrell (12/15/2010)
December 15, 2010 at 3:03 pm
Viewing 15 posts - 2,116 through 2,130 (of 5,590 total)