Forum Replies Created

Viewing 15 posts - 901 through 915 (of 1,424 total)

  • Reply To: How to create a minimal tally table and to describe its advantages (if any)

    Ok, here's a different comparison.  Suppose the query contains 34 UNION ALL SELECTS from a tvf generating 1000 row values in sequence.

    declare
    @start_dt ...

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

  • Reply To: How to create a minimal tally table and to describe its advantages (if any)

    That's over 100,000 rows.  When it drops to 10,000 the difference is much less.  Then when it drops to 1,000 the difference is so small it's hard to measure.

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

  • Reply To: How to create a minimal tally table and to describe its advantages (if any)

    Jeffrey Williams wrote:

    The first part of the problem is how you are generating the tally - you are generating too many rows.  The second part of the problem is the return...

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

  • Reply To: SQL query question

    All right that's nice progress.  Thanks for following up.  Well, an adID is the same thing as a RecordID.  If you recall the earlier query had RecordID in the select...

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

  • Reply To: How to update group no incremental by 1 based on every group from 1 to 3 ?

    ;with grp_cte as (
    select distinct r.PartIDC, r.PartIDX, r.step
    from #Replacement r
    join...

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

  • Reply To: EF Code-First

    Submitted the SSC article last night

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

  • Reply To: EF Code-First

    Progress.  We have 2 videos which are presentation ready.  The Demo video we recorded 5 times and the Quick Start video 3+ times.   It's taken multiple iterations.  Nobody listens to...

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

  • Reply To: Creating a unique Batch ID for Update

    ZZartin wrote:

    Keep in mind that'll update all the batch id's every time which might not be intended or a good idea on a large table.  Adding a WHERE batch_ID IS...

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

  • Reply To: Creating a unique Batch ID for Update

    As general issues go does this require ##temp to have global scope?  Also, why make the variables varchar(max)?  I got it to work like this

    drop table if...

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

  • Reply To: Can't update status to match characters in case of signature key value is stars?

    There was a slight addition needed to David Burrow's code above.  Which is nicely done and way better than the (now Closed) Stack Overflow answer to the same question. ...

    • This reply was modified 6 years, 2 months ago by Steve Collins. Reason: typo

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

  • Reply To: Are the posted questions getting worse?

    Yay!!  Just passed my goal of 1,500 points on Stack Overflow which means I can now create a tag for the JsonAutoService C# data access library.   I began on August...

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

  • Reply To: SQL query question

    It could be done with a correlated subquery too.  Stylewise I prefer >= and <= to BETWEEN AND.  Anything that's shorter, I like.  The more framework words you use the...

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

  • Reply To: SQL query question

    Something like this

    select sa.userID, a.RecordID
    from SmartAgents_toSend sas
    join Ads a on sas.adID=a.RecordID
    join SmartAgents sa on a.price between sa.priceFrom...

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

  • Reply To: How to write update statement to table statusvalues where chemical id have more

    ;with chem_count as (
    select chemicalId
    from #chemical
    group by chemicalId
    having count(distinct chemicalStatus)>1)
    update sv
    set...

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

  • Reply To: how to get Pivot result set using 3 tables

    Jeff Moden wrote:

    For a majority of people, I agree.  They just want a solution and there’s no learning no matter how hard you try.  It’s also one of the reasons why...

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

Viewing 15 posts - 901 through 915 (of 1,424 total)