Viewing 15 posts - 6,976 through 6,990 (of 8,760 total)
Vimal Lohani (9/23/2014)
uff, what a question, so concentration required.my (70-461) preparation, helped me to solve this.
Aim for t' main sail, and go for t' treaaye map, then it be easy
😎
September 24, 2014 at 11:03 am
Hany Helmy (9/23/2014)
September 24, 2014 at 11:01 am
sestell1 (9/24/2014)
Arrrrr.... it be a shame ta not be postin' this question on September 19!
Me aim was set on that glorious day, sadly yet anothar broadside missed.
😎
September 24, 2014 at 10:58 am
TomThomson (9/24/2014)
However I was a little suspiciious about the no transformation...
September 24, 2014 at 10:54 am
Try this out for a size. Note, the statement you have doesn't do any formatting, in literal terms it means "convert into smalldatetime from a source that has 101 format.
😎
USE...
September 24, 2014 at 10:13 am
Thanks again Eirukur for your efforts and time! Highly appreciated! This part of the code is posing me some problems:
;WITH GuestStay ([ID number],DateOfArrival,DateOfDeparture)
AS (SELECT * FROM (VALUES
...
September 24, 2014 at 1:03 am
Here is the same code with the changed name and some explanatory comments. I noticed I had left the month sequence in the other code without using it, no need...
September 23, 2014 at 4:53 pm
jcrawf02 (9/23/2014)
September 23, 2014 at 2:55 pm
Try this for a size
😎
USE tempdb;
GO
SET NOCOUNT ON;
;WITH SAMPLE_DATA ([ID number],DateOfArrival,DateOfDeparture)
AS (SELECT * FROM (VALUES
(2031,'2014-03-20','2014-03-26')
,(1056,'2014-04-29','2014-05-03')
,(3245,'2014-06-19','2014-06-20')...
September 23, 2014 at 2:43 pm
Simple and maybe not perfect approach is like Luis mentioned, using try_parse. The drawback is that some unwanted values may parse but then again, that might be fine.
😎
;WITH TableA(Col1)
AS (SELECT...
September 23, 2014 at 2:16 pm
pitioageneral (9/23/2014)
[SSCommitted] In your solution, I have to assign both m values. That wasn't the request. Thanks anyway....
Sorry, made the assumption that you could comment out the unwanted output.
😎
September 23, 2014 at 9:17 am
More for fun, here is an alternative "solution", set to return six digits and the decimal separator.
😎
USE tempdb;
GO
SET NOCOUNT ON
/* Generate a set of numbers from 1 to
...
September 22, 2014 at 10:15 pm
mickyT (9/22/2014)
September 22, 2014 at 2:25 pm
Haven't done Weiszfeld's algorithm in TSQL, would love giving it a go as it is a good example of iterative approach which potentially could be converted into a set based...
September 22, 2014 at 1:07 pm
Viewing 15 posts - 6,976 through 6,990 (of 8,760 total)