What will be the output for the below Query
Select 'High' from dual where null = null;
Answers were Sorted based on User's Feedback
Answer / shijo
The Answer will always be null, since you never can equate a
NULL to another NULL. if the query was "Select 'High' from
dual where null IS null;" The answer would have been "High"
| Is This Answer Correct ? | 61 Yes | 19 No |
Answer / abhishek6555
The answer will be no rows selected as null = null will be
false condition and the where condition will become false.
| Is This Answer Correct ? | 14 Yes | 7 No |
Answer / amedela chandra sekhar
The correct answer is
SQL> Select 'High' from dual where null = null;
no rows selected
Chandu
chandumba2005@gmai.com
| Is This Answer Correct ? | 9 Yes | 5 No |
Answer / kart
since the query is syntaxically correct
the output will be
no rows selected;
| Is This Answer Correct ? | 3 Yes | 3 No |
Answer / vijay repe
Query will give o/p as 'High' if condition u put as null is
null insteat of null = null.
It considers as false where condition same as 1=2;
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sri
two nulls are not equal
so the answer is no rows selected.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / zia
Syntax is correct, but result will show only column heading without data as 'HIGH'.
| Is This Answer Correct ? | 2 Yes | 3 No |
How to order siblings in oracle hierarchy queries?
Is not null in sql?
What is normalisation and its types?
define sql delete statement ? : Sql dba
Are views faster than queries?
What is bulk collect in pl sql?
How do you use collections in procedure to return the resultset?
What is trigger and stored procedure in sql?
How many types of triggers are there in pl sql?
What is foreign key and example?
What is the difference between the conventional and direct path loader? : aql loader
Practice 1: Changes to data will only be allowed on tables during normal office hours of 8.45 in the morning until 5.30 in the afternoon, MONDAY through FRIDAY. A. Create a procedure called SECURE_DML that prevents the DML statement from executing outside of normal office hours, returning the message: “you may only make changes during normal office hours” b. Create a statement trigger on the PRODUCT table which calls the above procedure. c. Test it by inserting a new record in the PRODUCT table.
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)