Viewing 15 posts - 121 through 135 (of 444 total)
Based on initial sample data and results i assumed that only date part of #Status.EffectiveEndDate is meanigful. That is any of
#Status VALUES ('1','Same','2009-07-01','2009-09-30',0)
('1','Same','2009-07-01','2009-09-30 10:03:17',0) etc
must be treated as...
September 8, 2015 at 11:11 am
AFAIU the problem is that ERP's "SQL command window" can get only string in the form
'date1','date2'..
while SQL proc needs
'date1,date2..'
and those "command window" provides no tools...
September 8, 2015 at 7:31 am
Try this
select
f.ID ,
f.Fee ,
f.Bill ,
f.A_Date ,
f.B_Date ,
EffectiveStartDate = case when f1.EffectiveStartDate < s.EffectiveStartDate
then cast(s.EffectiveStartDate as datetime)
else f.EffectiveStartDate end,
EffectiveEndDate = case when f1.EffectiveEndDate >= s.EffectiveEndDate
then dateadd(second,...
September 8, 2015 at 7:13 am
aleksandra 81219 (9/4/2015)
No, I have n variables from erp system and these n variables (for example 21 different separate dates, not one string!) have to be passed by ONE parameter...
September 7, 2015 at 7:36 am
Mikael Eriksson SE (8/18/2015)
Specifying the text() node is semantically different from not specifying the...
August 18, 2015 at 6:21 am
Your business logic needs some clarification.
First, i can hardly belive the company and its competitors have shared inventory database to compare prices Itemid by Itemid. Shouldn't it be some goods...
August 18, 2015 at 5:14 am
helal.mobasher 13209 (8/17/2015)
payment comes from two or more different insurances.
So you need dynamic pyvoting. See http://www.sqlservercentral.com/scripts/pivot/110353/
August 18, 2015 at 4:50 am
Probably it can provided this join joins no more then one row with the same dep.Departure_Code from ana subquery (see below, move it to WHERE) but it...
August 17, 2015 at 4:41 am
Looks like the whole table need to be converted into single row rather then transposed. Is it what you need really?
August 17, 2015 at 3:37 am
sqlserverstarter (8/16/2015)
To your questions: the slug_en can contain duplicates, but never within the same hierarchy, so "pillows" could occur multiple times but will always have a different parentid.
Based on this...
August 17, 2015 at 3:26 am
Thanks for sharing.
Create a new file group large enough to contain 90% of the original file (128 GB * 0.90) or 13GB
10% i guess.
August 17, 2015 at 2:08 am
I've checked the first query text using query diagrammer, namely off-line version of https://snowflakejoins.com/ and i see that
1) Product p is never used but in this join
JOIN...
August 7, 2015 at 5:46 am
COUNT(*) OVER (PARTITION BY docnome
...
August 7, 2015 at 1:46 am
Please examin query plans for all three queries above. Most probably you will not find the difference concerning perfomance.
Optimizer always tries its best to utilize PK index, you...
July 30, 2015 at 6:33 am
Have you compared execution plans for those queries ?
July 30, 2015 at 5:07 am
Viewing 15 posts - 121 through 135 (of 444 total)