Viewing 15 posts - 451 through 465 (of 1,082 total)
Thanks for the update Grant 🙂
I've seen a query which joins two views (ok those views where based on other views) and the FORCE OPTION changed the query from +30secs...
January 2, 2009 at 8:51 am
Hi,
As far as I am aware the join order will make no difference as the optimizer decides how to do them.
Unless you use the Query Hint Option 'FORCE ORDER'
January 2, 2009 at 8:01 am
Oh ok I guess it depends on the optimizer then
December 31, 2008 at 7:57 am
Hey Chris how you doing long time no chat 🙂
Just a note that if you found the solution could you post it please in case someone else has the same...
December 31, 2008 at 6:40 am
How about allowing the sort expression to be fully defined.
here is my code with your sample data.
CREATE TABLE Results
(Username VARCHAR(100),
Correct INT,
TotalTime DECIMAL(10,2),
testid INT)
INSERT INTO Results
SELECT 'Amy',9,13.5,1 UNION ALL
SELECT 'John',8,10.9,1 UNION...
December 31, 2008 at 6:30 am
Great tool.
I'm already started using it and it's a charm.
I made some changes for mine so that it could work in any workbook regardless of the names of the sheets....
December 31, 2008 at 5:33 am
Hi All,
Gail, stop me if I'm wrong, but could the OP not use an EXISTS in the where clause instead of the join and this would allow the optimizer to...
December 31, 2008 at 2:18 am
you might want to check the link in my sig (Help us Help you) as well , it gives good advice and what to supply when making posts.
🙂
December 30, 2008 at 10:08 am
ok I've created this code which you will note does not have clustered indexes on both tables but it still takes sec's to run.
you might need to supply the query...
December 30, 2008 at 9:54 am
which column is the clustered index on and also is the storeId FK to the Id on the machine table or the other way around?
December 30, 2008 at 9:45 am
which table does NumberofParts sit in and what indexes are on the tables?
December 30, 2008 at 9:29 am
Is this some sort of paging that you are trying to do?
December 30, 2008 at 6:34 am
I think this is what you want.
DECLARE @date DATETIME
SET @date = '2008-01-01 16:11:10'
SELECT RIGHT(CONVERT(VARCHAR,@date ,100),6)
December 17, 2008 at 8:33 am
try something like this.
DECLARE @YourTable TABLE
(Cust_ID INT,Date DATETIME)
INSERT INTO @YourTable
SELECT 1,'2008-12-05' UNION ALL
SELECT 1,'2008-12-08' UNION ALL
SELECT 1,'2008-12-25' UNION ALL
SELECT 1,'2008-12-28'
DECLARE @MyTable TABLE
(id INT IDENTITY(1,1),Cust_ID INT,Date DATETIME)
INSERT INTO @MyTable...
December 17, 2008 at 6:04 am
There is no row number in SQL 2000
What is it you trying to do?
December 17, 2008 at 5:44 am
Viewing 15 posts - 451 through 465 (of 1,082 total)