Forum Replies Created

Viewing 15 posts - 9,826 through 9,840 (of 26,489 total)

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor (9/4/2012)


    OK, not my day. Not sure how to break the news here that this person is in way, way, over their head.

    http://www.sqlservercentral.com/Forums/Topic1353224-2799-2.aspx#bm1354093

    Not who I thought...

  • RE: max(date colum) help

    Luis Cazares (9/4/2012)


    A small change in the query:

    select

    program,

    Completed_task,

    timestamp

    from

    WorkQueue

    where type IN ('Software', 'Hardware', 'Software/Hardware')

    and status...

  • RE: Importing only rows with column data in specific columns.

    Should do something like this:

    with basedata (

    name,

    addy,

    ph,

    grade

    ) as (

    select

    name,

    ...

  • RE: Time as a high precision difference of dates

    Have you looked at DATETIME2 and TIME? They can go to 7 decimal places in precision and DATADIFF will go to nanoseconds if I remember correctly. Also, I...

  • RE: max(date colum) help

    SQL_NuB (9/4/2012)


    Lynn Pettis (9/4/2012)


    SQL_NuB (9/4/2012)


    Lynn Pettis (9/4/2012)


    How do you decide what date you want from your data?

    that date is in the table, so when I do select max(timestamp) from workqueue,...

  • RE: can any one plz tell me what is indexing for example ?

    Sean Lange (9/4/2012)


    sivajii (9/4/2012)


    it read this

    http://www.sqlservercentral.com/articles/Indexing/68439/

    here i didn't understand

    if there is an simple example means i can i understand easily

    select * from sys.indexes

    select * from sys.index_columns...

  • RE: max(date colum) help

    Or something like this:

    select

    program,

    Completed_task,

    timestamp

    from

    WorkQueue

    where

    ((type = 'Software' and status = 'Active')...

  • RE: max(date colum) help

    SQL_NuB (9/4/2012)


    Lynn Pettis (9/4/2012)


    How do you decide what date you want from your data?

    that date is in the table, so when I do select max(timestamp) from workqueue, that's the most...

  • RE: max(date colum) help

    How do you decide what date you want from your data?

  • RE: max(date colum) help

    Depending on your data, since we are now in September, and you want data for say 2012-08-29 where you may have data from before and after this date you may...

  • RE: time to ms

    eugene.pipko (9/4/2012)


    Do you think I am receiving following message because my data is stored in nvarchar(max) column?

    --------------

    Msg 241, Level 16, State 1, Line 9

    Conversion failed when converting date and/or time...

  • RE: query help

    Give this a try. Any questions, please ask.

    create table #temp

    (SchoolName varchar(12),

    GradeCode int);

    insert into #temp values ('SchoolName', 1);

    insert into #temp values ('SchoolName', 2);

    insert into #temp values ('SchoolName', 3);

    insert into...

  • RE: time to ms

    Both do the same for me:

    with testdata as ( -- this cte is only used to provide the test data for the code below

    select

    cast(dt.MyTime as time)...

  • RE: time to ms

    eugene.pipko (9/4/2012)


    Thanks for replies,

    Trying to use your last solution in the query and get an error:

    --------------

    Msg 241, Level 16, State 1, Line 9

    Conversion failed when converting date and/or time from...

  • RE: time to ms

    After seeing Luis's code, retested mine without the stuff, it still works:

    with testdata as ( -- this cte is only used to provide the test data for the code below

    select

    ...

Viewing 15 posts - 9,826 through 9,840 (of 26,489 total)