Viewing 15 posts - 76 through 90 (of 105 total)
It might be in the list (and is often quoted as unsargable), but sargability surely must be defined by behaviour; hell, the nonsense name is derived from a description of...
October 12, 2010 at 8:03 am
Gianluca Sartori (10/12/2010)
The index CAN be used anyway, but this doesn't make the...
October 12, 2010 at 7:16 am
Gianluca Sartori (10/12/2010)
hallidayd (10/12/2010)
WHERE CARE_BOOKSERIES.Id IS NULL AND REVROLE_ROLEREVU_REVIEWERROLEID.NAME LIKE 'LE REVIEWER%'
For instance, these are one SARGable expression ( REVROLE_ROLEREVU_REVIEWERROLEID.NAME LIKE 'LE REVIEWER%') and a non-SARGable expression (CARE_BOOKSERIES.Id IS NULL...
October 12, 2010 at 6:34 am
WHERE CARE_BOOKSERIES.Id IS NULL AND REVROLE_ROLEREVU_REVIEWERROLEID.NAME LIKE 'LE REVIEWER%'
October 12, 2010 at 5:51 am
The answer to that could fill a book. I saw Conor Cunningham at SQLBits earlier in the year - his presentation was a very good overview:
http://sqlbits.com/Speakers/Conor_Cunningham/Default.aspx
To answer the...
October 12, 2010 at 5:48 am
SELECT Column1
, perc = SUM(CASE WHEN Column2 = 'No' THEN 1.0 END)/ COUNT(*) * 100.0
FROM ...
October 12, 2010 at 3:33 am
Do you mean you want John instead of Micheal because it appears "before" Micheal? If so, you are not in luck. Relational databases act on sets of data. There is...
October 12, 2010 at 3:25 am
The very simplest way is:
SELECT TOP 1
ID
, [DESC]
,...
October 12, 2010 at 3:20 am
Looks the same to me but I didn't look really closely.
SELECT DISTINCT
SUBSTRING(CONVERT(VARCHAR(6), REPLICATE('0', 6 - DATALENGTH(LTRIM(STR(NAME_MASTER.id_num, 6))))
...
October 7, 2010 at 7:47 am
pjr001 (10/7/2010)
I have 2 tables, dispLookup and campaign.
The dispLookup contains 2 columns, Code and Disp.
The campaign table contains date, time, code000...code199.
The dispLookup table contains a nice name for each column...
October 7, 2010 at 3:23 am
I am rephrasing Paul's answer in a way that makes sense to me - ignore if you've already got it.
A foreign key is a constraint - it restricts the values...
October 7, 2010 at 1:44 am
Viewing 15 posts - 76 through 90 (of 105 total)