Viewing 15 posts - 6,586 through 6,600 (of 7,417 total)
Do you want to test DateDesc for within the last 30 days?
If so, then maybe this (added that check to the WHERE clause):
select
activityname,
dd.datedesc,
dateadd(hour, - 5, DD.DateDesc) AS date_completed,
getdate()-1 as...
February 14, 2013 at 5:08 pm
Have to admit, I just upgrated in place from SQL 2005 to 2008. It's fairly straightforward. (Nothing at all like the huge changes going from SQL 2000 to...
February 14, 2013 at 5:00 pm
Very nice, but technically wouldn't remainder 1s be table A, remainder 2s be table B and remainder 0s be table C?
February 14, 2013 at 4:56 pm
Sean Lange (2/14/2013)
ScottPletcher (2/14/2013)
You should always specify the owner (schema name) on objects in a trigger. There are very...
February 14, 2013 at 12:35 pm
That's a significant change!
In order, here's a quick list of the most important things to do first:
1) Make sure the DBA role will fit you. As a developer, you...
February 14, 2013 at 11:16 am
Nope, you're not quite there yet, one other changed to make.
You should always specify the owner (schema name) on objects in a trigger. There are very few always/never rules...
February 14, 2013 at 11:01 am
Jeff Moden (2/13/2013)
ScottPletcher (2/13/2013)
February 14, 2013 at 8:56 am
JKSQL (2/13/2013)
February 13, 2013 at 5:20 pm
Just imagine if SQL itself tried to use all these prefixes? That would be a royal pain!
In general they use the prefix to logically group things, such as sys.dm_db_*,...
February 13, 2013 at 1:55 pm
RonKyle (2/13/2013)
Also, it's extremely inconsistent unless you also name all your tables tblXXX (and DO NOT, EVER, do that, ).
Why would you never do this? I've seen dimension tables...
February 13, 2013 at 1:50 pm
Grant Fritchey (2/13/2013)
February 13, 2013 at 1:48 pm
nsmith 8448 (2/13/2013)
February 13, 2013 at 1:30 pm
Employee_Contact: Clus_Key = ( Emp_Id, Location, Type[, Sequence] )
....Emp_Id FK
....Location FK --<<-- alpha or numeric code for contact location: Home|Work|etc..
....Type FK --<<-- alpha or numeric code for contact type: Phone|Email|etc..
....Sequence...
February 13, 2013 at 1:23 pm
Hmm, if you're going to go live with this, you need to do some further normalization and use less-prefixed names, as below.
Employee (abbreviated "Emp" below): Clus_Key = ( Emp_Id )
....Emp_Id...
February 13, 2013 at 1:12 pm
I understand English may not be your first language, so I won't criticize any of those aspects of your post. I've tried learning a foreign language and know how...
February 13, 2013 at 10:34 am
Viewing 15 posts - 6,586 through 6,600 (of 7,417 total)