• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt on search criteria

 
Reshma Das
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic