DBMS – DATABASE MANAGEMENT SYSTEM FOR ADMINISTRATOR EXAM
QUESTIONS THAT EXPLAIN BETTER ABOUT SQL
1. OOEvaluate OOthese OOtwo OOSQL OOstatements:
SELECT OOlast_name, OOsalary, OOhire_date OOFROM OOEMPLOYEES OOORDER OOBY
OOsalary OODESC; OO
SELECT OOlast_name, OOsalary, OOhire_date OOFROM OOEMPLOYEES OOORDER OOBY
OO2 OODESC;
What OOis OOtrue OOabout OOthem? OO- OOSOL OO-The OOtwo OOstatements OOproduce
OOidentical OOresults.
Which OOstatement OOcorrectly OOdescribes OOSQL OOand OO/SQL*Plus? OO- OOSOL OO-Both
OOSQL OOand OO/SQL*plus OOallow OOmanipulation OOof OOvalues OOin OOthe OOdatabase.
Which OOview OOshould OOa OOuser OOquery OOto OOdisplay OOthe OOcolumns OOassociated
OOwith OOthe OOconstraints OOon OOa OOtable OOowned OOby OOthe OOuser? OO- OOSOL OO-
USER_CONS_COLUMNS
Evaluate OOthe OOfollowing OOSQL OOstatements:
DELETE OOFROM OOsales;
There OOare OOno OOother OOuncommitted OOtransactions OOon OOthe OOSALES OOtable.
Which OOstatement OOis OOtrue OOabout OOthe OODELETE OOstatement? OO- OOSOL OO-It
OOremoves OOall OOthe OOrows OOin OOthe OOtable OOand OOdeleted OOrows OOcan OObe
OOrolled OOback
Examine OOthe OOstatement:
Create OOsynonym OOemp OOfor OOhr.employees;
What OOhappens OOwhen OOyou OOissue OOthe OOstatement? OO- OOSOL OO-You OOcreate
OOan OOalternative OOname OOfor OOthe OOemployees OOtable OOin OOthe OOHR OOschema
OOin OOyour OOown OOschema
Which OOstatement OOis OOtrue OOregarding OOthe OOUNION OOoperator? OO- OOSOL OO-
NULL OOvalues OOare OOnot OOignored OOduring OOduplicate OOchecking
Which OOCREATE OOTABLE OOstatement OOis OOvalid? OO- OOSOL OO-CREATE OOTABLE
OOord_details
OO(ord_no OONUMBER(2),
OOitem_no OONUMBER(3),
OOord_date OODATE OODEFAULT OOSYSDATE OONOT OONULL,
OOCONSTRAINT OOord_pk OOPRIMARY OOKEY OO(ord_no, OOitem_no));
, Which OOobject OOprivileges OOcan OObe OOgranted OOon OOa OOview? OO- OOSOL OO-
DELETE, OOINSERT, OOSELECT, OOUPDATE
You OOneed OOto OOcreate OOa OOtable OOfor OOa OObanking OOapplication. OOOne OOof OOthe
OOcolumns OOin OOthe OOtable OOhas OOthe OOfollowing OOrequirements:
You OOwant OOa OOcolumn OOin OOthe OOtable OOto OOstore OOthe OOduration OOof OOthe
OOcredit OOperiod OOThe OOdata OOin OOthe OOcolumn OOshould OObe OOstored OOin OOa
OOformat OOsuch OOthat OOit OOcan OObe OOeasily
added OOand OOsubtracted OOwith OODATE OOdata OOtype OOwithout OOusing OOconversion
OOThe OOmaximum OOperiod OOof OOthe OOcredit OOprovision OOin OOthe OOapplication OOis
OO30 OOdays OOthe
interest OOhas OOto OObe OOcalculated OOfor OOthe OOnumber OOof OOdays OOan OOindividual
OOhas OOtaken OOa OOcredit OOfor
Which OOdata OOtype OOwould OOyou OOuse OOfor OOsuch OOa OOcolumn OOin OOthe OOtable?
OO- OOSOL OO-INTERVAL OODAY OOTO OOSECOND
The OOSTUDENT_GRADES OOtable OOhas OOthese OOcolumns:
OOSTUDENT_ID OONUMBER(12)
OOSEMESTER_END OODATE
OOGPA OONUMBER(4,3)
Which OOstatement OOfinds OOstudents OOwho OOhave OOa OOgrade OOpoint OOaverage
OO(GPA) OOgreater OOthan OO3.0 OOfor OOthe OOcalendar OOyear OO2001? OO- OOSOL OO-
SELECT OOstudent_id, OOgpa
OOFROM OOstudent_grades
OOWHERE OOsemester_end OOBETWEEN OO'01-JAN-2001' OOAND OO'31-DEC-2001'
OOAND OOgpa OO> OO3.0;
Which OOstatement OOis OOtrue OOregarding OOthe OOUSING OOand OOON OOclauses OOin
OOtable OOjoins? OO- OOSOL OO-The OOWHERE OOclause OOcan OObe OOused OOto OOapply
OOadditional OOconditions OOin OOSELECT OOstatement OOcontaining OOthe OOON OOor OOthe
OOUSING OOclause
The OOuser OOAlice OOwants OOto OOgrant OOall OOusers OOquery OOprivileges OOon OOher
OO*DEPT OOtable*. OOWhich OOSQL OOstatement OOaccomplishes OOthis? OO- OOSOL OO-
GRANT OOselect OOON OOdept OOTO OOPUBLIC;
You OOneed OOto OOdisplay OOthe OOdate OO11-Oct-2007 OOfrom OOtable OODUAL OOin
OOwords OOas OO*`Eleventh OOof OOOctober, OOTwo OOThousand OOSeven'*. OOWhich OOSQL
OOstatement OOwould OOgive OOthe OOrequired
result? OO- OOSOL OO-SELECT OOTO_CHAR(TO_DATE('11-oct-2007'), OO'fmDdthsp OO"of"
OOMonth, OOYear') OOFROM OODUAL;
The OOSTUDENT_GRADES OOtable OOhas OOthese OOcolumns:
OOSTUDENT_ID OONUMBER(12)
OOSEMESTER_END OODATE
OOGPA OONUMBER(4,3)
QUESTIONS THAT EXPLAIN BETTER ABOUT SQL
1. OOEvaluate OOthese OOtwo OOSQL OOstatements:
SELECT OOlast_name, OOsalary, OOhire_date OOFROM OOEMPLOYEES OOORDER OOBY
OOsalary OODESC; OO
SELECT OOlast_name, OOsalary, OOhire_date OOFROM OOEMPLOYEES OOORDER OOBY
OO2 OODESC;
What OOis OOtrue OOabout OOthem? OO- OOSOL OO-The OOtwo OOstatements OOproduce
OOidentical OOresults.
Which OOstatement OOcorrectly OOdescribes OOSQL OOand OO/SQL*Plus? OO- OOSOL OO-Both
OOSQL OOand OO/SQL*plus OOallow OOmanipulation OOof OOvalues OOin OOthe OOdatabase.
Which OOview OOshould OOa OOuser OOquery OOto OOdisplay OOthe OOcolumns OOassociated
OOwith OOthe OOconstraints OOon OOa OOtable OOowned OOby OOthe OOuser? OO- OOSOL OO-
USER_CONS_COLUMNS
Evaluate OOthe OOfollowing OOSQL OOstatements:
DELETE OOFROM OOsales;
There OOare OOno OOother OOuncommitted OOtransactions OOon OOthe OOSALES OOtable.
Which OOstatement OOis OOtrue OOabout OOthe OODELETE OOstatement? OO- OOSOL OO-It
OOremoves OOall OOthe OOrows OOin OOthe OOtable OOand OOdeleted OOrows OOcan OObe
OOrolled OOback
Examine OOthe OOstatement:
Create OOsynonym OOemp OOfor OOhr.employees;
What OOhappens OOwhen OOyou OOissue OOthe OOstatement? OO- OOSOL OO-You OOcreate
OOan OOalternative OOname OOfor OOthe OOemployees OOtable OOin OOthe OOHR OOschema
OOin OOyour OOown OOschema
Which OOstatement OOis OOtrue OOregarding OOthe OOUNION OOoperator? OO- OOSOL OO-
NULL OOvalues OOare OOnot OOignored OOduring OOduplicate OOchecking
Which OOCREATE OOTABLE OOstatement OOis OOvalid? OO- OOSOL OO-CREATE OOTABLE
OOord_details
OO(ord_no OONUMBER(2),
OOitem_no OONUMBER(3),
OOord_date OODATE OODEFAULT OOSYSDATE OONOT OONULL,
OOCONSTRAINT OOord_pk OOPRIMARY OOKEY OO(ord_no, OOitem_no));
, Which OOobject OOprivileges OOcan OObe OOgranted OOon OOa OOview? OO- OOSOL OO-
DELETE, OOINSERT, OOSELECT, OOUPDATE
You OOneed OOto OOcreate OOa OOtable OOfor OOa OObanking OOapplication. OOOne OOof OOthe
OOcolumns OOin OOthe OOtable OOhas OOthe OOfollowing OOrequirements:
You OOwant OOa OOcolumn OOin OOthe OOtable OOto OOstore OOthe OOduration OOof OOthe
OOcredit OOperiod OOThe OOdata OOin OOthe OOcolumn OOshould OObe OOstored OOin OOa
OOformat OOsuch OOthat OOit OOcan OObe OOeasily
added OOand OOsubtracted OOwith OODATE OOdata OOtype OOwithout OOusing OOconversion
OOThe OOmaximum OOperiod OOof OOthe OOcredit OOprovision OOin OOthe OOapplication OOis
OO30 OOdays OOthe
interest OOhas OOto OObe OOcalculated OOfor OOthe OOnumber OOof OOdays OOan OOindividual
OOhas OOtaken OOa OOcredit OOfor
Which OOdata OOtype OOwould OOyou OOuse OOfor OOsuch OOa OOcolumn OOin OOthe OOtable?
OO- OOSOL OO-INTERVAL OODAY OOTO OOSECOND
The OOSTUDENT_GRADES OOtable OOhas OOthese OOcolumns:
OOSTUDENT_ID OONUMBER(12)
OOSEMESTER_END OODATE
OOGPA OONUMBER(4,3)
Which OOstatement OOfinds OOstudents OOwho OOhave OOa OOgrade OOpoint OOaverage
OO(GPA) OOgreater OOthan OO3.0 OOfor OOthe OOcalendar OOyear OO2001? OO- OOSOL OO-
SELECT OOstudent_id, OOgpa
OOFROM OOstudent_grades
OOWHERE OOsemester_end OOBETWEEN OO'01-JAN-2001' OOAND OO'31-DEC-2001'
OOAND OOgpa OO> OO3.0;
Which OOstatement OOis OOtrue OOregarding OOthe OOUSING OOand OOON OOclauses OOin
OOtable OOjoins? OO- OOSOL OO-The OOWHERE OOclause OOcan OObe OOused OOto OOapply
OOadditional OOconditions OOin OOSELECT OOstatement OOcontaining OOthe OOON OOor OOthe
OOUSING OOclause
The OOuser OOAlice OOwants OOto OOgrant OOall OOusers OOquery OOprivileges OOon OOher
OO*DEPT OOtable*. OOWhich OOSQL OOstatement OOaccomplishes OOthis? OO- OOSOL OO-
GRANT OOselect OOON OOdept OOTO OOPUBLIC;
You OOneed OOto OOdisplay OOthe OOdate OO11-Oct-2007 OOfrom OOtable OODUAL OOin
OOwords OOas OO*`Eleventh OOof OOOctober, OOTwo OOThousand OOSeven'*. OOWhich OOSQL
OOstatement OOwould OOgive OOthe OOrequired
result? OO- OOSOL OO-SELECT OOTO_CHAR(TO_DATE('11-oct-2007'), OO'fmDdthsp OO"of"
OOMonth, OOYear') OOFROM OODUAL;
The OOSTUDENT_GRADES OOtable OOhas OOthese OOcolumns:
OOSTUDENT_ID OONUMBER(12)
OOSEMESTER_END OODATE
OOGPA OONUMBER(4,3)