This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Doubt on search criteria Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "Doubt on search criteria" Watch "Doubt on search criteria" New topic
Author

Doubt on search criteria

Reshma Das
Ranch Hand

Joined: Jan 29, 2002
Posts: 125
Design says "In the event of an invalid field name being provided as part of the criteria the behavior of this method is the same as if no records matched correctly specified criteria".
**** My Question ****
If the Database has fields has A, B, C, D.
and clients enters A,C,E. Do i have to stop the search function and indicate that 'no records found for search criteria'
(or)
I have to display records matching A,C.
Kalichar Rangantittu
Ranch Hand

Joined: Jan 15, 2002
Posts: 240
To me the requirement states specefically that its all or nothing. If fields A, B matched but C didnt, did the criteria get fullfilled? No! When you query a regular database for example select * from TMP where A='TEST' and B='NAME' and C='SIMPLE' will it give back results that dont match all the above? I doubt it.


Never be satisfied with anything less than the best and you will surely pass the test...
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Doubt on search criteria
 
Similar Threads
"Must allow the user to search?"
What if search criteria is null?
How to get search criteria:Field vs ComboBox
NX: GUI search criteria requirements?
NX:Contractor Search Requirement