Viewing 15 posts - 11,431 through 11,445 (of 14,953 total)
Please create the test table I used, with the insert I used, in the database you are testing, and run your copy of the code on that. See if...
January 21, 2009 at 11:14 am
One statement is that win_id is the relationship between the two, but that column does not appear in either of those table definitions. Is it supposed to be in...
January 21, 2009 at 11:06 am
Yeah, but did you see the reply to that?
What's up with the grapes table that only has a priority column? What does that have to do with anything at...
January 21, 2009 at 11:02 am
Karma (1/21/2009)
Lord Vetinari...
January 21, 2009 at 10:59 am
You need to have a Group By clause on that query. What column of which table is the date supposed to come from?
January 21, 2009 at 10:52 am
Can you post the execution plans of the fast queries and the execution plan of the slow query? The code for both of them would be helpful, too.
January 21, 2009 at 9:46 am
You'd have a table of Mines or Sources. Since some are "mines" and some are "workings", I'd go with Sources and have a type column.
create table dbo.Sources (
SourceID int...
January 21, 2009 at 9:44 am
The only thing I can think of on that one is that perhaps the Where clause is causing a problem.
Also, I don't recommend using both Group By and Distinct in...
January 21, 2009 at 9:33 am
First, why use a trigger instead of an Identity column?
Second, you assign a value to a variable by:
declare @MyVar datatype
select @MyVar = column
from table
Third, you need to look at the...
January 21, 2009 at 9:28 am
The type of join is going to be based on what end result you want. Do you just want results that are in both tables? Then use "Inner...
January 21, 2009 at 9:25 am
After you redefined it as ragged right, did you refresh the columns?
January 21, 2009 at 9:21 am
I'll give my usual recommendations:
Spend a lot of time on sites like this one, read and post both questions and answers.
Find a book that communicates well to you.
On the book...
January 21, 2009 at 9:17 am
majorbloodnock (1/21/2009)
January 21, 2009 at 9:10 am
Speed on something like that will depend a lot on how you query it and how much data you are querying. Can you post the code you have so...
January 21, 2009 at 9:01 am
Viewing 15 posts - 11,431 through 11,445 (of 14,953 total)