Viewing 15 posts - 4,636 through 4,650 (of 8,753 total)
rsrvas (9/3/2015)
I have 2 tables as defined below. I want to calculate PS1time and Ps2 time.
Table 1
O_IDP_TYPEP_startdateP_enddate
ABCP8/24/2015 13:148/24/2015 13:41
ABCP8/24/2015 14:038/24/2015 15:31
ABCP8/25/2015 12:098/25/2015 13:25
XYZP8/28/2015 13:108/28/2015 21:44
Table 2
O_IDS_TYPES_startdateS_enddate
ABCS28/24/2015 13:148/24/2015 19:22
ABCS28/24/2015 19:228/30/2015...
September 3, 2015 at 9:35 pm
whereisSQL? (9/3/2015)
eccentricDBA (9/3/2015)
crookj (9/3/2015)
Ed Wagner (9/3/2015)
Eirikur Eiriksson (9/3/2015)
Ed Wagner (9/3/2015)
Ray K (9/3/2015)
Ed Wagner (9/3/2015)
LogicalSpock
Ambassador
Brand
Image
Spawn
Worker
Ant
Colony
September 3, 2015 at 8:52 pm
TomThomson (9/3/2015)
Ed Wagner (9/3/2015)
Those who have never heard of it will sit...
September 3, 2015 at 8:01 pm
Ed Wagner (9/3/2015)
Ray K (9/3/2015)
Ed Wagner (9/3/2015)
LogicalSpock
Ambassador
Brand
September 3, 2015 at 12:59 pm
Ed Wagner (9/3/2015)
Grant Fritchey (9/3/2015)
Alvin Ramard (9/3/2015)
Jeff Moden (9/3/2015)
Alvin Ramard (9/3/2015)
Grant Fritchey (9/3/2015)
September 3, 2015 at 12:39 pm
patilar (9/3/2015)
you can use Fn_split () function . The Code for it is available in google
Quick suggestion, don't use the Fn_split function, use DelimitedSplit8K [/url]instead
😎
September 3, 2015 at 5:36 am
sandhyak16 (9/3/2015)
I am using FOR XML to generate the HTML and following is my query. I am using td { white-space:nowrap;} for the columns to used no wrap. But i...
September 3, 2015 at 2:22 am
mar.ko (9/2/2015)
Is there a way to -include mysql.sql or something like that ?
How does everyone handle...
September 2, 2015 at 10:50 pm
Ed Wagner (9/2/2015)
DonlSimpson (9/2/2015)
Luis Cazares (9/2/2015)
whereisSQL? (9/2/2015)
Ed Wagner (9/2/2015)
crookj (9/2/2015)
BL0B_EATER (9/2/2015)
Ed Wagner (9/2/2015)
BL0B_EATER (9/2/2015)
SQLRNNR (9/1/2015)
spinelessbackbone
Accountability
responsible
liable
Law
Lawyer
Judge
Jury
Executioner
Capital Punishment
September 2, 2015 at 12:07 pm
Steve Cornwell-278514 (9/2/2015)
September 2, 2015 at 5:56 am
What else is running on this server apart from the SQL Server? Why such a meagre memory configuration if the server has 512Gb of RAM? Are you RDP'ing on to...
September 2, 2015 at 12:33 am
Munabhai (9/1/2015)
CREATE TABLE #TEMP
(
date1 DATE,
date2 DATE
)
insert into #TEMP values
('2011-06-18','2011-06-29'),('2010-12-09','2010-12-15'),('2011-03-04','2011-03-16'),('2010-02-09','2010-07-08'),('2010-03-10','2010-03-31'),
('2010-03-31',null),('2014-08-01',null),(null,'2010-07-08'),('2010-07-08',null),(null,'2014-05-23'),
('2011-02-09','2011-02-02'),('2011-06-22','2011-06-14'),(null,null),(null,null)
SELECT date1, date2,
CASE
WHEN (ISNULL(date1, '1900-01-01') = '1900-01-01' AND ISNULL(date2, '1900-01-01') = '1900-01-01') THEN 0
WHEN ISNULL(date2, '1900-01-01')...
September 1, 2015 at 10:06 am
jharvey6 76850 (8/31/2015)
August 31, 2015 at 12:14 pm
Ed Wagner (8/31/2015)
SQLRNNR (8/31/2015)
Brandie Tarvin (8/31/2015)
Ed Wagner (8/31/2015)
Sean Lange (8/31/2015)
Grant Fritchey (8/31/2015)
August 31, 2015 at 12:04 pm
For fun, here is an alternative
😎
USE tempdb;
GO
SET NOCOUNT ON;
DECLARE @STR_DATE VARCHAR(6) = '083115';
SELECT CONVERT(DATETIME,STUFF(STUFF(@STR_DATE,3,0,'/'),6,0,'/'),1);
Output
2015-08-31 00:00:00.000
August 31, 2015 at 4:10 am
Viewing 15 posts - 4,636 through 4,650 (of 8,753 total)