0% found this document useful (0 votes)
200 views6 pages

1Z0-051 Sample

This document contains an exam with 11 multiple choice questions about Oracle Database SQL fundamentals. The questions cover topics like the INTERSECT operator, Oracle data types, joining and filtering data from multiple tables in SQL statements, functions like COUNT, TRUNC, and SUBSTR, and condition checking using INSTR and SUBSTR.

Uploaded by

164289
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
200 views6 pages

1Z0-051 Sample

This document contains an exam with 11 multiple choice questions about Oracle Database SQL fundamentals. The questions cover topics like the INTERSECT operator, Oracle data types, joining and filtering data from multiple tables in SQL statements, functions like COUNT, TRUNC, and SUBSTR, and condition checking using INSTR and SUBSTR.

Uploaded by

164289
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 6

Exam Name: Oracle Database: SQL Fundamentals

Exam Type: Oracle


Exam Code: 1Z00!1 Total Quest"ons 11#
Quest"on: 1
Which statement is true regarding the INTERSECT operator?
A. It ignores NULL values.
. Reversing the order o! the intersected ta"les alters the result.
C. The names o! columns in all SELECT statements must "e identical.
#. The num"er o! columns and data t$pes must "e identical !or all SELECT statements in the
%uer$.
#
Quest"on: $
Which three statements are true regarding the data t$pes in &racle #ata"ase 'g())g? *Choose
three.+
A. &nl$ one L&N, column can "e used per ta"le.
. A TI-ESTA-. data t$pe column stores onl$ time values /ith !ractional seconds.
C. The L& data t$pe column is used to store "inar$ data in an operating s$stem !ile.
#. The minimum column /idth that can "e speci!ied !or a 0ARC1AR2 data t$pe column is one.
E. The value !or a C1AR data t$pe column is "lan34padded to the ma5imum de!ined column
/idth.
A6#6E
Quest"on: %
E5amine the structure o! the .R&,RA-S
ta"le7 Name Null? T$pe
4444444444 4444444444444 444444444444444
.R&,8I# N&T NULL NU-ER*9+
.R&,8C&ST NU-ER*:62+
START8#ATE N&T NULL #ATE
EN#8#ATE #ATE
Which t/o S;L statements /ould e5ecute success!ull$? *Choose t/o.+
A. SELECT N0L*A##8-&NT1S*EN#8#ATE6)+6S<S#ATE+ =R&- programs>
. SELECT T&8#ATE*N0L*S<S#ATE4EN#8#ATE6S<S#ATE++ =R&- programs>
C. SELECT N0L*-&NT1S8ETWEEN*start8date6end8date+6?&ngoing?+ =R&- programs>
#. SELECT N0L*T&8C1AR*-&NT1S8ETWEEN*start8date6end8date++6?&ngoing?+ =R&-
programs>
A6C
Quest"on: #
0ie/ the E5hi"it and e5amine the structure o! the .R&-&TI&NS ta"le.
Which t/o S;L statements /ould e5ecute success!ull$? *Choose t/o.+
Page 1 of 59
Exam Name: Oracle Database: SQL Fundamentals
Exam Type: Oracle
Exam Code: 1Z00!1 Total Quest"ons 11#
A. U.#ATE promotions
SET promo8cost @ promo8costA )''
W1ERE T&8C1AR*promo8end8date6 ?$$$$?+ B ?2'''?>
. SELECT promo8"egin8date
=R&- promotions
W1ERE T&8C1AR*promo8"egin8date6?mon dd $$?+@?Cul ') D:?>
C. U.#ATE promotions
SET promo8cost @ promo8costA )''
W1ERE promo8end8date B T&8#ATE*SUSTR*?')4EAN42'''?6:++>
#. SELECT T&8C1AR*promo8"egin8date6?dd(month?+
=R&- promotions
W1ERE promo8"egin8date IN *T&8#ATE*?EUN ') D:?+6 T&8#ATE*?EUL ') D:?++>
A6
Quest"on: !
0ie/ the E5hi"it and evaluate structures o! the SALES6 .R&#UCTS6 and C&STS ta"les.
Evaluate the !ollo/ing S;L statement7
S;LBSELECT prod8id =R&-
products INTERSECT
SELECT prod8id =R&- sales
-INUS
SELECT prod8id =R&- costs>
Which statement is true regarding the a"ove compound %uer$?
Page 2 of 59
Exam Name: Oracle Database: SQL Fundamentals
Exam Type: Oracle
Exam Code: 1Z00!1 Total Quest"ons 11#
A. It produces an error.
. It sho/s products that /ere sold and have a cost recorded.
C. It sho/s products that /ere sold "ut have no cost recorded.
#. It sho/s products that have a cost recorded irrespective o! sales.
C
Quest"on: &
0ie/ the E5hi"it and e5amine the structure o! CUST&-ERS and SALES ta"les.
Evaluate the !ollo/ing S;L statement7
U.#ATE *SELECT prod8id6 cust8id6 %uantit$8sold6
time8id =R&- sales+
SET time8id @ ?224-AR42''F?
W1ERE cust8id @ *SELECT cust8id
=R&- customers
W1ERE cust8last8name @ ?Ro"erts?
AN# credit8limit @ G''+>
Which statement is true regarding the e5ecution o! the a"ove U.#ATE statement?
Page 3 of 59
Exam Name: Oracle Database: SQL Fundamentals
Exam Type: Oracle
Exam Code: 1Z00!1 Total Quest"ons 11#
A. It /ould not e5ecute "ecause t/o ta"les cannot "e used in a single U.#ATE statement.
. It /ould not e5ecute "ecause the SELECT statement cannot "e used in place o! the
ta"le name.
C. It /ould e5ecute and restrict modi!ications to onl$ the columns speci!ied in the SELECT
statement.
#. It /ould not e5ecute "ecause a su"%uer$ cannot "e used in the W1ERE clause o! an
U.#ATE statement.
C
Quest"on: '
<ou are currentl$ located in Singapore and have connected to a remote data"ase in Chicago.
<ou issue the !ollo/ing command7
S;LB SELECT R&UN#*S<S#ATE4
promo8"egin8date6'+ =R&- promotions
W1ERE *S<S#ATE4promo8"egin8date+(9GH B 2>
.R&-&TI&NS is the pu"lic s$non$m !or the pu"lic data"ase lin3 !or the .R&-&TI&NS ta"le.
What is the outcome?
A. an error "ecause the R&UN# !unction speci!ied is invalid
. an error "ecause the W1ERE condition speci!ied is invalid
C. num"er o! da$s since the promo started "ased on the current Chicago date and time
#. num"er o! da$s since the promo started "ased on the current Singapore date and time
C
Page 4 of 59
Exam Name: Oracle Database: SQL Fundamentals
Exam Type: Oracle
Exam Code: 1Z00!1 Total Quest"ons 11#
Quest"on: (
<ou need to displa$ the !irst names o! all customers !rom the CUST&-ERS ta"le that contain the
character ?e? and have the character ?a? in the second last position. Which %uer$ /ould give the
re%uired output?
A. SELECT cust8!irst8name
=R&- customers
W1ERE INSTR*cust8!irst8name6 ?e?+IB' AN#
SUSTR*cust8!irst8name6 426 )+@?a?>
. SELECT cust8!irst8name
=R&- customers
W1ERE INSTR*cust8!irst8name6 ?e?+IB?? AN#
SUSTR*cust8!irst8name6 426 )+@?a?>
C. SELECT cust8!irst8name
=R&- customers
W1ERE INSTR*cust8!irst8name6 ?e?+IS N&T NULL AN#
SUSTR*cust8!irst8name6 )642+@?a?>
#. SELECT cust8!irst8name
=R&- customers
W1ERE INSTR*cust8!irst8name6 ?e?+IB' AN#
SUSTR*cust8!irst8name6 LEN,T1*cust8!irst8name+642+@?a?>
A
Quest"on: )
Evaluate the !ollo/ing %uer$7
S;LB SELECT TRUNC*R&UN#*)HG.''64)+64)+
=R&- #UAL>
What /ould "e the outcome?
A. )G
. )''
C. )G'
#. 2''
E. )H'
C
Quest"on: 10
Which t/o statements are true regarding the C&UNT !unction? *Choose t/o.+
A. The C&UNT !unction can "e used onl$ !or C1AR6 0ARC1AR26 and NU-ER data t$pes.
. C&UNT*J+ returns the num"er o! ro/s including duplicate ro/s and ro/s containing NULL
value in an$ o! the columns.
C. C&UNT*cust8id+ returns the num"er o! ro/s including ro/s /ith duplicate customer I#s and
NULL value in the CUST8I# column
#. C&UNT*#ISTINCT inv8amt+returns the num"er o! ro/s e5cluding ro/s containing
duplicates and NULL values in the IN08A-T column.
E. A SELECT statement using the C&UNT !unction /ith a #ISTINCT 3e$/ord cannot have
a W1ERE clause.
6#
Page 5 of 59
Exam Name: Oracle Database: SQL Fundamentals
Exam Type: Oracle
Exam Code: 1Z00!1 Total Quest"ons 11#

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy