Viewing 15 posts - 1,711 through 1,725 (of 2,645 total)
To get the seconds waited you can use this:
select VehicleId,
SUM(DATEDIFF(ss,StartTime,EndTime)) Seconds,
Count(*) Count
from [dbo].[Table_Detail]
group by...
February 16, 2019 at 4:44 pm
Create table #tmp(id int,Type char(1))February 14, 2019 at 12:35 pm
February 14, 2019 at 10:59 am
I think dynamic SQL is the way to go with this, but if you were to do it with normal SQL you would end up with something like this:
February 14, 2019 at 9:02 am
Does it work if you put a DISTINCT in the SQL?SELECT [Masjien], aliasname = STUFF((
SELECT DISTINCT N', ' + Aliasnaam FROM Oesskattings
February 14, 2019 at 6:12 am
February 14, 2019 at 6:07 am
I think you are asking a question about Oracle in a SQL Server forum.
February 14, 2019 at 5:55 am
February 14, 2019 at 5:45 am
February 14, 2019 at 5:28 am
INSERT INTO MyTable2
SELECT x.AttributeName, x.AttributeValue
FROM myTable
CROSS APPLY(values ('WillField',WillField),
('Surname',Surname),
...
February 14, 2019 at 4:32 am
@Batchsize is the number of rows it deletes each time it goes round the inner loop. You need to keep this value small enough so it doesn't take too long...
February 13, 2019 at 5:09 pm
This doesn't pivot the data but is a fast (and a bit more simple than yours) way to get the subset of information back that you want.select...
February 13, 2019 at 9:12 am
February 13, 2019 at 7:27 am
I tried to reference to rstADO as a regular...
February 13, 2019 at 5:13 am
Viewing 15 posts - 1,711 through 1,725 (of 2,645 total)