Viewing 15 posts - 1 through 15 (of 726 total)
antonio.collins (1/7/2008)
January 7, 2008 at 10:10 am
Since you have cracked your brains out, can you post your attempts thus far?
PS This has "homework" written all over it. While there is nothing wrong with that, if you...
January 6, 2008 at 5:55 pm
My "Whahuh?" was directed at the OP, not your link. 🙂
I can't tell what they want to accomplish no matter how many times I read it.
January 6, 2008 at 3:26 am
If I understand what you're trying to accomplish, it's pretty straightforward. Everything to the left of the period is the parent, so look for that.
January 5, 2008 at 11:09 pm
Without actually seeing the code, my best suggestion would be to use INSERT/EXEC functionality to populate a temp table, and then combine that with the additional data that you want.
There...
January 4, 2008 at 4:14 pm
While I agree with Kenneth that Isnumeric will likely solve your problem, keep in mind that it's borked, to put it nicely. If your data isn't too bad, it should...
January 3, 2008 at 1:56 pm
You can't assign a non-deterministic value as the default parameter like that. Instead, assign it something like NULL, and then inside the stored procedure, set it to Getdate() if it's...
December 26, 2007 at 11:19 am
Maybe I'm misunderstanding you, but if not, the answer is one. A table can only have a single primary key constraint.
ETA: To be quite specific, it can also have zero,...
December 25, 2007 at 10:28 pm
Jeff Moden (12/22/2007)
December 22, 2007 at 11:36 pm
December 22, 2007 at 1:58 pm
You still didn't tell us if there is a varying time value in the date_fld column.
If there is, I'd do this:
SELECT
*
FROM
tb1
WHERE
date_fld >= DATEADD(d,-2,DATEADD(mm, DATEDIFF(m,0,getdate()),0))
ANDdate_fld < DATEADD(d,-1,DATEADD(mm, DATEDIFF(m,0,getdate()),0))
and if not,...
December 22, 2007 at 1:54 pm
Assuming that the date_fld has a datatype of datetime, are there varying times in the field, or are they all 00:00:000?
December 22, 2007 at 1:11 pm
Since the rows you're inserting are based on the other table, lose the "VALUES()" portion of the query. The INSERT/SELECT method is what you need, and you seem to be...
December 22, 2007 at 12:08 pm
Viewing 15 posts - 1 through 15 (of 726 total)