Forum Replies Created

Viewing 15 posts - 106 through 120 (of 375 total)

  • Reply To: C# - how to convert string to date

    Thank you so much!

  • Reply To: need help with a SQL query

    Jonathan AC Roberts wrote:

    Not sure if this will be any faster, you might have to look at putting indexes on the table if it is not:

    ;with cte as
    (
    ...
  • Reply To: need help with a SQL query

    Jonathan AC Roberts wrote:

    water490 wrote:

    I think I fixed the issue.  I added t_date to the partition part and now I am getting the correct number of records.  The query is super slow...

  • Reply To: need help with a SQL query

    I think I fixed the issue.  I added t_date to the partition part and now I am getting the correct number of records.  The query is super slow though.  It...

  • Reply To: need help with a SQL query

    Thom A wrote:

    Seems like you could achieve this with a couple of CTEs. I assume that the value of T_date could differ, hence why I use window aggregation functions rather than...

  • Reply To: how to do this in SQL?

    the queries are giving the correct output now.

    thank you both so much!

  • Reply To: how to do this in SQL?

    Thank you both!!  I appreciate your help so much!

    I tested another scenario.  I added a different company in the list so there are now two not one company.

    Drew, your solution...

    • This reply was modified 1 year, 6 months ago by water490.
  • Reply To: how to return the min value of a column if a sub-query returns no results

    Thank you everyone!

    I will try them and report back any issues

  • Reply To: error using #temp tables

    Thank you everyone.

    This is very interesting.  Is this a bug within SS that you cannot drop a #temp table inside a SP using the DROP TABLE command?  Or is there...

  • Reply To: error using #temp tables

    one thing I should mention/clarify...

    each time I re-use #temp2 I am using a completely different select statement so the columns going into #temp2 will be different.

    it is odd that I...

  • Reply To: how to return the min value of a column if a sub-query returns no results

    thank you everyone for your feedback.  I will test the code and see how the output looks

  • Viewing 15 posts - 106 through 120 (of 375 total)