Forum Replies Created

Viewing 15 posts - 24,391 through 24,405 (of 26,486 total)

  • RE: How can this be explained

    Check out this code and see if it provides what you the results you require. Also, when writing multiple table queries, you should use table aliases for all columns,...

  • RE: Log Updated records into A table

    raym (8/7/2008)


    ENDED UP RE-WRITING IT

    SET @Records = (SELECT COUNT(*) FROM EDW_STAGE..tbComm_3Months_Ago)

    This is another way to write the code above:

    select @Records = count(*)...

  • RE: Log Updated records into A table

    This is what you are probably wanting to do:

    DECLARE @Records INT

    UPDATE STAGE..tbComm_3Months_Ago SET

    Miss_Payment_Flag = CASE WHEN Missed_Instalment < 0.3333 THEN 1 ELSE 0 END

    SET ...

  • RE: No More Katmai

    Running 3rd party apps, we can't move to SQL Server 2008 for them until the vendors say they will support SQL Server 2008.

    I will, however, look at moving our DW...

  • RE: Calling SUB Stored Procedure Within Cursor Loop

    Although you may think you can't eliminate the cursors, I'd suggest that you look seriously at rewriting the process as a set-based solution. It may take time, but in...

  • RE: Condition in JOIN clause

    You'd get a better answer if you posted your table ddl (create statements), sample data (in the form of inset statements that could be cut, pasted, and run in SSMS...

  • RE: db reader access

    You may look at DENYing select access to the user through the SCHEMA's sys and INFORMATION_SCHEMA. If denied select access to those schemas they should theoretically not have access...

  • RE: Cursor and while loop

    Using a cursor or while loop may not be the best answer. If you provide more details about what you are trying to accomplish, plus provide sample tables, sample...

  • RE: very very urgent plz

    Double posting your request isn't really going to get you help any faster. I am looking for an answer to your request for help, but it may be a...

  • RE: getting the next month base on a date

    With the exception of 1 company (2 if you include pre-existing conditions), I (and my family) have been eligible for benefits from date of hire (first deduction for benefits was...

  • RE: How to insert missing periods ?

    I am thinking we need more information, tabble DDL (create statements), sample data (insert statements that can cut, paste, and run in SSMS), expected results based on the sample data,...

  • RE: getting the next month base on a date

    Just to be sure, does this mean anyone hired in February isn't eligible for benefits until 4/1?

    😎

  • RE: Top 5 based on total order query

    Just a guess, but is this what you are looking for?

    SELECT TOP (5)

    ShipCountry,

    SUM (OrderTotal)as [Total Order],

    SUM (OrderTotalExVat) as...

  • RE: Dynamic Sql Update error

    This is what you are probably trying to do:

    declare @SQLUpdateCmd varchar(max);

    set @SQLUpdateCmd = 'UPDATE EDW_STAGE..tbComm_3Months_Ago SET ' +

    ...

  • RE: First time trying to get SQL mail to work

    The following is code from one of our jobs that looks for a name change and send an email if appropriate. Look at the logic, and see if you...

Viewing 15 posts - 24,391 through 24,405 (of 26,486 total)