Forum Replies Created

Viewing 15 posts - 136 through 150 (of 3,544 total)

  • Reply To: SQL View - Pivot

    This looks like a standard pivot, for six levels thus

    SELECT[No_],
    MAX(CASE WHEN Num = 1 THEN [Minimum Quantity] END) AS [MinQty1],
    MAX(CASE WHEN Num = 1 THEN [Maximum Quantity]...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: Are the posted questions getting worse?

    Thom A wrote:

    David Burrows wrote:

    Anyone understand the life cycle. I thought MS were stopping SP in favour of CU but the life cycle is dependant on SP!

    Looks like it CUs again as...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: Are the posted questions getting worse?

    Thom A wrote:

    2019 is finally out for general release: SQL Server 2019 is now generally available

    Time to start looking at the specs and what it really includes in the Standard...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: Are the posted questions getting worse?

    Jo Pattyn wrote:

    To the person with the crystal ball, any prediction when SSIS projects will work properly in Visual Studio 2019?

    Thom A wrote:

    Jo Pattyn wrote:

    To the person with the crystal ball, any prediction...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: Avoid Group by Multiple Columns - Aggregate some columns

    I'm with Drew on this one. However some observations

    Firstly, the relationship between PRData  and TData should be 1-to-many otherwise TData will be repeated many times

    Second, GROUP BY will return one...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: Best Practice to Query SQL Server from Another SQL Server

    Jeff Moden wrote:

    I wouldn't fetter a machine with replication for something that runs just once per night.  Contrary to what most seem to say, I'd make a linked server, drag what...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: set datefirst question

    Jeff Moden wrote:

    David Burrows wrote:

    Jeff Moden wrote:

    P.S.  I also strongly agree with Scott... there's no way that I'd rely on DateFirst settings never mind actually change them.

    What is wrong with using DATEFIRST?

    Why the...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: set datefirst question

    Jeff Moden wrote:

    P.S.  I also strongly agree with Scott... there's no way that I'd rely on DateFirst settings never mind actually change them.

    What is wrong with using DATEFIRST?

    Why the strong negativity?

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: set datefirst question

    The default for DATEFIRST is 7 (Sunday)

    So

    set @dayOfWeek = datepart(dw,@Thur)

    will set it to 5 when you want it to be 4

    This will return 44 for both dates

    DECLARE...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: Are the posted questions getting worse?

    Thom A wrote:

    There's been a few games played over here (not that I've seen any of them). I thought they were played at Wembley or the Olympic Stadium.

    What "criteria" is it...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: Are the posted questions getting worse?

    Luis Cazares wrote:

    Also, the Browns … haven't even hosted a Superbowl. That's just sad.

    London has been cited several times for possible Superbowl and the new Tottenham Hotspur stadium was lauded for playability...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: Guaranteed Varchar to Date conversion

    Jeff Moden wrote:

    Any format containing yyyy-mm-dd can also throw you for a loop if the data had French origins because SQL Server uses YYYY-DD-MM with the French Language.

    There is NO WAY...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: After 2014 to 2017 Upgrade, table unused space growing massively.

    Jeff Moden wrote:

    TF 1118 and 1117 are automatically implemented in 2016.  You can turn them off for all databases except for TempDB.  I wouldn't turn 1118 off anywhere but I would...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: Dynamic - Row Level Masking.

    I don't think it is possible as Dynamic Data Masking  is applied to column(s) not rows.

    One thing to try is to create view that does your own masking of columns...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Reply To: Unsure how to define this query

    To really help we need CREATE AND INSERT statements for the tables and what is the expected output for the data supplied.

    However this might get you going

    SELECTStockCode
    FROM(SELECTw.StockCode,w.Warehouse,MAX(w.DateLastSale)
    FROM#InvWarehouse...

    Far away is close at hand in the images of elsewhere.
    Anon.

Viewing 15 posts - 136 through 150 (of 3,544 total)