Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8602433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:05:04+00:00 2026-06-12T02:05:04+00:00

The operator APPLY is not an operator I’ve any experience of using and I’m

  • 0

The operator APPLY is not an operator I’ve any experience of using and I’m worried I’m missing certain possibilities.

This article by Alexander Kuznetsov gives a good example

In Alexander’s example he uses APPLY to join to the return from a function – are there other situations where APPLY, CROSS or OUTER should be the first thing I use?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T02:05:05+00:00Added an answer on June 12, 2026 at 2:05 am

    APPLY is a row-by-row operator that allows you to APPLY each row of the prior tables to either a function or a subquery. It therefore is very useful in situations where

    1. you need the latest/max/min record from B from each record in A
    2. you need to run a table-valued function on each record in A

    Yes it can substitute a JOIN but but it will perform terribly where a normal JOIN would have worked, because you’re forcing SQL Server to use row-by-row operators rather than set-based JOIN.

    The difference between CROSS APPLY and OUTER APPLY is the same as the difference between INNER JOIN and OUTER JOIN. Basically, CROSS APPLY will remove the source record if the function/subquery to which it is applied returns 0 records. OUTER APPLY keeps the source record.

    Read more : Using Apply (msdn)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running Python 2.5, so this question may not apply to Python 3. When
I did not get exactly how to use an or operator within an Xpath.
I need to make tutorial for beginner using the R *apply function (without using
I am hoping this is something small and not a big issue. I am
Sorry if i posted this here wrong. But i sort of did not know
What does this error mean, and why does it apply? I can't find much
I am working with some code that uses the %*% operator to apply vectors
This related question How can I apply a function to every row/column of a
class apple { public : operator orange () const { cout << operator; }
In C/C++, is there an easy way to apply bitwise operators (specifically left/right shifts)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.