Forum Replies Created

Viewing 15 posts - 451 through 465 (of 4,085 total)

  • Reply To: T SQL Advance Report Month Range on the 16th - Looking For More Effect. approach

    I used a slightly different approach.  First, I totally agree with Phil.  It is much, MUCH easier to work with dates.  Days and Months are cyclical and it's very hard...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: Using SQL for multiple pulldowns

    I assume that you are using SSRS, since you reference pulldowns.  Check out the following link on how to Add Cascading Parameters to a Report.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: Customize a datetime field

    This is a problem with data type precedence.  Numbers have a higher precedence than strings so your strings are being converted to numbers (specifically -0 or 0), so you're doing...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: Row number not exactly working

    SSMS doesn't have built-in OCR, so a picture is worthless.  You should post consumable sample data like below.

    DROP TABLE IF EXISTS #YourTable;

    CREATE TABLE #YourTable
    (
    DateKeyINTPRIMARY KEY
    ,Property_KeyINT
    ,Property_Status_KeyBIT
    );

    INSERT #YourTable (DateKey,...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: Using TOP and count in single query

    irwank.it@gmail.com wrote:

    You can try this

    Select count(1) CNT from (SELECT top 200 * from tblSample) a

    Are you aware that this thread is a decade old and the original poster may not...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: How to Query an Excel file with mutiple cells for one single ID

    KoellPrit wrote:

    Thanks for your response Drew, the current image is not the actual sheet in question, added quickly as an example …  Couldn't we order by AssignedTo? thus SELECT  AssignedTo, UserSoftware...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: XML file

    You've heard the phrase "A picture is worth a thousand words"?  Well, data is worth a thousand pictures.  You're much more likely to get response if you provide consumable data. ...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: How to Query an Excel file with mutiple cells for one single ID

    Solving this in T-SQL requires a column to order by.  You don't have such a column in your data.

    Drew

    PS: "Assigned" is misspelled.

    • This reply was modified 6 years, 10 months ago by drew.allen.

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: BEGIN TRANSACTION, ROLLBACK TRANSACTION, COMMIT TRANSACTION

    DaveBriCam wrote:

    I do a lot of ad hoc update, insert, delete statements and was wondering if I should encapsulate using BEGIN... ROLLBACK... COMMIT to give me an out if something...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: Grouping

    Are you looking for a T-SQL solution or a Dynamics 365 solution?  It's probably easiest to do it in Dynamics 365, but I am not at all familiar with that...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: Efficient way to split a string

    Jeff Moden wrote:

    I might be missing something but that looks an awful lot like JSON.  Is it?

    I'm with Jeff.  This looks like a JSON document.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: query based on a Matrix table

    yahoo80 wrote:

    Hey

    I'm  looking for a smart idea on how to populate a field Priority with values H/M/L based on Column 1 (Activity type) and criticality

    So e.g. for Activity type '207-recertify'...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: Is it possible to modify the connection strings with TFS?

    Best practice is to set up a shared data source which is external to the SSRS report.  In the UAT environment, the shared data source would be set up to...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: Add "Filler Rows" to a subquery to tie values

    ross.hughes wrote:

    That is so great, thank you!  It works perfectly.  I am going to study it to wrap my head around what is happening here.

    I am assuming that I can...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: Regular Expression Conversion

    Try posting your question in English rather than whatever computer programming language this is.  Be sure to include sample data and expected results.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

Viewing 15 posts - 451 through 465 (of 4,085 total)