Viewing 15 posts - 241 through 255 (of 274 total)
lol, you two are funny. I post code that actually works and you keep talking to each other about how "it can't be done". ROFLOL.
June 11, 2010 at 11:34 am
I am still trying to remember the first time I came across that name = Scott Pletcher; a very famous and respected name.
Maybe Experts-Exchange? I did *a lot* of...
June 11, 2010 at 10:28 am
...other code same as before...
ELSE
BEGIN
--no previous case w/ judge found, so assign judge from existing round
IF NOT EXISTS(SELECT TOP 1 * FROM Round)...
June 11, 2010 at 10:27 am
I'll also add what I said before. The data is being inserted in the order of 09, 11, 01 and everyone is just getting lucky with the "sorted" order. It...
June 11, 2010 at 9:48 am
but otherwise (such as in this case) this will result in a table scan even if there is an index on the DueDate.
You could rephrase the query to avoid...
June 11, 2010 at 9:45 am
For a new case, the client and case parts work exactly as they do now.
[Note that my design currently means "no client, no case", that is, a case *must*...
June 11, 2010 at 9:39 am
CORRECTION:
Instead of:
CREATE INDEX Cases_IX_JudgeID ON Cases (JudgeID)
Should be:
CREATE INDEX Cases_IX_01 ON Cases (ClientID, JudgeID)
June 11, 2010 at 9:01 am
You should reorganize the table as soon as possible. You almost certainly created a large number of row-forwarding pointers by doubling the size of that many columns.
June 10, 2010 at 4:41 pm
I suggest this something like this for the tables:
DROP TABLE Cases
DROP TABLE clients
DROP TABLE Judges
CREATE TABLE [dbo].[Judges](
[JudgeID] [int] NOT NULL CONSTRAINT...
June 10, 2010 at 3:27 pm
You have two different approaches you can take:
1) Leave the base Judge and Case tables alone; instead, create a separate table to control rounds. This is the method I...
June 10, 2010 at 2:31 pm
OFF-TOPIC
So, how does your count method handle all the situations I've described?
It does NOT. It CANNOT. Your 'solution' only handles a pure vanilla situation. That's a college...
June 10, 2010 at 2:00 pm
I think a separate judgeround table is a better design in this situation because it's more flexible.
Say one judge is ailing and the others agree to give him/her a limited...
June 10, 2010 at 1:47 pm
You want to keep your judgeid as an INT, no need to use nvarchar for that.
Except for long-term archiving, you only need one case table that has both current and...
June 10, 2010 at 1:36 pm
OFF-TOPIC
My code returns the exact judges it should return and it will continue to do so for any list of possible inserts into the cases table that you can create.
Don't...
June 10, 2010 at 1:30 pm
No problem. I get that. The *first* thing you do for a case is check whether it qualifies as a transfer case. If it does, assign it...
June 10, 2010 at 1:06 pm
Viewing 15 posts - 241 through 255 (of 274 total)