To see the different try the following:
DROP TABLE FOO;
DROP TABLE BAR;
CREATE TABLE FOO(
FOO_ID NUMBER,
FOO_NAME VARCHAR(20)
);
CREATE TABLE BAR(
BAR_ID NUMBER,
BAR_NAME VARCHAR(20)
);
INSERT INTO FOO VALUES(1,'Fawad');
INSERT INTO FOO VALUES(2,'Nazir');
INSERT INTO BAR VALUES(1,'Fawad');
INSERT INTO BAR VALUES(2,'Nazir');
INSERT INTO BAR VALUES(3,'Hello');
INSERT INTO BAR VALUES(4,'World');
-- Minus
SELECT BAR_ID FROM BAR
MINUS
SELECT FOO_ID FROM FOO
-- Right outer join
SELECT BAR_ID FROM FOO F RIGHT JOIN BAR B ON F.FOO_ID = B.BAR_ID WHERE FOO_ID IS NULL AND FOO_NAME IS NULL
In this case Both of the above queries give same results.
Subscribe to:
Post Comments (Atom)
Executive Summary: Anthropic's Claude Mythos Model
What Happened Anthropic announced Claude Mythos Preview , a new AI model it describes as its most capable ever — and so powerful in cyber...
-
> dotnet add package Microsoft.SemanticKernel.PromptTemplates.Handlebars --version 1.30.0 using Microsoft . SemanticKernel ; using Micr...
-
Setting up a MPI cluster on Ubuntu involves the following steps: 1. Install OpenMPI on all machines. $sudo apt-get install libopenmpi-de...
-
Finding a session: ------------------ SELECT USERNAME, OSUSER, MACHINE, SID, SERIAL#, STATUS, SECONDS_IN_WAIT from v$session WHERE TYPE != ...
No comments:
Post a Comment