Forum Replies Created

Viewing 15 posts - 1,666 through 1,680 (of 4,085 total)

  • RE: Cursor

    Phil Parkin - Thursday, August 3, 2017 5:44 AM

    Akiota - Thursday, August 3, 2017 5:38 AM

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Are the posted questions getting worse?

    jasona.work - Wednesday, August 2, 2017 12:27 PM

    So, I haven't posted in this topic, but started following it because it had a...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Need help in SQL table for updating NULLS

    Here are two options: one using SUBSTRING, the other using STUFF.  You may have to play around with the data lengths.  You can also use strings instead of binary for...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Display members with active cards

    alicesql - Monday, July 31, 2017 6:40 AM

    Since John Doe wants active and inactive cards, I've built on J Livingston SQL's reply:

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Row_number() in case statement returning unexpected results

    This will happen if the ORDER BY clause in your OVER() clause is non-deterministic.  That is, you have two or more rows that have the same value for the partition/order...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: alone Many are related to trade

    Reported as spam.

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Identify and delete duplicate in a transaction

    komal145 - Tuesday, July 25, 2017 11:50 AM

    hi,
    This is  my sample  script to identify and delete the duplicate in a  transaction.  Please...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: How to better join my queries and prevent usage of functions

    ScottPletcher - Friday, July 21, 2017 7:14 AM

    I'll give it a guess.  Typically now you use OUTER APPLY to do the type...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Time difference

    pietlinden - Thursday, July 20, 2017 7:48 PM

    Thanks for the data sample... however, that's not super helpful. (Imagine copying and pasting that...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Extract substring from text between second set of parenthesis in a string

    You were asked to supply the sample data as INSERT statements, not as a spreadsheet.  Many people hesitate to open files from the Internet, because of the potential for harmful...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: How to select the column names of columns with a specific value

    You've been around long enough to know how to post sample data and expected results.  Also, one row isn't sufficient.  Adding even one more row to the data creates an...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: How to get top and bottom rows from where condition

    This uses a windowed function with a frame of 5 rows (2 preceding and 2 following [plus the current row]) and evaluates to "true" (1) if any record in...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: How to obtain first, but not empty value?

    You can fix this by changing the ORDER BY in your FIRST_VALUE calculation.
    Your first order field should be whether there is a name or not, and then by the...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: How to obtain first, but not empty value?

    SQL Server does not guarantee an order unless you specify an order.  Which field(s) are you using to specify your order?

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Are the posted questions getting worse?

    Somebody needs to learn how to use synonyms (unless they're purposely trying to obfuscate things).  I ran across a scalar-valued function in our client database and wanted to see exactly...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

Viewing 15 posts - 1,666 through 1,680 (of 4,085 total)