When should I use cross apply over inner join?

前端 未结 14 1402
忘了有多久
忘了有多久 2020-11-22 06:51

What is the main purpose of using CROSS APPLY?

I have read (vaguely, through posts on the Internet) that cross apply can be more efficient when selectin

14条回答
  •  猫巷女王i
    2020-11-22 07:40

    I guess it should be readability ;)

    CROSS APPLY will be somewhat unique for people reading to tell them that a UDF is being used which will be applied to each row from the table on the left.

    Ofcourse, there are other limitations where a CROSS APPLY is better used than JOIN which other friends have posted above.

提交回复
热议问题