Viewing 15 posts - 6,121 through 6,135 (of 7,597 total)
WHERE
column_name LIKE '[a-z]%'
April 17, 2014 at 1:38 pm
Lynn Pettis (4/17/2014)
ScottPletcher (4/17/2014)
Lynn Pettis (4/17/2014)
ScottPletcher (4/17/2014)
April 17, 2014 at 10:37 am
SpeedySQL (4/17/2014)
April 17, 2014 at 10:28 am
Lynn Pettis (4/17/2014)
ScottPletcher (4/17/2014)
April 17, 2014 at 10:19 am
You need to do further research before you change the existing index to a filtered index, because that index will no longer satisfy queries originally using it if you filter...
April 17, 2014 at 9:12 am
gbritton1 (4/16/2014)
IF EXISTS (
...
April 16, 2014 at 11:07 am
I think this coding could theoretically perform better:
...
IF (@AnimalsFound = 1)
BEGIN
SET @CompleteSetFound =
CASE WHEN EXISTS(SELECT
1
FROM @FarmMatches ri
INNER JOIN [dbo].[Animal] ani ON ani.[FeatureID] = ri.[OverallID]
GROUP BY
FeatureID, Code
HAVING
MAX(CASE WHEN TypeName...
April 16, 2014 at 10:34 am
I suggest changing one of your existing indexes to also cover this query:
CREATE NONCLUSTERED INDEX [AI_OperatorCBGEstimate_14947]
ON OperatorCBGEstimate ( DateEndedStandard, UpdOperation )
...
April 16, 2014 at 10:04 am
I've coded checks for just Animal table groupings. Please check and see if it produces the results you want.
Edit: This is doing only full matches but partial matches could...
April 16, 2014 at 9:46 am
It's possible but it's huge overhead you should probably avoid.
You can use ROW_NUMBER() to sequentially number the data when you read it rather than having to physically update the values...
April 15, 2014 at 3:49 pm
You could try something like this and see if it helps:
WITH cte_OrderProjectType AS
(
select A.Orderid, min(B.TypeID) , min(C.CTType) , MIN(D.Area)
from tableA A inner join (
select PID,...
April 14, 2014 at 4:51 pm
Please add an alias to columns in the SELECT:
select ?.Orderid, min(?.TypeID) , min(?.CTType) , MIN(?.Area)
Otherwise we can't really rewrite any of the code.
April 14, 2014 at 2:12 pm
What specifically does the data in the "Verdate" look like?
For example, is it 'yyyymmdd hh:mm'?
April 11, 2014 at 4:25 pm
First properly tune the indexes, in particular getting the correct clustering index (hint: very often this means not clustering on an identity column). That is usually the single biggest...
April 11, 2014 at 3:56 pm
Easiest way with accuracy to me is to run the code for each table create without producing any data, then script out the CREATE TABLE statement to copy into the...
April 11, 2014 at 1:23 pm
Viewing 15 posts - 6,121 through 6,135 (of 7,597 total)