Viewing 15 posts - 2,956 through 2,970 (of 3,010 total)
I saw this situation once because of affirmative action. There was an opening for a supervisor. The obvious leading candidate was an extremely well qualified black man who had...
February 16, 2007 at 3:29 pm
You may find the function on this link useful for generating a date table.
Date Table Function F_TABLE_DATE:
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=61519
Function F_TABLE_DATE is a multistatement table-valued function that returns a table containing a variety...
February 16, 2007 at 8:29 am
Perhaps another way to look at it would be to say that the most resistance to affirmative action comes from those who would be discriminated against by affirmative action. ...
February 16, 2007 at 8:19 am
I don’t believe that two wrongs somehow produce a right. I also think it’s condescending to believe that women and minorities need protection. That implies that they just can’t make...
February 15, 2007 at 10:04 pm
It sounds like the design issues with the database are so serious that the ususal source of downtime will be bugs in the application, not hardware, so automatic failover would...
February 15, 2007 at 5:36 pm
Create a table with one row for each date, and left join that to the result of the join of the other two tables.
February 15, 2007 at 12:04 pm
It is almost always better to write a date range selection in this form:
where MyDateColumn >= StartDateTime and MyDateColumn < EndDateTeim
For example, to find all items for the date 2006-01-14.
Select * from MyTable Where MyDateColumn...
February 15, 2007 at 9:57 am
It's not true that PKZip will not handle files above a ceratin size.
This restriction went away with version 5.0 that was released in 2002.
February 15, 2007 at 7:52 am
It is not true that YYYY-MM-DD will work with any dateformat setting, as the following code demonstrates. The only universal format is YYYYMMDD.
set dateformat ydm print 'Convert 20071230' select Date=convert(datetime,'20071230') print 'Convert 2007-12-31' select Date=convert(datetime,'2007-12-31')
Results: Convert...
February 14, 2007 at 4:40 pm
You could also use a temp table to doe this:
create table #temp ( MyTableID int not null primary key clustered, Counter int not null identity(1,1) )
Inset into #temp (MyTableID) select top 100 percent MyTableID from MYTable order by MYTableID
update MYTable set MyCounter = #temp.Counter from MYTable join #temp on MYTable.MYTableID...
February 14, 2007 at 1:02 pm
For every human problem, there is a neat, simple solution; and it is always wrong
- H. L. Mencken, Mencken's Metalaw
February 14, 2007 at 9:43 am
If there something that is preventing you from writing the script that you need?
February 13, 2007 at 1:41 pm
Since that query has a count(*) in it, it will never return more than one row.
February 13, 2007 at 12:44 pm
Why do you have to update the values in the identity column? An ID really should not have any particular meaning, other than to provide a row identifier.
February 13, 2007 at 10:26 am
Viewing 15 posts - 2,956 through 2,970 (of 3,010 total)