Viewing 15 posts - 2,011 through 2,025 (of 10,144 total)
Resender (10/23/2015)
ok ounce sorry for the late response busy,busy,busy
Latest version
07:16
#Records 45193
Attached the actual execution plan.
Is this new rowcount correct?
October 23, 2015 at 6:24 am
ranjitdaljitmand (10/23/2015)
October 23, 2015 at 1:52 am
Alan.B (10/22/2015)
Scott did my first solution (that one only scans the table once)...Here's another way:
SELECT UniqIDFROM #SampleData
WHERE Code = 'ABC'
EXCEPT
SELECT UniqID
FROM #SampleData
WHERE Code <> 'ABC'
And another:
SELECT o.UniqID
FROM #SampleData o
WHERE...
October 23, 2015 at 1:31 am
SELECT d.CODE, e.*
FROM (
SELECT CODE
FROM ##SENData
GROUP BY CODE
) d
CROSS JOIN (
SELECT
[Month] = GETDATE(),
Value = 0,
Measure = 'HAR-01'
) e
October 22, 2015 at 8:53 am
Sean Lange (10/22/2015)
October 22, 2015 at 7:56 am
knockyo (10/22/2015)
In my column (FilePath) contains the values as below,
FILEPATH
---------------
\\Dpo-doctest1\Citibank Files\Citibank\07-JULY\20150703\C12\29P
\\Dpo-doctest1\Citibank Files\Citibank\07-JULY\20150703\C122\207
\\Dpo-doctest1\Citibank Files\Citibank\07-JULY\20150703\C124\212
\\Dpo-doctest1\Citibank Files\Citibank\07-JULY\20150703\C127\252
If my SQL as below,
select * from TRFile where FilePath LIKE '%\\Dpo-doctest1\Citibank Files\Citibank\07-JULY\20150703\C12%' order by FileName...
October 22, 2015 at 4:51 am
Resender (10/22/2015)
I might be missing something
Msg 4104, Level 16, State 1, Line 16
The multi-part identifier "x.Server" could not be bound.
Msg 4104, Level 16,...
October 22, 2015 at 2:06 am
You must be in Yerp to be active at this ungodly hour.
We're homing in on a decent solution now. Try this:
SELECT
Year_ = YEAR(dg.Date_),
Month_ = MONTH(dg.Date_),
dg.[Server],
dg.Domain,
COUNTRY = MAX(drc.COUNTRY),
Region =...
October 22, 2015 at 1:42 am
Resender (10/21/2015)
October 21, 2015 at 8:13 am
Resender (10/21/2015)
--distinct
13:12
108054
--no distinct
17:19
4919706
Rapid glamps shows same data but a lot of duplicates which I suspected.
I've included the actual execution plans, so far I'm happy the time is more then...
October 21, 2015 at 7:50 am
Sean Lange (10/21/2015)
gentong.bocor (10/17/2015)
October 21, 2015 at 7:42 am
rash3554 (10/21/2015)
I need a little help writing the query
Create table test(CompanyID int, VendorID varchar(10),SalesinMilUSD numeric(10,4));
insert into test(1,1000,10.3);
insert into test(1,2000,99.3);
insert into test(2,2000,0.8);
insert into test(3,3000,12.9);
insert into test(3,2000,13.1);
insert into test(3,1000,12.9);
insert...
October 21, 2015 at 6:53 am
Resender (10/21/2015)
Here are the actual execution plans for both versions.
I have created 1 clustered index in...
October 21, 2015 at 6:21 am
jonas.gunnarsson 52434 (10/21/2015)
But first verify duplicates
-- List duplicates for column
select A.<column_name>
from <table_name> as A
left outer join <table_name> as...
October 21, 2015 at 5:21 am
Here's that view formatted a little for readability:
CREATE VIEW [dbo].[VW_DTIRIS_Branck_Mngr_Hierarchy]
AS
SELECT --DISTINCT TOP (100) PERCENT
p.OrgUnitManager, p.OrgUnitID, p.OrgUnitName, p.ParentID AS CHILD1_ParentID,
C.OrgUnitManager AS CHILD1_OrgUnitManager, C.OrgUnitID AS CHILD1_OrgUnitID, C.OrgUnitName AS CHILD1_OrgUnitName,
C2.OrgUnitManager AS...
October 21, 2015 at 2:14 am
Viewing 15 posts - 2,011 through 2,025 (of 10,144 total)