Viewing 15 posts - 4,531 through 4,545 (of 8,761 total)
In the case of using the convert function on the column in the where clause, I would only consider it if there are relatively few rows being sought, as those...
September 15, 2015 at 9:19 pm
Jeff Moden (9/15/2015)
September 15, 2015 at 11:41 am
Steve Jones - SSC Editor (9/15/2015)
September 15, 2015 at 11:34 am
djj (9/15/2015)
Ed Wagner (9/15/2015)
anthony.green (9/15/2015)
Ed Wagner (9/14/2015)
InspireEureka
Vacuum
tube
Commute
September 15, 2015 at 5:57 am
Trying this out :Whistling:, I'm wondering on what kind of logic Bobby is using.....
😎
USE tempdb;
GO
SET NOCOUNT ON;
;WITH T(N) AS (SELECT CONVERT(TINYINT,N,0) FROM (VALUES (1),(2),(3),(4),(5))AS X(N))
,BASE_DATA AS
(
SELECT
...
September 15, 2015 at 4:31 am
Koen Verbeeck (9/15/2015)
Real developers use HASHBYTES 😀
Same column order rule applies there too;-)
😎
September 15, 2015 at 2:52 am
robin 66943 (9/15/2015)
September 15, 2015 at 2:01 am
Without any further information on the data, structure or even an execution plan, it obviously is a pure guesswork. Can you supply some more information such as DDL, sample data...
September 15, 2015 at 1:24 am
SQLPain (9/14/2015)
September 14, 2015 at 11:03 pm
john_rowles (9/14/2015)
September 14, 2015 at 10:53 pm
Sorry, slightly hurried and inaccurate
😎
CONVERT(DATE,AppDetails.DateDetailDisposed,0) = CONVERT(DATE,DATEADD(DAY,-21,getdate()),0)
September 14, 2015 at 3:56 pm
kdejan87 (9/14/2015)
CREATE TABLE #NONAMETABLE(
ID INT
,column1 INT
,column2 int
);
INSERT INTO #NONAMETABLE(ID,column1,column2) VALUES
(1,100.00,40)
;
drop table...
September 14, 2015 at 3:49 pm
SQLPain (9/14/2015)
why do we need a between clause if I only need records...
September 14, 2015 at 3:40 pm
Viewing 15 posts - 4,531 through 4,545 (of 8,761 total)