Viewing 15 posts - 3,631 through 3,645 (of 26,490 total)
Savya (6/14/2016)
June 14, 2016 at 1:24 pm
Lynn Pettis (6/14/2016)
joe-584802 (6/14/2016)
CREATE FUNCTION [dbo].[GetHarvestYear] (@InputDate datetime)
RETURNS int
AS ...
June 14, 2016 at 1:20 pm
joe-584802 (6/14/2016)
CREATE FUNCTION [dbo].[GetHarvestYear] (@InputDate datetime)
RETURNS int
AS
BEGIN...
June 14, 2016 at 1:16 pm
Unfortunately, your picture cuts off much of the data. It is hard to tell how the data should be combined from multiple rows to a single row. Please...
June 14, 2016 at 12:00 pm
Luis Cazares (6/14/2016)
DECLARE @Sample TABLE(
SomeDate datetime,
HarvestYr int
);
INSERT INTO...
June 14, 2016 at 11:45 am
GSquared (6/14/2016)
Use Calendar tables for this...
June 14, 2016 at 11:10 am
something like this:
declare @TestDate datetime;
set @TestDate = '2016-06-15 10:12:00';
select year(dateadd(year,datediff(year,0,dateadd(month,-6,@TestDate)),0));
set @TestDate = '2016-07-15 10:12:00';
select year(dateadd(year,datediff(year,0,dateadd(month,-6,@TestDate)),0));
set @TestDate = '2017-03-12 14:30:00';
select year(dateadd(year,datediff(year,0,dateadd(month,-6,@TestDate)),0));
June 14, 2016 at 11:06 am
Kingston Dhasian (6/14/2016)
llouw1 (6/14/2016)
hi Kingston,my web browser is prohibiting me from getting into the code of the DelimitedSplit8K function...for some weird reason.
May you please embed in your reply?
thank you
Actually its...
June 14, 2016 at 9:31 am
As for how my query works, start with the following:
http://www.sqlservercentral.com/articles/T-SQL/62867/
http://www.sqlservercentral.com/articles/Tally+Table/72993/
The rest, play with the date functions. Understand that the zero (0) in the datediff function represents 1900-01-01 that is...
June 14, 2016 at 9:20 am
DiabloSlayer (6/14/2016)
That's exactly the results I need so THANK YOU very much !!
But... I don't know two things, so if you could please help me 🙂
1. How do...
June 14, 2016 at 9:13 am
DiabloSlayer (6/13/2016)
The client now added a...
June 13, 2016 at 11:35 am
The execution plan (even an estimated plan at this point) would also help.
June 13, 2016 at 10:56 am
DiabloSlayer (6/13/2016)
I need some help in setting up a Calendar Table or an Staging Table that I can use for running some reports.
I'm given a Start Date and an...
June 13, 2016 at 10:53 am
TSQL Tryer (6/13/2016)
I have the following TSQL
select STUFF(( SELECT ISNULL(',' + ltrim(rtrim(l.Description)) + ' ' + ltrim(rtrim(c.Surname)),'')
FROM ContactDetail c
LEFT JOIN ContactGroupMember cgm ON cgm.ContactId =...
June 13, 2016 at 10:37 am
Phil Parkin (6/10/2016)
Brandie Tarvin (6/10/2016)
Ed Wagner (6/10/2016)
WayneS (6/10/2016)
Phil Parkin (6/8/2016)
IF COL_LENGTH('dbo.mytable', 'col1') IS NULL
BEGIN
...
June 10, 2016 at 12:40 pm
Viewing 15 posts - 3,631 through 3,645 (of 26,490 total)