Forum Replies Created

Viewing 15 posts - 5,326 through 5,340 (of 7,636 total)

  • RE: Help needed with a CASE

    Gary Johnson (10/10/2008)


    I would try this. Note that I'm only checking for existence in the case statement based on the left joins. I also removed your UDF in favor of...

  • RE: Help needed with a CASE

    Ok, try replacing the calls in the Query with just the definition. That should help some, anyway.

  • RE: Help needed with a CASE

    Those two UDF calls in the second subquery are probably killing any chance of optimizing it right now. Can you post their definition?

  • RE: A database design question

    meichner (10/10/2008)


    I have a Master/Detail relationship. My business rules state that there must be at least one Detail Item for each Master Item. From experience I know that...

  • RE: Optimizing a Stored Procedure

    tendayit (10/10/2008)


    I added the SET NOCOUNT ON line as someone was saying that it missing was causing the problem.

    You may need to move the corresponding SET NOCOUNT OFF to right...

  • RE: Optimizing a Stored Procedure

    tendayit (10/10/2008)


    The following error has occurred

    Error: Item cannot be found in the Collection corresponding to the requested name or ordinal.

    Please contact system administrator

    This is a client code or VB6 error,...

  • RE: 'N' number of usage - Tally Table

    Chris Morris (10/10/2008)


    Hi chaps, this might sound a little blasphemous, but have you tried Visual Foxpro for importing the data? I worked with the product extensively in the 90's (MCP...

  • RE: Select *

    Jeff Moden (10/9/2008)


    That would grab /*__*/ if it's on the same line as some code of embedded within a statement.

    Plus, * is an XQuery wildcard.

  • RE: 'N' number of usage - Tally Table

    Jeff Moden (10/9/2008)


    True enough... but have you ever see it used for anything other than a delimiter? 🙂

    I've seen it used for emoticons-> :Þ

  • RE: Exclude Word List to filter SELECT results

    Jeff Moden (10/9/2008)


    Yeah... that's the ticket. I lost track of this post... was busy feeding myself pork chops for having posted without testing. 🙂

    That's my favorite cure! 😛

  • RE: SQL 2000 Grouping Query

    Glad we could help.

  • RE: CSI -are they for real?

    Well here's one hint: There is no computer program in the world that can take a grainy .1 megapixel bank camera photo and turn it into a stunning 20...

  • RE: Exclude Word List to filter SELECT results

    Here's another (simple) way to do it:

    Select *

    From Locations

    Where NOT EXISTS( Select * From Excludes

    Where Location LIKE '%'+Excludes+'%')

    This is probably close to what Jeff intended to write, had...

  • RE: How to get all user roles on 2005?

    Fernando (10/8/2008)


    :w00t:

    :exclamation:

    Hello. This might something I am not familiar with in 2005. I have to restore a database in a test environment using a production backup. No big deal there....

  • RE: SQL 2000 Grouping Query

    You are going about this the hard way. You want to use "SUM( CASE ... )" constructs like this:

    select employee_id,

    employee_name,

    SUM( CASE When billable = 'N' Then 1 Else 0...

Viewing 15 posts - 5,326 through 5,340 (of 7,636 total)