Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

SQL Queries for Database Testing

This is a discussion on SQL Queries for Database Testing within the Test Cases forums, part of the Software Testing category; Do we have to write SQL queries in the test cases related to Database testing if yes give me an example and explain if no explain me the process of ...

Go Back   Geeks Talk > Software Testing > Test Cases
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 09-29-2007
Junior Member
 
Join Date: Sep 2007
Posts: 0
Thanks: 0
Thanked 0 Times in 0 Posts
diana15aug is on a distinguished road
SQL Queries for Database Testing

Do we have to write SQL queries in the test cases related to Database testing if yes give me an example and explain if no explain me the process of Database testing
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-25-2007
Junior Member
 
Join Date: Jun 2007
Location: Mumbai
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Gnanesh77 is on a distinguished road
Re: SQL Queries for Database Testing

We need to write the SQL queries in the test case document.

Suppose you have to test the Maturity date of a fixed deposit table.

Then the query would be
select dep_type, depstr_Name, deps_matu_date from deps_table
Reply With Quote
  #3 (permalink)  
Old 11-15-2007
Moderator
 
Join Date: Sep 2007
Location: Chennai, INDIA
Posts: 406
Thanks: 2
Thanked 197 Times in 91 Posts
sridharrganesan has a spectacular aura aboutsridharrganesan has a spectacular aura aboutsridharrganesan has a spectacular aura about
Re: SQL Queries for Database Testing

The main concept of Database testing is to validate the records that are stored in the backend, is as per the requirements. So in order to validate the records, we have to pull the records from the database and validate it against the reports or the flat files generated. In this case, the records are retrieved by the Data Manipulation language in SQL. Hence, definitely we need to write SQL queries in order to perform database validation.

For example, you are entering the values in the front-end of the application and saves it. Then it will be automatically stored in the backend. You will also be generating reports for the data entered in the front end. There will set of guidelines for example, in an Insurance application you need to pull the report of the Policy information which were created after 2007. The report pulled is validated against the database by retrieving the records by the use of SQL queries. All the Policies created after 2007 will be pulled by the use of Select query and will be validated against the report generated.
Reply With Quote
The Following User Says Thank You to sridharrganesan For This Useful Post:
  #4 (permalink)  
Old 11-29-2007
Junior Member
 
Join Date: May 2006
Location: India
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
gundapaneni.mk is on a distinguished road
Re: SQL Queries for Database Testing

Hi please help me the importance of data base testing and stored procedures?as a test engineer upto what level we should know the db concepts?
Reply With Quote
  #5 (permalink)  
Old 11-29-2007
Moderator
 
Join Date: Sep 2007
Location: Chennai, INDIA
Posts: 406
Thanks: 2
Thanked 197 Times in 91 Posts
sridharrganesan has a spectacular aura aboutsridharrganesan has a spectacular aura aboutsridharrganesan has a spectacular aura about
Re: SQL Queries for Database Testing

The main concept of Database testing is to validate the records that are stored in the backend, is as per the requirements. So in order to validate the records, we have to pull the records from the database and validate it against the reports or the flat files generated.

As a Test engineer to validate the Database you should have very strong knowledge of using the Select statement. As most of the times you will be retriving the records from the data base to validate against the Report or the flat file generated, you should know how to use Joins, Union and other operators along with the Select statement. Since to validate the reports or flat file the data should be pulled from two or more tables, the usage of the join or union along with Select statement is more important.

Ganesan
Reply With Quote
  #6 (permalink)  
Old 04-18-2008
Junior Member
 
Join Date: Mar 2008
Location: jamesburg
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
progy is on a distinguished road
Re: SQL Queries for Database Testing

s...............
Reply With Quote
Reply

  Geeks Talk > Software Testing > Test Cases

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
database testing sakshi_2801 Testing Issues 6 07-21-2009 08:01 AM
Database Testing rose Testing Issues 13 11-22-2007 06:14 AM
Can I name report testing as database testing Geek_Guest Testing Issues 3 07-11-2007 07:55 AM
database testing prasad79 Testing Issues 2 03-26-2007 06:06 AM


All times are GMT -4. The time now is 10:00 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved