Viewing 15 posts - 1,786 through 1,800 (of 2,007 total)
Have each one be dependant on a previous one completing before starting?
August 10, 2010 at 10:18 am
DECLARE @TEST AS DECIMAL(19,11)
SET @TEST = 55.32178699281
SELECT @TEST
,SUBSTRING(CONVERT(VARCHAR(MAX),@TEST),CHARINDEX('.',@TEST),LEN(@TEST))
,CONVERT(DECIMAL(19,11),SUBSTRING(CONVERT(VARCHAR(MAX),@TEST),CHARINDEX('.',@TEST),LEN(@TEST)))*60
/*
55.32178699281.3217869928119.30721956860
*/
August 10, 2010 at 10:15 am
Aspg (8/10/2010)
SEE IF THIS HELPS ....
Better 😉
CREATE TABLE #sample
(
code VARCHAR(2),
stardate DATE NOT NULL,
...
August 10, 2010 at 4:50 am
Aspg (8/10/2010)
Here is the sample data .
Enddate is currently null .
What i want is the endate of 1st row should be the yesterday (from startdate ) of 2nd row...
August 10, 2010 at 4:28 am
The reason no-one has posted a response is because you've not made it easy to help you 😉
Read this[/url], post us some sample data and expected results in the format...
August 10, 2010 at 3:32 am
Aspg (8/10/2010)
Here it is
First of all, a complaint.
When you get asked to post sample data, I should be able to copy it into my query window and execute to get...
August 10, 2010 at 2:12 am
DECLARE @TABLE AS TABLE(
[TIME] INT)
INSERT INTO @TABLE
SELECT 1
UNION ALL SELECT 60
UNION ALL SELECT 3600
UNION ALL SELECT 7200
SELECT totmin / 3600 AS [Total Hours]
FROM (SELECT CONVERT(DECIMAL(19, 5), SUM([TIME])) AS...
August 9, 2010 at 9:13 am
SELECT CONVERT(decimal, REPLACE('5,000',',',''))
August 6, 2010 at 4:53 am
My best ideas come when I'm sat on the toilet :blush:
Normal solutions simply come to me as I work through a problem.
August 6, 2010 at 2:10 am
jeff.mason (8/5/2010)
August 5, 2010 at 9:23 am
August 5, 2010 at 9:16 am
Steve Cullen (8/5/2010)
Note that you can do this:SELECT 1 WHERE NULL is NULL
Indeed. Or even
SELECT CASE
WHEN NULL IS NULL THEN...
August 5, 2010 at 9:02 am
Jeff Moden (8/5/2010)
August 5, 2010 at 8:43 am
It sounds like you posted in the wrong forum then, because this solution works for SQL Server 2008. If you're using a different version of SQL Server, you should've posted...
August 5, 2010 at 2:09 am
Viewing 15 posts - 1,786 through 1,800 (of 2,007 total)