Forum Replies Created

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

  • RE: IF STATEMENT IN WHERE CLAUSE

    dream coder (8/8/2008)


    Thanks i saw that step, i would still like to know if u can use an "IF" in the WHERE clause of the SQL statement cause i dont...

  • RE: How can this be explained

    Because nothing met the criteria specified in the WHERE clause??

    I can't really answer this question as I have no data (tables, sample data, expected results) with which to test the...

  • RE: Convert nanoseconds since 1/1/1601

    Not sure, but would using a decimal (decimal(24,0)) instead of bigint help at all?

    😎

  • RE: 1ST TIME CUSTOMER...

    Reformatted your code some so I could read it better, but really can't help you with the query as there really isn't enough information.

    It would help if you provided the...

  • 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,...

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