Forum Replies Created

Viewing 15 posts - 1,936 through 1,950 (of 4,085 total)

  • RE: How can I prevent a record from appearing based on two columns

    Unless I'm missing something, it's very simple.

    SELECT *
    FROM #T
    WHERE PrescriptionID < DuplicatePrescriptionID

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Is is possible put IF inside the WHERE statement

    Eddie Wuerch - Friday, January 27, 2017 2:44 AM

    servat - Thursday, January 26, 2017 10:46 PM

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: t-sql 2012 using error handling logic

    Please use the SQL Code tags when posting SQL Code.  SQL Code is much easier to read when proper indentation is used, and the SQL Code tags preserve that indentation....

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Help with ranking functions

    Here is a solution using LAG.

    BEGIN TRY
      SELECT *
      INTO #mytable
      FROM (
          VALUES
      (1, CAST('2/26/2015 5:58' AS DATETIME), 'test1', 'test1',...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Help with ranking functions

    ROW_NUMBER(), RANK(), and DENSE_RANK() produce a monotonically increasing series within a partition with respect to the ORDER BY expressions.  That is, if your sort by partition expressions and then the...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: kindar garden

    Reported as spam.

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: The material rounds

    chynseni - Thursday, January 26, 2017 11:52 AM

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: SSIS - Stop parent based on child data

    kdbarrett 88655 - Thursday, January 26, 2017 11:22 AM

    drew.allen - Thursday, January 26, 2017 11:06 AM

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: t-sql 2012 make logic more obvious

    dianerstein 8713 - Thursday, January 26, 2017 11:19 AM

    In t-sql 2012, each of the sqls listed separately below work fine. However I
    would...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: SSIS - Stop parent based on child data

    kdbarrett 88655 - Thursday, January 26, 2017 9:29 AM

    So it's not an "error"; the file processes, it just doesn't get a match.

    You...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: The creative royal

    Reported as spam.

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: long time to reach

    Reported as spam.

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Query with multiple conditions (SQL 2016)

    When posting sample data and expected results, they must MATCH.  Your sample data contains two trade names: 'Alhidd Cold Store' and 'Store', and your expected results contain five names which...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Today's Random Word!

    Revenant - Wednesday, January 25, 2017 12:09 PM

    Ed Wagner - Wednesday, January 25, 2017 12:06 PM

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: If statement in Dataset query

    This is not the code that the error is referring to.  The error specifically mentions a RETURN statement, and there are no RETURN statements in this code.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

Viewing 15 posts - 1,936 through 1,950 (of 4,085 total)