Forum Replies Created

Viewing 15 posts - 1,861 through 1,875 (of 4,085 total)

  • RE: Many to Many Relationship Design Query

    kevin.obrien 66193 - Tuesday, February 21, 2017 1:23 PM

    drew.allen - Tuesday, February 21, 2017 11:38 AM

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Many to Many Relationship Design Query

    A tag is associated with a child, and only indirectly with the parent.  If a tag were associated with a parent, then ALL children of that parent would have that tag....

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Non-ANSI equal join - SQL 2012

    Jeff Moden - Thursday, February 16, 2017 4:19 PM

    drew.allen - Thursday, February 16, 2017 11:16 AM

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: inserting where clause into select query as variable

    You would need to use dynamic SQL, and you should never "simply plop" anything that will be executed into a query.  You should always take steps to prevent SQL injection.

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: How to insert a line break in a SQL Server VARCHAR/NVARCHAR string

    The issue that you're seeing is that the results you get depend on what user interface you are using.  Specifically, the grid view in SSMS returns different results than the...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: cross apply and xml and distinct

    andrew 67979 - Wednesday, February 15, 2017 7:01 AM

    Thanks very much indeed.

    I think this does exactly what I need I just need...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Exists on where clause

    ;
    WITH CTE AS
    (
        SELECT *, DENSE_RANK() OVER(ORDER BY n) AS dr
        FROM @Message m
        CROSS APPLY (
            SELECT 1
            FROM @vendor v
            WHERE v.MessageId = m.MessageId

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Exists on where clause

    What do you want to happen if there is information in the @vendor table, but it doesn't match any of the records in the @Message table?  No rows? Records that...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: creating a query not sure to use a union but that is the only option i have any help!

    ZZartin - Wednesday, February 15, 2017 3:35 PM

    Is this something like what you're looking for?

    Select column one, column two from...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: http://dietasrevisao.com/garnorax/

    Re

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Split one column with a UNC path into multiple columns

    As Thom has already said, this approach violates First Normal Form, and you've already run into problems because of this.  You should reconsider your approach.

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: The offer tio oc eo ckoe fitie eir ekre e

    Reported as spam.

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: The cease fire

    Reported as spam.

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: PROBLEM WITH UNIQUE IDS AND USING AGGREGATES TO CREATE DERIVED COLUMNS

    Without sample data and expected results, it's very difficult to troubleshoot your query.  You can find how to post those in the first link in my signature.

    My first...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Mulitiple Data Sets

    Sorry, didn't realize this was in SSRS.  You don't want five separate datasets.  You should either be creating two datasets (one for the main report and one for the grant...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

Viewing 15 posts - 1,861 through 1,875 (of 4,085 total)