Viewing 15 posts - 61 through 75 (of 99 total)
PS: I know this uses the 'no join predicate', but the query is based on the 3rd party apps workings - I ran a profile trace to capture what...
April 15, 2015 at 3:49 am
Thanks. I had read a bit about the 'inserted' pseudo table but interpreted it as being explicitly for inserts, not updates.
April 1, 2015 at 9:36 am
Thanks both.
Scott, what's the purpose of FILLFACTOR? Never used it before.
January 16, 2015 at 11:09 am
Thanks. Seems to be getting further this time.
Why does this happen? As in in refuses to install in the Native Client is 'still' installed.
February 4, 2014 at 6:00 am
Alan.B (9/12/2013)If I understand the original OP correctly (" If something has been credited, the billed item row should be excluded") this would not provide the right answer with this...
September 13, 2013 at 2:42 am
It's a 3 party app that only allows you to credit the bill amount.
So say you bill 4X £100 separately, when you raise a credit you have to cherry pick...
September 13, 2013 at 2:37 am
Thanks Sean.
They're not real column names. I think you may have solved it anyway. If not, i'll provide some DDL
September 12, 2013 at 8:37 am
HowardW (8/23/2013)
Another option:
DECLARE @units int=177
SELECT DATEADD(MINUTE,@units*6,CONVERT(TIME,'00:00'))
This works, but for me it has hh:mm:ss.ms, i.e. 17:42:00.0000000
Can I get it to just be hh:mm?
August 27, 2013 at 2:55 am
Yes, 17.70 is 17.42.
For those that have 0 hours, ie 0.48 it errors out saying can't convert varchar to int.
EDIT: It's not just 0 hours that it does this with....
August 23, 2013 at 9:20 am
Richard Warr (8/23/2013)
Shouldn't it be 17 hours and 42 minutes?
SELECT CAST(177/10 AS VARCHAR) + ':' + CAST(177 % 10 * 6 AS VARCHAR)
should do it.
Not sure, it's been a...
August 23, 2013 at 8:59 am
Thanks guys.
Will have a play over the weekend.
May 31, 2013 at 3:54 am
Just in response to those who have mentioned time formats; this is hh:mm only.
April 8, 2013 at 8:55 am
Thanks both. Although I didn't exactly copy/paste, with the guidance above this is what works for me;
WHEREUser_ID = xxxx
AND MONTH(Date) = xxxx
AND (MONTH(GETDATE()) < 12 AND YEAR(Date) = YEAR(GETDATE())
OR MONTH(GETDATE())...
April 8, 2013 at 8:43 am
The thing is I only want it to include the next year if the current month is 12.
So if the current month is Jan-Nov only take dates from this year....
April 8, 2013 at 7:52 am
Viewing 15 posts - 61 through 75 (of 99 total)