Results 1 to 3 of 3

Thread: Tips for Basic Select Queries

  1. #1
    Join Date
    Apr 2008
    Posts
    598

    Tips for Basic Select Queries

    Select queries are normally used for retrieving data from a specific table. The criteria is set for selecting the data from the specific table. For getting the best result from the queries you must set the specific properties.
    The below figure will give you idea about setting the query properties.

    Now let us discuss about the detail of the queries.
    Description
    As the name suggest this property is used for describing the purpose of the query this property is normally used by the query designer for remembering the purpose of the query.
    Default View
    This property is used to view the data in the data sheet like table.
    Output All Fields
    Normally this option is set to “No” because if this option is set to “Yes” then it will display all the fields of the table.

    Top Values
    This option is useful for retrieving the first top ten or “N” number of records this option is better because retrieving the whole data will take more time.
    Unique Values
    Normally this record work as the “select distinct” command of the queries. Normally this option is set to “NO”, but if the user prefers it can be set to “Yes”

    Unique Records
    This option work as the “distinct rows” in sql statement. This option is also set to “No” by default but if the user prefers it can be set to “yes”

  2. #2
    Join Date
    Apr 2008
    Posts
    395

    Re: Tips for Basic Select Queries

    You have to also consider the SQL server properties for the better performance of queries.
    Sorting option
    Sorting options like “order by, filter on load, order by on load” can maximize the performance because for this you do not have to load the whole data but only the required data is needed.
    Add only if necessary
    You must be very careful while adding the “subdatasheet name, link fields, and size”. Using these option cost the performance of the queries. So if there is a need then only add these option. Because this will definitely affect the performance.

  3. #3
    Join Date
    Apr 2008
    Posts
    392

    Re: Tips for Basic Select Queries

    Select the perfect criteria.
    Actually the thing is that the same work can be done using the different option. So the query designer must keep in mind to select the best suited criteria for the query.
    Following are the criteria types.
    In place of using “< >” you can use “between”. Normally >, <, <=, >= are used for searching the data in a specific range.
    Using the option of “Null” or using the option of “Is Not Null”. The selection of both the thing depends upon the type of data present.
    Using the wild card characters is also a wise thing to use for that you have to choose best suited wild card for the requirement.
    1. ? It is used for searching the single character
    2. * It is used for searching any number of characters
    3. # It is used for searching single digit
    4. [..] It is used for finding the character list
    5. [!..] It is used for finding the data that is not in character list

Similar Threads

  1. Basic tips to setup Arch Linux
    By unlimitedtech in forum Tips & Tweaks
    Replies: 3
    Last Post: 25-07-2011, 08:30 AM
  2. Basic Tips for Digital Photography
    By Nabhanyu in forum Tips & Tweaks
    Replies: 1
    Last Post: 18-07-2011, 07:34 AM
  3. 10 basic tips you should know about apple iPad
    By Mr Alfa in forum Tips & Tweaks
    Replies: 1
    Last Post: 26-07-2010, 01:36 PM
  4. Basic Tips on Networking in Windows
    By Aloke in forum Networking & Security
    Replies: 5
    Last Post: 20-12-2009, 03:10 AM
  5. Visual Basic tips
    By Ximen in forum Software Development
    Replies: 3
    Last Post: 22-01-2009, 03:36 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,997,624.16110 seconds with 16 queries