Exforsys.com
 
Home Tutorials WebSphere
 

WebSphere V5.0 : Creating SQL statements

 

WebSphere V5.0 : Creating SQL statements

In this tutorial you will learn about, WebSphere V5.0 : Creating SQL statements, SQL query builder , Use Query builder to generate queries.



Use query builder to generate queries

Creating SQL statements

You can create an SQL statement using either the SQL query builder or the SQL query wizard. Both tools support the creation of SELECT, UPDATE, INSERT and DELETE statements. The SQL query builder also supports WITH (DB2 only) and FULLSELECT statements. Any statement you create is stored in a file with the extension .sqx.


To create an SQL statement using the SQL query builder:


  1. Switch to the Data perspective.
    .
  2. Switch to the Data Definition view by selecting the Data Definition tab.
    .
  3. Expand the project or folder that contains your database, then expand the database until you see the Statements folder.
    .
  4. Right-click the Statements folder.
    .
  5. Click New > and the type of statement you wish to create.
New

6.


Name


Enter a name for your statement and click OK.


Your statement will be added to the Statements folder and will open in the SQL query builder. Complete the statement using the SQL query builder:


Name


SQL query builder

The SQL query wizard and SQL query builder both provide a visual interface for creating and executing SQL statements. You can create a simple query using the SQL query wizard, or you can use the SQL query builder that supports a wider range of statements. Statements generated by these tools are saved in a file with the extension .sqx.

The SQL query builder contains a number of panes and tabs. The options available depend on the type of statement you create. The following screen capture shows the basic layout of the SQL query builder:


SQL query builder
 


The builder is composed of three main sections:


* SQL Source pane


* Tables pane


* Design pane


_________________

Author: Mikalai Zaikin. Please Click Here to visit Authors site for any updates and changes to the study notes.



 



Read Next: WebSphere V5.0 : Building Expressions



 

 

Comments



Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Sponsored Links

 

Subscribe via RSS


Get Daily Updates via Subscribe to Exforsys Free Training via email


Get Latest Free Training Updates delivered directly to your Inbox...

Enter your email address:


 

Subscribe to Exforsys Free Training via RSS
 

 
Partners -  Privacy and Legal Policy -  Site News -  Contact   Sitemap  

Copyright © 2000 - 2009 exforsys.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape