Viewing 15 posts - 1 through 15 (of 19 total)
Thank you for this article. It works but the final HTML output is broken. I guess it has to do with the tags and since I am not well versed...
February 20, 2018 at 1:03 am
Eirikur Eiriksson (9/23/2014)
😎
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')
...
September 27, 2014 at 7:55 am
Hi ChrisM,
Here is the full query:
USE MYDATABASE;
GO
SET NOCOUNT ON;
;WITH GuestStay ([ReservationStayID],ArrivalDate,DepartureDate)
AS
(
SELECT ReservationStayID,ArrivalDate,DepartureDate
FROM GuestNameInfo
WHERE YEAR(ArrivalDate)=2014) AS X([ReservationStayID],ArrivalDate,DepartureDate)
)
,T(N) AS (SELECT N FROM ( VALUES (NULL),(NULL),(NULL),
(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL)) AS X(N))
,COUNTING_DAYS...
September 27, 2014 at 6:19 am
Hi Eirukur,
I'm afraid it's still not working for me. I'm sure I'm doing something wrong with the syntax! Grateful if you could have a look and point out the...
September 26, 2014 at 1:23 am
Thanks, Eirikur! Got it now! I should have read more attentively! Thanks again! 🙂
September 24, 2014 at 9:05 am
Eirikur Eiriksson (9/23/2014)
September 23, 2014 at 11:46 pm
Thanks a lot, Eirikur Eiriksson! Wow! I wished I could write SQL queries that good!
I'm a bit confused with the first part of the query (blame that on my...
September 23, 2014 at 4:17 pm
Thank you for your solutions guys! Sorry for getting back late on this topic.
I am still a bit confused at the final solution proposed by ben.brugman.
If I understand well, my...
December 3, 2013 at 12:55 am
Thanks, Lowell! 🙂
November 25, 2013 at 2:10 pm
Thanks mister.magoo and bitbucket! Wow, I didn't know it was so complex to do that! SQL Server being a Microsoft product (same as Excel), I believe there should have been...
November 17, 2013 at 3:06 am
Thanks for pointing this out, Grant! Indeed, very important to know!
October 22, 2013 at 5:08 am
Ok thanks GilaMonster!
October 22, 2013 at 3:10 am
It works!! Thanks a lot, twin.devil!:-)
October 21, 2013 at 5:24 am
Thank you Koen...but I'm still confused. I don't have Excel 2013. I'm currently using Excel 2010. Do you mean that I need to have Sharepoint installed?
October 8, 2013 at 2:05 pm
Thanks SSC! I downloaded that version from the Microsoft website and it installed without a glitch! 🙂
October 8, 2013 at 1:39 pm
Viewing 15 posts - 1 through 15 (of 19 total)