If you insist doing it "in single statement", how about this:
If we'd agree this would qualify as a single statement, we're all set. Right? :-D
To "support my argument": BOL qualifies EXEC as a statement: ...SQL Server extends the EXECUTE statement...
Of course, this would be a rather pathetic discussion on thin ice, but at least it could bring you in the position of "it depends" (on the definition of the term "statement" in the given context) instead of "it's not possible" at all ;-)
And, as soon as "statement" is defined more precisely as "DML statement", the "back door" is closed and locked leaving a more detailed question:
Based on the example provided by dwain a few posts back, if we update a "left" table in a 1 ..n relationship, will sql server perform n updates or will it just do a single update? Will this example really change the value to 'B' and back to 'A'? How would you verify?
It's a rather weird original question. But with quite some room to open a discussion. Hidden. But available.
LutzA pessimist is an optimist with experience. How to get fast answers to your question How to post performance related questions
Links for Tally Table
, Cross Tabs
and Dynamic Cross Tabs
, Delimited Split Function