Viewing 15 posts - 1,036 through 1,050 (of 10,144 total)
Luis Cazares (12/15/2016)
TomThomson (12/15/2016)
December 15, 2016 at 10:46 am
Luis Cazares (12/15/2016)
ChrisM@Work (12/15/2016)
Luis Cazares (12/15/2016)
December 15, 2016 at 8:09 am
Luis Cazares (12/15/2016)
December 15, 2016 at 7:50 am
sgmunson (12/15/2016)
ChrisM@Work (12/15/2016)
yuvipoy (12/15/2016)
Error converting data type nvarchar to float is returning
Select Convert(mycolumn as float) from mytable;
mycolumn is nvarchar(100)
but my destination table is float , so i am...
December 15, 2016 at 6:52 am
yuvipoy (12/15/2016)
Error converting data type nvarchar to float is returning
Select Convert(mycolumn as float) from mytable;
mycolumn is nvarchar(100)
but my destination table is float , so i am converting to...
December 15, 2016 at 6:47 am
Indianrock (12/14/2016)
December 15, 2016 at 6:29 am
Shekhu (12/15/2016)
December 15, 2016 at 6:23 am
ffarouqi (12/14/2016)
I've been looking into this query and trying to see if there is any better way to write or enhance performance on these queries. Client states that these...
December 15, 2016 at 6:20 am
The "correct answer" (This can return a table from a query inside of a RETURN statement surrounded by parenthesis) is sneaky. Using ssc's most popular inline function as an example,...
December 15, 2016 at 5:37 am
Also:
SELECT
ra.AgreementSerial,
0-SUM( -- check that your brackets are unambiguous
(A.[Plastics Turnover value] * x.Plastics)
- (A.[Heating Spares Turnover Value] * x.HeatingSpares)
- (A.[Boiler Turnover Value] * x.Boilers)
- (A.[Copper Turnover Value]...
December 15, 2016 at 5:02 am
SELECT
ra.AgreementSerial,
SUM(- (((((PlasticsTV - HeatingSparesTV) - BoilerTV) - CopperTV) - OtherTV) - RadiatorsTV) - RenewablesTV) AS QualifyingSpend,
SUM(A.[Boiler Turnover Value]) AS BoilerTurnover, SUM(A.[Boilers Margin £]) AS BoilerMargin,
SUM(A.[Copper Turnover...
December 15, 2016 at 5:01 am
Sensible formatting throws up a difference:
SELECT
ra.AgreementSerial,
SUM(- (((((A.[Plastics Turnover value] * ISNULL(ra.Plastics, 0) -- [*]
- A.[Heating Spares Turnover Value] * ISNULL(ra.HeatingSpares, 0)) - A.[Boiler Turnover Value] * ISNULL(ra.Boilers,...
December 15, 2016 at 4:18 am
Shekhu (12/15/2016)
Check the below code, ISNULL function should help to resolve this.declare @Var INT
select top 10 * from tableName where ColumName= ISNULL(@Var,tableName)
Actually it won't, it's the same problem. Read...
December 15, 2016 at 2:55 am
zouzou (12/13/2016)
there you go
Comment out the left join, it's completely redundant - as you can see from the plan, it's optimised out anyway.
Can we please have actual rather than estimated...
December 13, 2016 at 9:01 am
tcronin 95651 (12/13/2016)
(71 row(s) affected)
Table...
December 13, 2016 at 8:20 am
Viewing 15 posts - 1,036 through 1,050 (of 10,144 total)