Forum Replies Created

Viewing 15 posts - 481 through 495 (of 600 total)

  • RE: The Phantom DBA

    Sorry for the thread necro, but found it interesting today that CNN had "Database Administrator" #7 on the "Best Jobs in America" list.

    link

  • RE: Results contain multiples of balances when multiple tables are joined

    One way to accomplish this is to do a crosstab or Pivot on write_off_code.

    I just built it in to Mark's code from above

    create table test_acc (

    ...

  • RE: Results contain multiples of balances when multiple tables are joined

    How many different possible write-off amounts are there? And are they fairly static?

  • RE: Results contain multiples of balances when multiple tables are joined

    Hi David,

    The problem seems to be that you are grouping by the write off code in the #test_payments table. This forces the query to give a separate row for...

  • RE: Query View Spec...

    LutzM (10/5/2010)


    Is there a question? :unsure:

    Looks like he put the question in the subtitle (I missed it the first time too)

    Here it is:

    I want to use the values executed by...

  • RE: Dynamic Query Problem using LIKE

    What I don't understand is why it works when I run it the second time but not via the stored proc.

    As I explained above, I think the problem is varchar...

  • RE: Dynamic Query Problem using LIKE

    Actually, THIS might be the problem

    EXEC sp_executesql @cmd,N'@ClientName varchar(37),

    @ClientSeq int,

    @Phone char(14),

    @GreatPlainsID char(10),

    @ClientID char(9),

    @ConglomerateID varchar(9),

    @ConglomerateFlag tinyint,

    @License char(14),

    @State char(4),

    @Attrition char(1),

    @ClientType char(1),

    @Active tinyint',

    @ClientName=@ClientName,

    @ClientSeq=@ClientSeq,

    @Phone=@Phone,

    @GreatPlainsID=@GreatPlainsID,

    @ClientID=@ClientID,

    @ConglomerateID=@ConglomerateID,

    @ConglomerateFlag=@ConglomerateFlag,

    @License=@License,

    @State=@State,

    @Attrition=@Attrition,

    @ClientType=@ClientType,

    @Active=@Active

    You convert your phone number like to a char(14), which would...

  • RE: Dynamic Query Problem using LIKE

    If you run the query statically does it work? In other words, if you assume knowledge of the parameters, type out the query yourself with the like statement, and...

  • RE: Join VS IN VS Exists

    ulteriorm (10/1/2010)


    @getoffmyfoot

    Even after considering various scenario's i was not very confident in both the queries performing the same tasks( Or maybe they are). I was replacing the logic in...

  • RE: Measuring Career Growth

    Never understood the christmas eve gift opening.

    1) Its not christmas yet

    2) 'Santa' hasn't come yet

    3) Give me something to play with christmas eve and good luck getting me to bed.

    4)...

  • RE: Problem with CURSOR

    Well, I've never tried it myself, so I'd probably refer to this article[/url] some guy wrote.:Whistling:

    Or I'd do the running total in whatever my frontend was.

  • RE: CTE vs. Table Variable

    That's correct.

    On the other hand, you can define multiple CTE's for use with one query.

  • RE: CTE vs. Table Variable

    g33kspeak (9/30/2010)


    Thanks Nevyn, I'll keep researching until I understand them better.

    They threw me off at first, too.

    This might help clarify[/url]

  • RE: CTE vs. Table Variable

    A CTE is more like a temporary view or a derived table than a temp table or table variable.

    They are used for very different things. Temp tables are temporary...

  • RE: Problem with CURSOR

    First and foremost, someone is going to point out to you that you probably dont need a cursor here, so it may as well be me.

    Second, its tough to tell...

Viewing 15 posts - 481 through 495 (of 600 total)