Forum Replies Created

Viewing 15 posts - 556 through 570 (of 4,085 total)

  • Reply To: Post submittal checkbox defaults are backwards.

    Jeff Moden wrote:

    During original and followup posts, the checkbox for “Notify me of follow-up replies via email” should default to being checked. Most people (especially newbie original posters) want to be...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: Pivot and Unpivot

    koti.raavi wrote:

    I can use cast/convert to change data type of column while doing pivot/unpivot. Can above solution is feasible?

    It's a BAD idea and you really need to have a compelling reason...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: Issues with new forum software

    The old forum used to BOLD threads that had unread posts/replies and it also had a link to take you directly to the last unread post.  It's much harder to...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: Issues with new forum software

    I'm seeing bullets now.

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: How to calculate time difference between two dates portion by attendance

    Something like the following:

    SELECT *, DATEDIFF(HOUR, LAG(attendance_date) OVER(PARTITION BY EmployeNo ORDER BY a.attendance_date), attendance_date)
    FROM #tmp_employees
    CROSS APPLY ( VALUES( CASE WHEN Attendence = 1 THEN [Date] END )...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: Unpivot data

    You've been around long enough to know that that's not the way to present data.  You need to supply a script that will create a (temp) table or declare a...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: Pivot and Unpivot

    ScottPletcher wrote:

    For clarification, a SQL column does not have to be all the same type: SQL has a type of sql_variant that is designed to handle different data types in...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: Issues with new forum software

    It's not fixed.  I'm using Chrome (73.0.3683.86), and it doesn't show the bullets or the indentation.  I also checked IE (11.592.17134.0) and it doesn't show the bullets, but it does...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: Is dbo the a user (database owner) or a schema?

    michael.leach2015 wrote:

    Joe, Suppose that on SQL server we have 5 databases. When a schema groups database objects, do all those objects have to be within the same database? Or can...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: Issues with new forum software

    I posted something with a bulleted list, and it didn't retain the bullets.  I tried converting to use the BBCodes for ul/li, and it still didn't work.

    Also, there doesn't seem...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • Reply To: Pivot and Unpivot

    A database is not a spreadsheet.  You can't do a simple transpose like you can in Excel.

    • Databases are strongly typed, but Excel is not.

      • Database fields all have to...

    • This reply was modified 7 years, 2 months ago by drew.allen. Reason: Fixing formatting issues
    • This reply was modified 7 years, 2 months ago by drew.allen. Reason: Trying to fix formatting issues. The bullet items aren't being retained

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Using SUM OVER without an Order by

    jeffshelix - Thursday, March 28, 2019 10:25 AM

    We capture the MPF at a header level and call it TOTAL_MPF.
    We  also capture Line...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Need some help with a query

    I think this will work, but it is COMPLETELY UNTESTED.  I took out one of your ISNULLs, because I don't think it is necessary with this change, and I also...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Bizarre behavior around a Varchar (19) - SSMS is treating it like a date

    Why do you believe that SSMS is treating it as a date time?  I see no reason that it should.  It would help if you can give us some sample...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: TSQL: Grouping continuous timeslots together

    This is based on an update that Itzik made New Solution to the Packing Intervals Problem

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

Viewing 15 posts - 556 through 570 (of 4,085 total)