Forum Replies Created

Viewing 15 posts - 1,591 through 1,605 (of 2,645 total)

  • Reply To: Convert DATETIME to a date in ISO format

    Instead of 112 you need 105

    SELECT CONVERT(DATE,MAX(dato),105) FROM dbo.dutyrostershift WHERE employeeid = 11

    https://docs.microsoft.com/en-us/sql/t-sql/functions/cast-and-convert-transact-sql?view=sql-server-2017

  • Reply To: Time difference

    You should check how to post questions with consumable data before posting a question:

    https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help

    ;WITH CTE AS
    (
    SELECT * FROM (VALUES
    (34,1,1003,convert(time,'06:43:00'),convert(date,'01.04.2019'),101),
    ...
  • Reply To: Incrementally loading a very large Dimension table - Performance problems

    Change the MERGE to be an UPDATE followed by an INSERT. This will probably give you a 40% performance improvement.

    Check if the merge is updating any indexes, as this could...

  • Reply To: Finding duplicated values in multiple columns (Not the one we all know of)

    Declare @TheTable table (ID int, V1 varchar(1), V2 varchar(2), V3 varchar(1), V4 varchar(1))
    Insert into @TheTable values (1, 'A', NULL, NULL, NULL)
    Insert into @TheTable values (2, 'B', NULL,...
  • RE: More efficient delete sql

    olibbhq - Tuesday, March 26, 2019 9:47 AM

    Hi, thanks for your help in advance. Is there a way to make this query...

  • RE: Schedule Report After Data Is Processed

    RonMexico - Monday, March 25, 2019 10:10 AM

    So you are saying if the stored procedure should run at some point between 6...

  • RE: Schedule Report After Data Is Processed

    RonMexico - Monday, March 25, 2019 8:37 AM

    I'm new to SSRS and I'm trying to figure out how to have a report...

  • RE: Limit Size of Tables

    RonMexico - Monday, March 25, 2019 6:52 AM

    I'm looking for a way to put a cap on the size of newly created...

  • RE: A question about the EXISTS operator

    It will exist with a count of zero.
    You need to replace 'COUNT(*)' with '*'

  • RE: Are the posted questions getting worse?

    below86 - Friday, March 22, 2019 11:10 AM

    Just need a place to vent this... I was searching for a room on a...

  • RE: Calculation at each point in time

    anikeh - Friday, March 22, 2019 9:57 AM

    Because i am adding up the rates. I thought it would be easy to know...

  • RE: Calculation at each point in time

    anikeh - Friday, March 22, 2019 9:40 AM

    hi Jonathan

    I am looking for an output like this

  • RE: Calculation at each point in time

    anikeh - Friday, March 22, 2019 8:36 AM

    Hey Jo
    Thanks a lot.
    I am not sure I follow your reasoning.
    What do you mean "...

  • RE: Dynamic script to script out statistics before dropping them

    I'm not sure exactly what you are trying to do. But I think you want a script like this:
    IF OBJECT_ID('dbo.sysStatsBak') IS NULL BEGIN
          SELECT...

  • RE: t-sql 2012 sum of several fields

    ScottPletcher - Thursday, March 21, 2019 9:56 AM

    Jonathan AC Roberts - Thursday, March 21, 2019 8:14 AM

  • Viewing 15 posts - 1,591 through 1,605 (of 2,645 total)