Forum Replies Created

Viewing 15 posts - 421 through 435 (of 1,424 total)

  • Reply To: Datefirst format

    I'm still thrown off by week 53.  What?  How does this work?  This topic is the same as this other one I'm assuming

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Previous Week data to current week data

    These are ISO weeks?  If so filling in gaps using a tally function is probably not a good approach imo.  Needs a calendar table

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Previous Week data to current week data

    In the original question above the WeekNo column is CHAR(3).  In your response to Phil I did not read past the word "Yes" (which is the 1st word) because it...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Previous Week data to current week data

    Suppose your 'WeekNo' column contains a 'W' and maybe/(maybe not) a '-' and the leading 0's and spaces are all over the place.  The key calculation is the numeric wk_num...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: How to make select Dense Rank over max of TechnologyId Based on FeatureString Fo

    In which table is TechnologyId primary key?   Is there a linear dependency between PartId and TechnologyId?  Typically in general, if it's necessary to count (or rank) rows in order to...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Building a PC

    Back in the  200#'s I had my own home server with 2008R2 installed.  It was a Dell box and I bought different disk drives, memory, and cards to experiment with...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Identifying Orphaned Transactions

    One graceful solution could be for the vendor to address the issue they caused.  Another graceful way could be to rewrite the application so the DB Engine manages locks and...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Previous Week data to current week data

    Ok I updated the query so the ORDER BY is using the numeric 'wk_num' column instead of 'WeekNo' which is CHAR(3) and other slight changes too

    with lead_cte...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Previous Week data to current week data

    You could fill in the missing weeks by using the LEAD(WeekNo) function to determine start/end points of the ranges.  To expand rows across the ranges you could use the...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Looking for my "why use xml" aha moment

    Yes it's just an encoding.  How could one perform such an encoding without XML?  That's the hijacked topic 🙂  As an aside: I associated the encoding with a conversion because...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Looking for my "why use xml" aha moment

    Something similar iiirc.  As I recall HASHBYTES were applied too.  It was to make offers which expired

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Looking for my "why use xml" aha moment

    This concatenates (a bunch of guid's and an expiration date) together and encodes to binary base 64 and converts the result to nvarchar.  The encoded token could be used in...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Looking for my "why use xml" aha moment

    One area where it seems XML is required is for the conversion/encoding of strings to varbinary base 64.  Altho if there's newer way I'd be interested to hear about it

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: when save float numbers it converted to IE so how to solve this issue ?

    As frederico and Jeff have already explained the numeric value in the table has no display format of its own.  If you're ok with a type conversion (from numeric to...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: alias the name of pivoted columns

    'sysdate' is an Oracle function?  Idk the syntax doesn't look like SQL Server

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

Viewing 15 posts - 421 through 435 (of 1,424 total)