Viewing 15 posts - 76 through 90 (of 95 total)
1861 possible solutions...
PenDVDPenDriveMouseTV
115414
...
67 4261
No cursors, no loops..
But I took 6 minutes to run the query..
April 18, 2014 at 9:20 am
You can use this query with the testvalues.
The WHERE filter on 3 * the same character to start (REPLICATE(LEFT(t.name,1),3) + '%')
and secondly on starting with a character between a and...
November 7, 2013 at 1:01 pm
Using a common_table_expression can make it more readable;
;WITH ToDelete (ConsumerId) AS (
SELECTConsumerId FROM Table_B WHERE DeleteFlag = 1
EXCEPT
SELECTConsumerId FROM Table_B WHERE DeleteFlag = 0
)
DELETETABLE_A
FROMTABLE_A INNER JOIN
ToDelete ON TABLE_A.ComsumerId = ToDelete.ConsumerId
October 9, 2013 at 5:57 am
karim.boulahfa (8/14/2013)
Louis Hillebrand (8/14/2013)
Use the case to get the correct character in front (or an empty string), and then add the incident_ref in...
August 14, 2013 at 2:44 am
For the formatting you can try this,
Use the case to get the correct character in front (or an empty string), and then add the incident_ref in 5 digits. (include...
August 14, 2013 at 1:47 am
Another wrong coin flip...
Just chose the wrong correct answer... still get my point?
June 13, 2013 at 4:05 am
The database I was testing on was on Compatibility level 80 (SQL Server 2000).
When I change the Compatibility level to 90 or 100 (SQL 2005 / 2008 ) the conversion...
June 11, 2013 at 10:01 am
Tried several options, but always found an implicit conversion in the Constant Scans to the type defined in the table definition.
On my system, the query runs if implicit conversion is...
June 11, 2013 at 9:36 am
This is my execution plan, as you can see, the date is converted to varchar in the Constant Scan.
Louis.
June 11, 2013 at 8:44 am
My Collation is also SQL_Latin1_General_CP1_CI_AS.
June 11, 2013 at 7:00 am
The final select returns '10' and '2012-10-10'
Louis.
June 11, 2013 at 2:36 am
When I run the 2nd query it inserts 2 rows into the table.
So my answer would be 'error', '2 rows', '2 rows'.
If I remove the insert from the 2nd...
June 11, 2013 at 1:15 am
This query shows the difference in the result.
SELECT I, N, N - 0.115
FROM @T
IN(No column name)
10.1150
20.115-1.38777878078145E-17
From BOL http://msdn.microsoft.com/en-us/library/ms187912(SQL.100).aspx
Avoid using float or real columns in WHERE clause search conditions, especially...
June 7, 2013 at 1:07 am
Just adding my solution,
I've been using this one for several years now.
CREATE PROCEDURE [dbo].[Dev_FindString](@S nvarchar(50))
AS
BEGIN
/*
Search through colums for specified text (@S)
Written: Louis Hillebrand
*/
SET NOCOUNT ON
DECLARE@Id int =...
March 14, 2013 at 10:09 am
Viewing 15 posts - 76 through 90 (of 95 total)