cross apply - cool trick in sql server

Поділитися
Вставка
  • Опубліковано 26 лис 2024

КОМЕНТАРІ • 10

  • @fairywhore
    @fairywhore 5 років тому +4

    You can also use cross apply to go off and get data from somewhere else while youre inside your query and using something from your query.
    Select tt.* from thisTable tt
    Cross apply(
    Select ot.* from myOtherTable ot
    Where ot.col1 = '4'
    ) myResult
    Where tt.col2 = myResult.col2
    Just random untested code but can be useful

  • @VeaceslavBARBARII
    @VeaceslavBARBARII 4 роки тому +5

    Left ear: OK
    Right ear: -
    You'd better record mono rather than half stereo.

  • @chillbro2275
    @chillbro2275 3 роки тому

    This is really cool! I wish it worked for window functions though. But this is definitely appreciated and useful.

  • @ConanNYC
    @ConanNYC 2 роки тому

    great trick!

  • @bobhoover1066
    @bobhoover1066 4 роки тому

    Great video!

  • @superfreiheit1
    @superfreiheit1 3 роки тому

    Cant see. You need to zoom in

  • @maatos
    @maatos 4 роки тому +1

    You ended up with more code in the end

  • @this-is-bioman
    @this-is-bioman 4 роки тому +4

    Yeah, really cool. Does not explain anything.