Oracle
  Home arrow Oracle arrow Page 2 - Using Query Builder in the Oracle 10g ...
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
IBM Rational Software Development Conference
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ORACLE

Using Query Builder in the Oracle 10g Express Edition
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 11
    2006-06-14

    Table of Contents:
  • Using Query Builder in the Oracle 10g Express Edition
  • Querying a single table
  • A simple SELECT query
  • Creating a SELECT query with a WHERE clause
  • Creating a SELECT query on two tables which are related

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    PCmover - $15 Off with Coupon Code CJPH7Q

    Using Query Builder in the Oracle 10g Express Edition - Querying a single table
    (Page 2 of 5 )

    In this example you will be querying a single table (in fact it is a "view" and not a table) from the object list. Click on the view EM_DE_L on the left. This will bring the view to the right pane. This view has seven columns. How do I know that this is a view? I know because I created this view.

    If you click on the top-left of the table, on the icon which looks like '#', you will open up a small window with a tool tip labeled "Table Actions," where you can place a check mark and select all seven columns in the view to be included in the query; these will be transported to seven rows in the bottom pane. You can close the window, and other windows in Oracle GUI, by clicking the "x" at the top right of the window. You may also minimize or maximize a window clicking on the  Min/Max button to the left of "x." The table also shows the data type of each column. You may also choose a single column, or a number of columns by placing a check mark in the check box next to the chosen column or columns.

    This next window shows that the column FIRST_NAME has been chosen and a corresponding item has been added to the bottom pane.

    Now take a look at the bottom pane. From left to right you have the following in the bottom page: the first row shows four tabs, Condition, SQL, Results, Saved SQL. When you add a table or view to the design pane, the Condition tab comes up as a default tab. In this tabbed page you will see a graphic user interface for defining how your set based result should look, and how your SQL statement should be defined. There are 10 items arranged horizontally. They are, from left to right:

    • Column: name of column.
    • Alias: descriptive, or short name, used especially to reduce ambiguity.
    • Object: to which object the column belongs.
    • Condition: filtering the Select, the Where clause.
    • Sort Type: Ascending (Asc) or Descending (Desc).
    • Sort Order: numerical Order, the Order by clause.
    • Show: to include in a query, but show/hide it in display.
    • Function: SQL functions like Count, Count Distinct, Sum, Avg, etc.
    • Group By: This clause is for use when the condition requires.
    • Delete: click to delete the column from the query.

    In the settings shown in the next picture three columns are chosen. By clicking on the up/down arrows at the extreme left, you can set up which column has to appear first (on the left) and which has to appear next, and so on. Instead of FIRST_NAME showing on the left, first, the LAST_NAME has been brought up. The query will show only FIRST_NAME and LAST_NAME, because HIRE_DATE is set not to show ("Show" is not checked for this column). Whereas LAST_NAME is in descending order, the FIRST_NAME is in ascending order. Also the order by will be LAST_NAME first followed by FIRST_NAME.

    More Oracle Articles
    More By Jayaram Krishnaswamy


       · Coding queries and running queries are the most frequent chores you would be doing...
     

       

    ORACLE ARTICLES

    - Tuning PL/SQL Code
    - Debugging PL/SQL Code
    - Testing PL/SQL Code
    - Working With PL/SQL Code
    - Conditional Compilation for Oracle Database ...
    - Compile-Time Warnings for Oracle DB 10g
    - Compiling PL/SQL Code for an Oracle Database
    - Troubleshooting PL/SQL Code
    - Managing PL/SQL Code
    - Data Manipulation and More for HTML DB Appli...
    - Oracle Database Fundamentals
    - Adding Processes to HTML DB Applications
    - Adding Computations, Processes, and Validati...
    - Sub-templates and More with Oracle HTML DB
    - Focusing on Templates in Oracle HTML DB

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway