Viewing 15 posts - 76 through 90 (of 926 total)
drew.allen (8/10/2016)
August 10, 2016 at 11:59 pm
Jeff Moden (8/10/2016)
You'd have none of these problems if you stored the data as normalized data instead of XML. 😉
<Boot><JeffModen>"+1"</JeffModen></Boot>
🙂
August 10, 2016 at 11:54 pm
while working with xml, please make sure you are using the exact same name, because XML is Case - Sensitive.
The problem is you need to change the "jobs" into...
August 10, 2016 at 8:04 am
SELECT
PromotionInd
, ISNULL(MAX(case when vChargeCode = 'BRK' then vChargeCode end),0) AS BrkChargeCode
, ISNULL(SUM(case when vChargeCode = 'BRK' then [ChrgAmt] end),0) AS BrkAmount
, ISNULL(MAX(case when vChargeCode = 'CLR' then vChargeCode...
August 10, 2016 at 6:06 am
SELECT
PromotionInd
, ISNULL(SUM(case when vChargeCode = 'BRK' then [ChrgAmt] end),0) AS BrkAmount
, ISNULL(SUM(case when vChargeCode = 'CLR' then [ChrgAmt] end),0) AS CLRAmount
, ISNULL(SUM(case when vChargeCode = 'BIN' then [ChrgAmt]...
August 10, 2016 at 5:13 am
User7766 (8/10/2016)
twin.devil (8/10/2016)
you Output table is not conclusive, Kindly share the output data according to your sample data.
Hi Twin.Devil,
Here is the desired output I'm expecting from the input data that...
August 10, 2016 at 4:38 am
you Output table is not conclusive, Kindly share the output data according to your sample data.
August 10, 2016 at 3:59 am
Sorry about the horrible expected results. They are wrong, but luckily that was not really the point.
Well, Most of the time that is really the point.
On a side note,...
August 7, 2016 at 11:58 pm
I'm no sure but i believe there is a calculation issue in your expected output.
/*****expected output**************
13/1/201612001.2
14/1/201614401.3
15/1/201618201.5 ----- This Should be 1440 * 1.3 = 1872
16/1/201629121.6 ----- This Should be 1872...
August 5, 2016 at 5:20 am
Well 1st you need to understand What Ltrim does. Check the following link for detail.
In Short Following is the definition of these function
RTRIM and LTRIM simply remove spaces from a...
August 2, 2016 at 4:27 am
is this one is one time report or you want to store it one historic basis and want to compare data on different dates?
July 29, 2016 at 6:05 am
Quick suggestion, you can you PATINDEX to validate Email as well as to get the Birth Year from the email address.
select dob, adj.YEAR_OF_BIRTH, email, IsValidEmail
from
(
Select cast('20160101' as datetime) as...
July 27, 2016 at 2:16 am
All I can think is there's some condition, like a timeout setting or something in PHP causing it to fail. But when I run it from SQL Mgt studio, it...
July 22, 2016 at 8:22 am
Viewing 15 posts - 76 through 90 (of 926 total)