Results 1 to 4 of 4

Thread: Possibility to filter the records in a Database

  1. #1
    Join Date
    Nov 2009
    Posts
    612

    Possibility to filter the records in a Database

    Hi,
    How to study the possibility to filter the records in order to recover only those that meet predefined conditions in a database. I am looking for the appropriate solution for the same. I need some suggestion for exploring the possibilities to filter the records in order to recover only those that meet predefined conditions. Also what are the possibilities to combines records with identical values in the list of fields specified in a single record. Thanks of any suggestions.

  2. #2
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Possibility to filter the records in a Database

    Before the implementation of this paragraph must emphasize three vital details. The first is that every time you want to set a condition referred to a text field, the search condition must be enclosed in single quotes, the second is that it is possible to set search conditions and in memo fields, the third and last reference to the dates. To the date I have not been able to find a syntax that works on all systems, so it is necessary to particularize the database as:
    Data Bank - Syntax
    SQL-SERVER - Date = # mm-dd-yyyy #
    ORACLE - Date = to_date ( 'YYYYDDMM', 'yyyymmdd',)
    ACCESS - Date = # mm-dd-yyyy #

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    Re: Possibility to filter the records in a Database

    Logical operators are supported by SQL: AND, OR, XOR, Eqv, Imp, and Is Not. Except for the last two all possess the following syntax: <expresión1> operator <expresión2>. Where expression1 and expression2 are the conditions to assess the outcome of the operation varies according to the logical operator. To indicate that we want to retrieve the records according to the range of values in a field we use the Between operator whose syntax is: field [Not] Between value1 And value2 (Not condition is optional). In this case the query would return records containing the "field" value included in the interval value1, value2 (inclusive). Not provided by preceding return those values outside the range.

  4. #4
    Join Date
    May 2008
    Posts
    2,297

    Re: Possibility to filter the records in a Database

    Logical operators are supported by SQL: AND, OR, XOR, Eqv, Imp, and Is Not. Except for the last two all possess the following syntax: <expression1> operator <expression3>. Where expression1 and expression2 are the conditions to assess the outcome of the operation varies according to the logical operator. To indicate that we want to retrieve the records according to the range of values in a field we use the Between operator whose syntax is: field [Not] Between value1 And value2 (Not condition is optional). In this case the query would return records containing the "field" value included in the interval value1, value2 (inclusive). Not provided by preceding return those values outside the range.

Similar Threads

  1. How to fetch records from multiple tables in a database ?
    By kALAMATHI in forum Software Development
    Replies: 4
    Last Post: 29-12-2010, 07:56 AM
  2. How to Extract records from Mysql database using JTable
    By StudyBoy in forum Software Development
    Replies: 3
    Last Post: 08-04-2009, 06:22 PM
  3. RECORDS - Loss data and the possibility of recovery
    By Baser-X in forum Technology & Internet
    Replies: 5
    Last Post: 03-03-2009, 06:36 PM
  4. Picollator filter : Automatic adult content filter
    By monsitj in forum Windows Software
    Replies: 1
    Last Post: 29-01-2009, 07:07 PM
  5. How to Extract Particular Records from the Database?
    By Sukhvinder in forum Software Development
    Replies: 2
    Last Post: 26-01-2009, 06:28 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,441,168.02052 seconds with 16 queries