Forum Replies Created

Viewing 15 posts - 10,696 through 10,710 (of 18,923 total)

  • RE: Looking for timeframe across multiple days

    SELECT convert(varchar(10),calldatetime,8) AS HOURS

    FROM Table

    WHERE project = 999

    AND DATEPART(hh, calldatetime) BETWEEN 3 and 6

    --or this depending on the requirements

    or DATEPART(hh, calldatetime)  >= 3 and DATEPART(hh, calldatetime)  < 6

    AND CALLTIME BETWEEN '2006-12-01...

  • RE: Get last record only if multiple exist

    Maybe it's not.  But it looks like it at this point.  But even with clean data you could have 2 employees with almost identical profiles except for SSN and bank...

  • RE: Unique Constraint Question

    Need help??  Just hire a junior DB into the team.

     

    Where do I send my resume?

  • RE: Get last record only if multiple exist

    2 employees could theorically have the same name, even the same adress/phone numbers.  The only unique field should be empID (which even here where I work is not unique but that's...

  • RE: Unique Constraint Question

    Anteres you need ot come back more often to this forum... I hadn't learned something new 2 posts in a row for quite a months.

     

    Thanx again.

  • RE: Get last record only if multiple exist

    Can you post some sample data so that I can tune my query.  I think it's the only one so far that can solve this problem.

  • RE: Testing or impersonator ?!?!

    Lol, or that enough new questions were posted so that this one disappears from the new posts list.

     

    PS You know ai never mean harm don't you, don't you?

     

  • RE: Random Select Query

    Or you can use this sample from my previous aherm  "attemp" .

     

    --BASE TABLE

    DECLARE @Jokes TABLE (UserID INT, CatID INT, JokeID INT)

    INSERT INTO @Jokes (UserID,...

  • RE: Random Select Query

    Yup and it is missing the categoryID part, but I'm sure he can finish up the work now .

  • RE: Random Select Query

    Thank GOD (Antares)!. 

    I knew there was a better way of doing this. 

    Now I'll be able to sleep tonight .

  • RE: T-SQL question in SQL 2005

    Just use a set based split function (which returns a table).  That way you won't have to use all those "evil" tools .

  • RE: Testing or impersonator ?!?!

    Lol, what I meant is that there's no need to repost that again... if anyone else feels the need to.

     

    Don't you guys hear my thaughts anymore??

  • RE: Table Size

    DOH! always the simple stuff.  I never have to on so I seem to forget about it .

  • RE: Testing or impersonator ?!?!

    No need to double post this message and give him more exposure.  I already e-mail Steve about this.

  • RE: How to alter Multiple columns in a table

    Let me find his phone number... I'll give him a ring .

Viewing 15 posts - 10,696 through 10,710 (of 18,923 total)