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

  • Home
  • SEARCH
  • 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 6324711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:45:21+00:00 2026-05-24T16:45:21+00:00

For example, if I had the following query: select * from msgs as e

  • 0

For example, if I had the following query:

select * from msgs as e left outer join msgs as m on e.id = m.id where m.property

what exactly happens in the where part of the query?

  • 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-24T16:45:23+00:00Added an answer on May 24, 2026 at 4:45 pm

    If the value of m.property evaluates to true when interpreted as a boolean expression, the row gets selected.

    See http://www.sqlite.org/lang_select.html#whereclause

    It says

    • If a WHERE clause is specified, the WHERE expression is evaluated for each row in the input data as a boolean expression. All rows for which the WHERE clause expression evaluates to false are excluded from the dataset before continuing.

    For boolean expression it says

    • To convert the results of an SQL expression to a boolean value, SQLite first casts the result to a NUMERIC value in the same way as a CAST expression. A NULL or zero value (integer value 0 or real value 0.0) is considered to be false. All other values are considered true. For example, the values NULL, 0.0, 0, ‘english’ and ‘0’ are all considered to be false. Values 1, 1.0, 0.1, -0.1 and ‘1english’ are considered to be true.

    So it should evaluate m.property and cast it to a boolean, and keep the rows for which it is true.

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

Sidebar

Related Questions

Example: select ename from emp where hiredate = todate('01/05/81','dd/mm/yy') and select ename from emp
I was wondering if anyone had an example of what an array would look
I have the following example code: create table Details( name varchar(20), age int, weight
Is there any way to select a subset from a large set based on
I have a SQL query I'm having trouble creating using NHibernate Criteria: SELECT ID,
I worked on a project that had the following requirement: TableA is the parent
How can I response a 403 status code? I was following some example which
When I say simply say select c, the following code works, but I want
I had a following interview question. There is an array of nxn elements. The
I had the following (minor but nagging!) problem: I've got a PreferenceActivity with a

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.