Viewing 15 posts - 6,691 through 6,705 (of 8,760 total)
Jeff Moden (10/25/2014)
Eirikur Eiriksson (10/25/2014)
October 26, 2014 at 4:51 pm
QQ-485619 (10/26/2014)
what if that is a column name, e.g.select sum(saletotal)/NumberofDays
Either to an explicit type cast to numeric or float using cast or convert or multiply the column value with 1.0,...
October 26, 2014 at 1:14 pm
j.hoube (10/26/2014)
Not a problem replaced with AND statement instead of ON seems to have resolved it πThanks for the help and your time
J
Sorry about the error, quick copy/paste without checking...
October 26, 2014 at 11:49 am
QQ-485619 (10/26/2014)
I run the following statement: select 1/3 and I got 0.How do I do so that I can get 0.33?
Thanks,
Jian
SQL Server performs an Integer division on whole...
October 26, 2014 at 10:53 am
Good job, the scripts do explain what is happening
π
The table dbo.MMA_KPIVAR_DAT can have many instances of the same VARIABLE_ID, CLIENT_ID and SITE_ID. The table dbo.MMA_KPIVAR_MST can have many instances of...
October 26, 2014 at 8:05 am
No worries, there are several ways of doing this, have a quick look here for Generate Scripts (SQL Server Management Studio).
π
October 26, 2014 at 6:02 am
Quick question, can you post the DDL (create script) for those three tables?
π
October 26, 2014 at 4:45 am
GilaMonster (10/25/2014)
Anyone live anywhere where they can easily get a variety of different dried chillies? Stuff CosteΓ±o, New Mexico, Choricero, Arbol, Cascabel, Ancho, Mulatto, Negro, Pasilla?
A part from picking it...
October 26, 2014 at 4:11 am
sqldriver (10/25/2014)
Eirikur Eiriksson (10/25/2014)
You are on the right track there, a simple solution would be to "UPPER" the values before hashing. SHA1 is quite a lot cheaper computationally than MD5...
October 25, 2014 at 10:24 am
Lynn Pettis (10/24/2014)
October 25, 2014 at 9:24 am
sqldriver (10/25/2014)
Upper/lowercase is throwing things off, I think.
100 Musk Ox for you, sir.
SET STATISTICS IO ON
SET STATISTICS...
October 25, 2014 at 8:46 am
Quick thought, and bear with me if I sound slow :-p
1) how can you compare a date of birth to min or max age, doesn't sound right?
2) What is the...
October 25, 2014 at 8:17 am
Have a look at this post for a more complete answer
π
October 25, 2014 at 2:34 am
To get the desired output requires some data massaging, here is an example
π
USE tempdb;
GO
SET NOCOUNT ON;
;WITH SAMPLE_DATA([Add], [New], [Pro], [Len], [Source]) AS
(
SELECT 'Acorn', Null, ...
October 25, 2014 at 2:15 am
Quick solution using aggregation to remove the null values
π
USE tempdb;
GO
SET NOCOUNT ON;
;WITH SAMPLE_DATA(Advert,Network,Program) AS
( SELECT 'Acorn',NULL,NULL UNION ALL
SELECT NULL,'AC',NULL UNION ALL
SELECT NULL,NULL,'Adult'
)
SELECT
MAX(SD.Advert...
October 25, 2014 at 1:05 am
Viewing 15 posts - 6,691 through 6,705 (of 8,760 total)