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 614501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:07:07+00:00 2026-05-13T18:07:07+00:00

I’m reading a paper on SCOPE that discusses SQL like query semantics for big

  • 0

I’m reading a paper on SCOPE that discusses SQL like query semantics for big data applications. It does not follow how SQL deals with null values and discusses “null-extended” variables, which I have not encountered before. Consider the pseudo-query

SELECT * FROM DATA WHERE A != B

What does “the predicate A != B is satisfied only for rows that are null extended on B” mean?

  • 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-05-13T18:07:07+00:00Added an answer on May 13, 2026 at 6:07 pm

    The term “null extended” is used generally to refer to the set algebra in a modern DBMS. That is, it “extends” regular relational algebra by introducing NULL values, or rather a single universal NULL value. Every predicate involving a NULL has a defined result that is logically consistent with the rest of the algebra.

    I’ve also seen the term used to refer to outer joins. For example, this query:

    SELECT A.id, A.name AS NameA, B.name AS NameB
    FROM A
    LEFT JOIN B
    ON B.id = A.id
    

    Might give you the following results:

      id  |   NameA   |   NameB
    ------+-----------+-----------
      10  |   John    |   Smith
      11  |   Jane    |   Doe
      12  |   Bob     |   NULL
    

    What’s happening here is that for id 12, A is being “null extended” with the columns from B because there are no values from B available. In general, when you perform a join on two relations, A and B, and you want to include tuples in A that have no matching tuples in B (outer join), then A must be null-extended with the attributes of B in order to form a complete result set.


    This specific line that you put in quotations:

    the predicate A != B is satisfied only for rows that are null extended on B

    …doesn’t really make sense when taken out of context. You have to look at the whole thing:

    SQ = SELECT DISTINCT Sc FROM S WHERE Sa < 20;
    M1 = SELECT Ra, Rb, Rc FROM R WHERE Rb < 100;
    M2 = SELECT Ra, Rb, Rc, Sc
        FROM M1 LEFT OUTER JOIN SQ ON Rc == Sc;
    Q = SELECT Ra, Rb FROM M2
    WHERE Ra > 5 OR Rc != Sc;
    

    And a little bit later:

    M1 rows that do not join with any rows from SQ are null-extended on Sc. The fourth select (Q) computes the final result by applying the predicate referencing the subquery. Note that the predicate Rc != Sc is satisfied only for rows that are null-extended on Sc.

    Now with some context, it’s easier to understand what they’re trying to say. Since the join condition in M2 is Rc == Sc, it follows that the condition Rc != Sc can only be true if Sc is NULL – otherwise, Sc would be equal to Rc because that’s how it was joined. In other words, the condition Rc != Sc can only be true for the rows in M2 where M1 was null-extended with the columns from SQ because it did not match any rows in SQ.

    Hopefully that clears up some of the confusion.

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

Sidebar

Ask A Question

Stats

  • Questions 394k
  • Answers 394k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Xuggle uses native code and relies on the FFmpeg library… May 15, 2026 at 2:30 am
  • Editorial Team
    Editorial Team added an answer Twitter has had a nice simple URL. https://api.twitter.com/1/users/profile_image/abraham It has… May 15, 2026 at 2:30 am
  • Editorial Team
    Editorial Team added an answer The key generation is not dependent on the cipher mode.… May 15, 2026 at 2:30 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.