Forum Replies Created

Viewing 15 posts - 2,071 through 2,085 (of 2,171 total)

  • RE: Timesum Problem

    Something like this?

    select *,

           case

               when logindate = logoutdate then datediff(ss, loginzeit, logoutzeit)

               else datediff(ss, 2 + logindate + loginzeit, logoutdate)

           end 'From Date Work Seconds',

           case

               when logindate...


    N 56°04'39.16"
    E 12°55'05.25"

  • RE: Timesum Problem

    The first problem I see is that you must look for both Honors table and LoginLogout table for which kind of day to use.

    You should consider having ALL rules in...


    N 56°04'39.16"
    E 12°55'05.25"

  • RE: Timesum Problem

    Das war nicht zu hart. Ich redigierte den Text für die einfachere Programmierung. Es ist sehr nett, ein Testklima für uns zur Verfügung zu stellen anderes, um Ihnen zu helfen....

    N 56°04'39.16"
    E 12°55'05.25"

  • RE: Timesum Problem

    Here is just the sample data modified to be inserted into a table variable for further development by everyone.

    See Last Post!

     


    N 56°04'39.16"
    E 12°55'05.25"

  • RE: Timesum Problem

    Can you provide some sample data here, da nicht alle gutes Deutsches sprechen.

    Zeit is "time"


    N 56°04'39.16"
    E 12°55'05.25"

  • RE: Generating a Sequential Pattern

    Iron clad?

    -- prepare test data

    declare @test-2 table (t varchar(50))

    insert @test-2

    select 'ov1' union all

    select 'ov2' union all

    select 'ov4' union all

    select 'ov31' union all

    select 'ssss1' union all

    select 'ssss99'

    -- show data before...


    N 56°04'39.16"
    E 12°55'05.25"

  • RE: IS there a better way to write this query

    Thanks.


    N 56°04'39.16"
    E 12°55'05.25"

  • RE: Casting error

    What happens when ObligationNo is equal to, say "This is a number" ?


    N 56°04'39.16"
    E 12°55'05.25"

  • RE: Passing List as Paramert to a Store Procedure

    As the question is written in the original posting, I am assuming that the client application is sending the list to the database. Hopefully the programmer of the client application...


    N 56°04'39.16"
    E 12°55'05.25"

  • RE: Casting error

    Also it is true that ISNUMERIC accepts currency symbols and not only tabs, spaces, plus/minus sign and decimal point that David pointed out earlier.

    See this code

    declare @test-2 table (item...


    N 56°04'39.16"
    E 12°55'05.25"

  • RE: IS there a better way to write this query

    Yes, there is a better way as Jeff writes.

    select     csuflxideb,

               csddedcode,

               csddeds2code

    from       checksumm

    inner join checksummded on csuflxid = csdflxidcsu

    where      csupayperiod like '2005%'

    group...


    N 56°04'39.16"
    E 12°55'05.25"

  • RE: Passing List as Paramert to a Store Procedure

    Why use XML and use additional resources from SQL Server when not needed?


    N 56°04'39.16"
    E 12°55'05.25"

  • RE: Passing List as Paramert to a Store Procedure

    WTF?

    For this you need dynamic SQL.

    CREATE PROCEDURE Test

    (

        @List varchar(50)

    )

    AS

        DECLARE @sql VARCHAR(1000)

        SELECT @List = REPLACE(@List, '"', CHAR(39))

        SELECT @sql = 'SELECT * FROM Types WHERE Type IN ('...


    N 56°04'39.16"
    E 12°55'05.25"

  • RE: SP

    insert textfile into temporary table. run check against temporary table. then insert data into the other tables you need to.


    N 56°04'39.16"
    E 12°55'05.25"

Viewing 15 posts - 2,071 through 2,085 (of 2,171 total)