Forum Replies Created

Viewing 12 posts - 31 through 43 (of 43 total)

  • RE: SELECT WHERE produces strange results....

    No data was returned with the first query.

    Steve Anderson

  • RE: SELECT WHERE produces strange results....

    Seems to prefer this, but I'm not sure how spaces consistently ended up in the data:
    SELECT   ProjectNumber, ProductName
    FROM    JobDetail
    WHERE   (ProjectNumber LIKE '%16-2506%')

    I...

    Steve Anderson

  • RE: Correspond Row Data

    Chris:

    This last post works great!  I just would not mind having a textbook that goes into these things a little deeper.  Do you know if one exists?

    Steve Anderson

  • RE: Correspond Row Data

    Chris:

    Much thanks for your patience.  I have read a few books and just do not see this.  Can you tell me a good reference to purchase for the...

    Steve Anderson

  • RE: Correspond Row Data

    Hello:

    My dilemma with this is that the last solution is no different than my first, except that it returns more data.  My goal is to return less data here.  I'm...

    Steve Anderson

  • RE: Convert Rows to Columns

    sgmunson:

    Thank you so much for the help on this.  Here is the solution:

    WITH P AS (SELECT DISTINCT F.DocumentID, F.[Filename], F.LatestRevisionNo, V.ValueText, V.VariableID
    ...

    Steve Anderson

  • RE: Correspond Row Data

    It seems to work, except for RV.Revision No. 
    Don't I need to somehow include this.  You have a column called recentness with a descending value for RevisionNo, so it seems.

    In my...

    Steve Anderson

  • RE: Convert Rows to Columns

    Good call, table fields.

    When I do the alias, I need to add ON, such as ON V3.DocumentID = V.DocumentID.
    DocumentID seems to be the only field available to...

    Steve Anderson

  • RE: Correspond Row Data

    Okay, I figured the table thing out, but how does this help me?  How to I harvest that data.  

    I realize this is confusing, or at least I...

    Steve Anderson

  • RE: Convert Rows to Columns

    Can you tell me what variables to do this on?  This format loses the Pivot Table, and VariableID is not available.

    Thanks!

    SELECT DISTINCT F.DocumentID, F.[Filename],...

    Steve Anderson

  • RE: Convert Rows to Columns

    Hello:

    So this seems to have addressed my issue with the PIVOT portion of this query.  Can you tell me, what is wring here?  It dows not seem to...

    Steve Anderson

  • RE: Correspond Row Data

    Hello:

    Thanks for your reply.

    I created the table, but I do not see it anywhere?  Can you guide me to where it put it, or how to...

    Steve Anderson

Viewing 12 posts - 31 through 43 (of 43 total)