Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

some questions about constraint

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: some questions about constraint
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

Site Director


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

PostPosted: Mon Dec 22, 2008 2:34 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Viewing executing process in NDM .. q... Debb.Brant IBM Tools 0 Wed Dec 14, 2016 10:55 pm
No new posts Command UNIQUE CONSTRAINT on any tabl... rohanthengal DB2 2 Thu Aug 18, 2016 3:48 pm
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am
No new posts SAS Programming - Basic Questions Techelm All Other Mainframe Topics 3 Fri Mar 18, 2016 10:53 pm
No new posts Where can i find Interview questions ... Elixir Mainframe Interview Questions 4 Sat Feb 20, 2016 12:38 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us