Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)

  • RE: Stripping out double quotes (") in bulk insert

    I think one problem one can have with this solution is Excel's limit of 65,535 records.

  • RE: max, group by question

    this is very useful, however i would like to adapt it to a subquery. shown below with bad syntax. any hints? thanks

    SELECT

    [HQID]

    , ID

    , [Description]

    ,[ItemLookupCode]

    ,[SupplierID]

    ,(select Suppliername from Supplier s where s.ID...

  • RE: RETURN EXISTS(...)

    Well the if/then or Case method is fine.

    I was just curious about the EXISTS() function. Aparrently the ways in which you can use it are limited by sql syntax....

  • RE: Prevent meeting overlap using UDF in Check() constraint

    Michael Earl (9/27/2007)


    Your check constraint is being evaluated after the data is put into the table, so the function is returning 1 because you have added the record. Make...

  • RE: get latest non-overlapping meeting

    /*

    almost! although that IS brilliant code. i can say that because i don't understand it 😉

    I believe I have not defined the challenge clearly enough. let me retrace the steps:

    */

    --the...

  • RE: get latest non-overlapping meeting

    Garsh, spoke too soon. Back to the drawing board...

  • RE: get latest non-overlapping meeting

    --add a couple more test records

    insert into sbssm.eventsegment (StartTime, EndTime, Activity_ID, Location_code) values

    ('2007-09-24 15:00','2007-09-24 16:00',2,'PL3')

    insert into sbssm.eventsegment (StartTime, EndTime, Activity_ID, Location_code) values

    ('2007-09-24 18:00','2007-09-24 19:00',2,'PL')

    GO

    -- EUREKA! this seems to do the...

Viewing 7 posts - 1 through 7 (of 7 total)