IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

some questions about constraint


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Absinthia

New User


Joined: 10 Jan 2008
Posts: 36
Location: CHINA

PostPosted: Wed Dec 17, 2008 6:25 pm
Reply with quote

hi,everyone,could you please help me for the below question?
and tell me why?
also,"NOT ENFORCED ENABLE QUERY OPTIMIZATION"
what does this statement mean?

thanks in advance

1)When defining a referential constraint, which delete rule will delete related rows in dependent tables when a row in the parent table is deleted?

a. Restrict
b. Set null
c. Cascade
d. No action

2)Given the following statements: CREATE TABLE students ( studentid integer NOT NULL, course char(4), CONSTRAINT courses CHECK ( course IN (‘MATH’, ‘CHEM’, ‘ENG1’, ‘HIST’)) NOT ENFORCED ENABLE QUERY OPTIMIZATION ) Which INSERT statement will NOT fail?

a. INSERT INTO students VALUES (11111, ‘MATH’)
b. INSERT INTO students VALUES (22222, MATH)
c. INSERT INTO students VALUES (‘22222’, ‘CHEM’)
d. INSERT INTO students VALUES (11111, ‘GEOG’)
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Dec 22, 2008 2:34 am
Reply with quote

Hello,

If you post what you believe are the correct answers and why these are correct (or why the other answers are incorrect), someone here will be able to clarify.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Difference between VALIDPROC and CHEC... DB2 3
No new posts Comp interview questions Mainframe Interview Questions 5
No new posts Interview Questions on Cobol DB2 program Mainframe Interview Questions 5
No new posts Mainframe Interview Questions CICS,CO... Mainframe Interview Questions 6
No new posts Viewing executing process in NDM .. q... IBM Tools 0
Search our Forums:

Back to Top