A Mixed TVC

  • Comments posted to this topic are about the item A Mixed TVC

  • Nice question to end the week on, thanks Steve

    ____________________________________________
    Space, the final frontier? not any more...
    All limits henceforth are self-imposed.
    “libera tute vulgaris ex”

  • Certainly thought-provoking and interesting.
    I didn't know the TVC could include SELECTs.  I'm not sure how I'll use this knowledge (perhaps prototyping or what-if analysis), but it's kinda fun to play with.
    Thanks!

  • I never considered doing this before. Fun question. Thanks Steve.

  • Glad you all liked it. I thought it was interesting as well.

  • This strikes me as similar to the use of the VALUES clause in unpivoting data.

  • Should probably include "TOP (1)" in the selects... If, for whatever reason, the predicates allowed more than a single row in their respective result sets, you would get the following error: "Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression."

Viewing 7 posts - 1 through 6 (of 6 total)

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