UPDATE using a self-join

  • I was a foxpro programmer for a long time. I think It was a good RDBMS. But it did have its issues. At a FoxPro conference I attended once for example, a speaker claimed that you could change a bit in a table and FoxPro would not complain about it, which is not ideal. But it was designed to function rather than break (and it's guesses were usually right was my impression).

    The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge. - Stephen Hawking

  • CELKO (2/1/2011)


    ACCESS had two camps -- the engine and the front end -- that did not like each other. The company policy was that if the front end could not come up with a neat GUI or display, the back end had to cripple the feature. That is why there was no UNION in version 1.0.

    Wow. Sounds like the stories I heard about Apple back in the day, with different computer teams competing against each other instead of the external competition.

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • Brandie Tarvin (2/2/2011)


    CELKO (2/1/2011)


    ACCESS had two camps -- the engine and the front end -- that did not like each other. The company policy was that if the front end could not come up with a neat GUI or display, the back end had to cripple the feature. That is why there was no UNION in version 1.0.

    Wow. Sounds like the stories I heard about Apple back in the day, with different computer teams competing against each other instead of the external competition.

    It happens in all large enough companies, I think. Certainly it went on in ICL. Of course people denied that that was what was going on, but it was absolutely clear to anyone watching it except, for reasons unknown, the managers who should have prevented it. It didn't happen in Linkguard - the company was too small and we didn't have enough developers for two factions to form.

    Tom

  • CELKO (1/31/2011)


    I do believe in portable SQL; I earn a living from it . Most ports are from release(n) to release(n+1) of the same SQL product.

    That, good sir, has been my point all along. Most ports ARE, in fact, "from release(n) to release(n+1) of the same SQL product" and will easily withstand the use of the wonderful and very high powered extensions that every dialect of SQL has.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • Brandie Tarvin (2/1/2011)


    GSquared (2/1/2011)


    Stefan Krzywicki (2/1/2011)


    Brandie Tarvin (2/1/2011)


    CELKO (1/31/2011)


    Successful projects start on lesser SQLs (even ACCESS ) then have to move to DB2, Oracle, Teradata or whatever.

    Including Access? What other lesser SQLs are there? I'm assuming you mean non-robust solutions, so I'm truly curious as Access (and maybe Lotus) is the only one I know for sure.

    Would FoxPro count?

    Only if you also count CSV files as "databases".

    Don't get me started. I know Business Users who swear Excel is a database. <*headdesk*>

    BWAA-HAA!!! IMHO, SQL Server (and other advertised RDBMS's) isn't much more than a very sophisticated and, perhaps, unnecessarily complicated file handler. Why is it so unreasonable for Business Users to think of Excel (or any other spreadsheet) as a "database" and why is it so unreasonable for us to not let them think that?

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • If a "database" is a means of storing data in a retrievable, orderly manner, then Excel can be a database. So can text files. Deep under the hood, it's all rows and columns in either format, unless it's "multi-dimensional arrays" as in Cache, or object properties (OODBs), XML, et al.

    So, yeah, let them use Excel as a database, so long as they understand the issues with concurrency, contention, integrity, reliability, recoverability, et al.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • GSquared (2/3/2011)


    So, yeah, let them use Excel as a database, so long as they understand the issues with concurrency, contention, integrity, reliability, recoverability, et al.

    I have highlighted the three relevant words which users seem to forget when treating Excel as a DB. The biggest issue, though, is data accuracy, which doesn't exist because people forget how easy it is to inadvertently delete a cell or type over the wrong cell.

    Then they wonder why it can't be fixed by IT. After all, we can fix everything else.

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • Brandie Tarvin (2/3/2011)


    GSquared (2/3/2011)


    So, yeah, let them use Excel as a database, so long as they understand the issues with concurrency, contention, integrity, reliability, recoverability, et al.

    I have highlighted the three relevant words which users seem to forget when treating Excel as a DB. The biggest issue, though, is data accuracy, which doesn't exist because people forget how easy it is to inadvertently delete a cell or type over the wrong cell.

    Then they wonder why it can't be fixed by IT. After all, we can fix everything else.

    I would have highlighted concurrency too - I don't know any useful means for dozens of people to have simultaneous write access to an excel file.

    Tom

Viewing 8 posts - 31 through 37 (of 37 total)

You must be logged in to reply to this topic. Login to reply