Vous êtes sur la page 1sur 4

1. If a primary key is a set of columns then one column must be null. True or False? False 2.

The explanation below is a User Defined inte rity rule and must therefore be manually coded! the Database cannot enforce this rule automatically" # primary key must be uni$ue! and no part of the primary key can be null. True or False? True %. The text below is an example of what constraint type" The &alue in the mana er'id column of the ()*+,-((. table must match a &alue in the employee'id column in the ()*+,-((. table. /eferential inte rity 0. # table must ha&e a primary key. True or False? True 1. 2hy would this table name 3,T work in an ,racle database? This'year'end4next'year 3one of the abo&e 5. In a physical data model! a relationship is represented as a combination of" 67hoose Two8 *rimar y 9ey or Uni$ue 9ey Forei n 9ey :. The transformation from an (/ dia ram to a physical desi n in&ol&es chan in terminolo y. *rimary Uni$ue Identifiers in the (/ dia ram become '''''''''' and relationships become ''''''''''''. *rimary keys! Forei n keys ;.,ne<to<,ne relationships are transformed into 7heck 7onstraints in the tables created at either end of that relationship. True or False? False =. 2hat do you create when you transform a many to many relationship from your (/ dia ram into a physical desi n? Intersection table

1>. #n ?#rc Implementation? can be done @ust like any other /elationship < you simply add the re$uired Forei n 9eys. True or False? False %. The explanation below is a column inte rity constraint" # column must contain only &alues consistent with the defined data format of the column. True or False? True 1. In a physical data model! an attribute becomes a '''''''''''''. 7olumn

;. )any to many relationships are implemented &ia a structure called a" '''''''''''''''' Intersection Table 11. 2hen mappin supertypes! relationships at the supertype le&el transform as usual. /elationships at subtype le&el are implemented as forei n keys! but the forei n key columns all become mandatory. True or False? False 12. 2hat command can used to create a new row in a table in the database? 7/(#T( 1%. The ''''''' clause can be added to a select statement to return a subset of the data. 2A(/(

14. You query the database with this SQL statement: SELECT * FR ! transa"tion #$ERE %rodu"t&id ' 4()*+ #hi"h SQL SELECT statement "a%abi,ities are a"hie-ed when this statement is e.e"uted/
.election and pro@ection only 15. 2hich .B+ statement will return an error? .(+ C F/ skyD 11. In which clause of a .(+(7T statement would you specify the name of the table or tables bein $ueried?

1:. In a .B+ statement! which clause specifies one or more columns to be returned by the $uery? F/,) 1;. If a .B+ statement returns data from two or more tables! which .B+ capability is bein used? Eoinin

1*. You query the database with this SQL statement: SELECT * FR ! students+ #hy wou,d you use this statement/
To &iew data 2%. 2hich clause would you include in a .(+(7T statement to restrict the data returned to only the employees in department 1>? 2A(/( 20. 2hen usin the +I9( condition to search for ' symbols! which character can you use as the default (.7#*( option? F 21. 2hich operator is used to combine columns of character strin s to other columns? GG 25. -ou need to display employees with salaries that are at least %>>>> or hi her. 2hich comparison operator should you use? HI 2:. -ou need to display employees whose salary is in the ran e of %>>>> and 1>>>>. 2hich comparison operator should you use? J(T2((3...#3D... 2;. -ou need to display all the rows in the ()*+,-((. table that contain a null &alue in the D(*#/T)(3T'ID column. 2hich comparison operator should you use? ?I 3U++?

2=. -ou want to retrie&e a list of customers whose last names be in with the letters Fr . 2hich keyword should you include in the 2A(/( clause of your .(+(7T statement to achie&e the desired result? +I9( %2. -ou want to retrie&e a list of customers whose last names be in with the letters Fr . 2hich symbol should you include in the 2A(/( clause of your .(+(7T statement to achie&e the desired result? F %%. -ou need to display all the &alues in the ()#I+ column that contains the underscore 6'8 character as part of that email address. The 2A(/( clause in your .(+(7T statement contains the +I9( operator. 2hat must you include in the +I9( operator? The (.7#*( option 6K8 %:. The ,/D(/ J- clause always comes last. True or False? True %;. -ou need to chan e the default sort order of the ,/D(/ J- clause so that the data is displayed in re&erse alphabetical order. 2hich keyword should you include in the ,/D(/ Jclause? D(.7 %=. 2hich of the followin are T/U( re ardin the lo ical #3D operator? T/U( #3D F#+.( return F#+.( 0>. 2hich statement about the default sort order is true? The earliest date &alues are displayed first. 02. 2hich statement about the lo ical operators is true? The order of operator precedence is 3,T! ,/! and #3D.