In a 'Union ALL Select': If 1 select can't find any folder, but the other doesn't, will I get as a final result records found by the second select?

My goal is to have at the end of my select global the select sum of the first statement, and the second, but it is possible that the first select statement does not do anything OR select second does not do anything.

Truth tAble

Do not select any 1 select no record of nb expected 2

0                         0                    0

1                         0                    1

1                         1                    2

0                         1                    1

Hello

184f90c2-0738-4DAA-874B-7a0f5e1a141d wrote:

Unfortunately, I don't have the privileges to do so, that is why I am looking to the forum...

You say that you do not have the privileges to try a query yourself, or that you cannot create a table?

If you cannot run a query, regardless of what query someone messages in response?

If you can not create tables, then validate your data in a WITH clause.  For an example, see the Forum-FAQ:

Re: 2. How can I ask a question in the forums?

However, if you are supposed to be writing queries, then you should really be able to create and populate your own tables to test.

Tags: Database

Similar Questions

Maybe you are looking for