What is magic table?

Answers were Sorted based on User's Feedback



What is magic table?..

Answer / vaibhavi_dixit

Dual table is know as magic table, which has only one
columns with name as "DUMMY" and a row with value X.
One can describe DUAL with desc dual; command.
It is mainly used for testing some math expressions or some
character functions like
select (2+2) from dual;
It is automatically created,assigned to SYS but accessible
to all users.

VD

Is This Answer Correct ?    19 Yes 2 No

What is magic table?..

Answer / santosh

Dual is a magic table

Is This Answer Correct ?    15 Yes 2 No

What is magic table?..

Answer / roopesh kumar

In oracle Dual is a magic table.

Is This Answer Correct ?    15 Yes 4 No

What is magic table?..

Answer / shekharjchandra

We can view the structure of the DUAL table by

SQL> DESCRIBE DUAL

or being in SYS user

SYS> SELECT DBMS_METADATA('TABLE','DUAL','SYS') FROM DUAL ;

Before that use below set command

SQL> SET PAGESIZE 100 -- or whatever you like so that you can see whole structure of the create table definition

Regards
J

Is This Answer Correct ?    2 Yes 0 No

What is magic table?..

Answer / annam.n

dual is an imaginary table.it only used for process any
functions on there, but we can't view the structure of the
dual table.so the dual table is a magic table

Is This Answer Correct ?    6 Yes 10 No

What is magic table?..

Answer / brahma

They are two tables in MS Sql Server
1.Delete table
2.Update table

Is This Answer Correct ?    3 Yes 11 No

Post New Answer

More SQL PLSQL Interview Questions

What is the difference between sql/pl-sql/embeded sql?

3 Answers  


how are mysql timestamps seen to a user? : Sql dba

0 Answers  


Is a secondary key the same as a foreign key?

0 Answers  


what is indexing, searching and user interface?

1 Answers   HCL,


How do you update f as m and m as f from the below table testtable?

0 Answers  






Which is better cte or subquery?

0 Answers  


What is pragma in pl sql?

0 Answers  


what is a cursor? : Sql dba

0 Answers  


IN A TABLE HAVE ONE COLUMN PRIMARY KEY..IT WILL NOT ALLOWS NULL VALUES AND DUPLICATE VALUES..INSTEAD OF PRIMARY KEY WHY CANT WE USE UNIQUE AND NOT NULL.THESE TWO ALSO DOESNT ACCEPT NULL VALUES IN NOT NULL AND UNIQUE DOESNT ACCEPT DUPLICATE VALUES? SO WHAT IS THE DIFEERENCE BETWEEN(UNIQUE,NOT NULL) AND PRIMARY KEY??????

8 Answers   rsystems,


what is meant by forward declaration in functions?

4 Answers   TCS,


What is the use of function in sql?

0 Answers  


Which are the most commonly used sql joins?

1 Answers  


Categories