exam questions

Exam 1z0-082 All Questions

View all questions & answers for the 1z0-082 exam

Exam 1z0-082 topic 1 question 54 discussion

Actual exam question from Oracle's 1z0-082
Question #: 54
Topic #: 1
[All 1z0-082 Questions]

Which two statements are true about the DUAL table? (Choose two.)

  • A. It can be accessed only by the SYS user
  • B. It consists of a single row and single column of VARCHAR2 data type
  • C. It can display multiple rows but only a single column
  • D. It can be used to display only constants or pseudo columns
  • E. It can be accessed by any user who has the SELECT privilege in any schema
  • F. It can display multiple rows and columns
Show Suggested Answer Hide Answer
Suggested Answer: BF 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Sharif1
Highly Voted 3 years, 11 months ago
B and F are correct answers. F is correct : SQL> SELECT level, sysdate 2 FROM dual 3 CONNECT BY 4 level <= 4; LEVEL SYSDATE ---------- --------- 1 06-AUG-20 2 06-AUG-20 3 06-AUG-20 4 06-AUG-20 It can return multple rows and columns. D is wrong, you just create a brand new user and do not grant any privilege but still it can select dual table.
upvoted 19 times
SimoneF
3 years, 6 months ago
Thank you, I got to F by exclusion but I was having some trouble finding a good example of a case in which it returned multiple rows.
upvoted 4 times
...
AnimeshOracle
2 years, 2 months ago
F is incorrect because Dual has only one column. Here in your example what you are doing is a projection of multiple column through select statement which can be done in any table even though the table has limited number of columns.
upvoted 1 times
AnimeshOracle
2 years, 2 months ago
B,E seems to be more correct options.
upvoted 3 times
...
...
...
danito
Highly Voted 4 years, 1 month ago
B E https://docs.oracle.com/cd/B19306_01/server.102/b14200/queries009.htm
upvoted 12 times
ama
4 years ago
E seems wrong, i would choose A and D
upvoted 2 times
ama
4 years ago
sorry i mean, B & D
upvoted 5 times
Trowa
3 years, 11 months ago
BD are the correct answers. https://stackoverflow.com/questions/50212079/is-it-possible-to-have-multiple-rows-with-select-from-dual
upvoted 1 times
...
NiciMilo
3 years, 11 months ago
D is incorrect "Alternatively, you can select a constant, pseudocolumn, or ***expression*** from any table"
upvoted 2 times
ama
3 years, 11 months ago
well, then B, F seems fine
upvoted 1 times
...
...
...
...
...
kuvinod29
Most Recent 3 months, 3 weeks ago
Selected Answer: BF
SQL> create user c##test identified by test ; User created. SQL> grant connect to c##test ; Grant succeeded. SQL> conn c##test/test Connected. SQL> SELECT level, sysdate FROM dual CONNECT BY level <= 4; LEVEL SYSDATE ---------- --------- 1 24-MAR-24 2 24-MAR-24 3 24-MAR-24 4 24-MAR-24 BF
upvoted 2 times
...
nautil2
8 months, 3 weeks ago
Selected Answer: BF
A - false; DUAL is a table automatically created by Oracle Database along with the data dictionary. DUAL is in the schema of the user SYS but is accessible by the name DUAL to all users. Source: Oracle documentation - Oracle Database, Release 19, SQL Language Reference, 9 SQL Queries and Subqueries, Selecting from the DUAL Table B - true; single column DUMMY with datatype VARCHAR2(1) and value 'X' C - false; query SELECT sysdate, sysdate FROM dual; D - false; Alternatively, you can select a constant, pseudocolumn, or expression from any table, but the value will be returned as many times as there are rows in the table. Source: same as mentioned in answer A E - false; GRANT SELECT any table is not necessary to query DUAL table. Newly created user is not granted with any SELECT privilege, however he/she can query any own object and table DUAL. F - true; example SELECT with multiple row and column output is SELECT sysdate,sysdate+1 FROM dual CONNECT BY LEVEL <= 5;
upvoted 1 times
...
ismoil
8 months, 3 weeks ago
If I run desc dual; Name Null Type ----- ---- ----------- DUMMY VARCHAR2(1)
upvoted 1 times
ismoil
8 months, 3 weeks ago
So answer is B E
upvoted 1 times
...
...
Oracle2020
11 months ago
The correct answer is A,B. the dual table has only one row, it is accessed with the user sys and the column is of type varchar2 .
upvoted 1 times
...
zouve
11 months, 1 week ago
Selected Answer: BE
BE for me
upvoted 2 times
zouve
10 months, 3 weeks ago
DUAL is a table automatically created by Oracle Database along with the data dictionary. DUAL is in the schema of the user SYS but is accessible by the name DUAL to all users. It has one column, DUMMY, defined to be VARCHAR2(1), and contains one row with a value X. Selecting from the DUAL table is useful for computing a constant expression with the SELECT statement. Because DUAL has only one row, the constant is returned only once. Alternatively, you can select a constant, pseudocolumn, or expression from any table, but the value will be returned as many times as there are rows in the table.
upvoted 1 times
...
...
auwia
1 year ago
Selected Answer: BE
A. It can be accessed only by the SYS user --> False, anybody can select from dual. B. It consists of a single row and single column of VARCHAR2 data type. --> True C. It can display multiple rows but only a single column. --> False, only 1 single row and column (by default: select * from dual) D. It can be used to display only constants or pseudo columns. --> False, Expression too. E. It can be accessed by any user who has the SELECT privilege in any schema. --> True F. It can display multiple rows and columns. False, 1 row/column only.
upvoted 1 times
...
fthusa
1 year, 1 month ago
Answers should be BE
upvoted 1 times
...
Emperor11
1 year, 4 months ago
Selected Answer: BF
I correct myself B and F are correct because when you give the create session to any user, he is capable to select the dual table without give that exactly permission.
upvoted 1 times
...
Emperor11
1 year, 4 months ago
Selected Answer: BE
B and E are 100% correct. "DUAL is a table automatically created by Oracle Database along with the data dictionary. DUAL is in the schema of the user SYS but is accessible by the name DUAL to all users. It has one column, DUMMY, defined to be VARCHAR2(1), and contains one row with a value X." https://docs.oracle.com/database/121/SQLRF/queries009.htm#SQLRF20036
upvoted 1 times
...
Emperor11
1 year, 4 months ago
B and E are 100% correct. "DUAL is a table automatically created by Oracle Database along with the data dictionary. DUAL is in the schema of the user SYS but is accessible by the name DUAL to all users. It has one column, DUMMY, defined to be VARCHAR2(1), and contains one row with a value X." https://docs.oracle.com/database/121/SQLRF/queries009.htm#SQLRF20036
upvoted 1 times
...
chenwen
2 years, 2 months ago
B,E IS CORRECT
upvoted 2 times
...
casfdsaf
2 years, 4 months ago
Selected Answer: EF
I THINK EF
upvoted 2 times
...
yarsalan
2 years, 5 months ago
Selected Answer: BF
B , F are correct.
upvoted 2 times
...
ryuah
2 years, 6 months ago
B,F is correct
upvoted 2 times
...
dummydba
3 years, 1 month ago
B is correct as you guys explained here. And the other one should be E. E. It can be accessed by any user who has the select privilege in any schema. Any schema owner can select data from its own tables. so that argument is valid here.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago