Viewing 15 posts - 91 through 105 (of 283 total)
Here's a simple solution that works on SS-2000. If this represents a large table, make sure the TIME column is indexed descending. Pull out the derived table and look at...
June 27, 2008 at 7:47 pm
There is nothing wrong with what you are trying to do. It is done all the time, say a table has a SentBy and a SentTo column both referring to...
June 27, 2008 at 6:59 pm
The main purpose of the Julian date (in the old days of IT) was to put the date in an easily sortable form. This was before date and datetime datatypes....
June 20, 2008 at 2:25 pm
I wholeheartedly agree with using a table to hold the cutoff values. The slight performance hit is well worth the flexibility of the design. However, there are two flaws in...
June 20, 2008 at 2:06 pm
Here's my version, in the form of a couple of functions. The first, LastSunday, returns the date of the last Sunday of the month passed in.
create function dbo.LastSunday(
...
June 18, 2008 at 1:38 pm
noeld (6/3/2008)
The problem with merging is that some maintainability/availability requirements could be different forcing you to adapt to the "highest"...
Agreed. In my situation, all of our databases are back-ends...
June 3, 2008 at 12:20 pm
First of all, you should recognize that you have, not a one-to-many, but a many-to-many relationship between Vendors and Services, resolved through the intersection table VendorServiceLink. You also have created...
June 3, 2008 at 11:24 am
Michael Earl (6/2/2008)
If this is a total re-design, why wouldn't you just create a single database ...
This solution gets my vote. If you have the same code then you must...
June 3, 2008 at 10:36 am
Based on the info you have provided, you don't need an INSERT trigger. Your client has a poorly designed table but it is a static table -- the data, once...
June 2, 2008 at 2:23 pm
Your code won't work on SQL Server 2000 ...
Yes, I missed that. When teach posted his answer, I had no sooner framed the question, "Now why did he do it...
June 2, 2008 at 12:14 pm
What you have described is a M:M intersection table between Subjects and Tests with the addition of the date and result of each test. The restriction that each subject is...
May 30, 2008 at 2:44 pm
Matt Miller (5/29/2008)
Must....resist...getting...sucked...into...religious...war...debate.
What, and miss all the fun? 😉
May 29, 2008 at 6:40 pm
Sarcasm forgiven... I know you just can't help it 😉
Yeah. I have to attend a Sarcasm Management class as part of the terms of my release.
I absolutely agree that...
May 29, 2008 at 12:58 pm
Numeric primary key...
Yes, thank you, but I've known about Identity fields for, gee, several months now.
Holiday date can appear more than once depending on things like Country or State.
Oh,...
May 28, 2008 at 3:07 am
Chirag (5/26/2008)
A simple holiday table would have the following self-exlpanatory columns.HolidayID - Identity column
HolidayDate - Datetime
Description.
An identity column? Why? What purpose does it serve? Under what circumstances would you ever...
May 27, 2008 at 11:42 am
Viewing 15 posts - 91 through 105 (of 283 total)