Write a query to find the second largest value in a given column of a table
Data redundancy and data consistency
How will you check data redundancy and data consistency using SQL queries?
Data redundancy means youre checking for duplication. In order to make that check, you need to determine what signifies a duplicate within the table to which you are referring. There is not a single q...
Database testing roles and responsibilities
What are the exact roles and responsibilities of a database tester?
To conduct database testing the test engineers are following bellow issues:
1) Verification of data entered by the users through application at back end.
2) Verification of database design
3) Verifying the data integrity
4) Verification of SQL scripts.
For 22nd highest salary....
select * min(salary) from employee
where salary in(select distinct top 22 salary from employee order by salary desc)
Select * from (select *,Dense_RANK()over (order by salary column) SalayRank from tablename)A
where SalayRank=22
Ex:Select * from (select *,Dense_RANK()over (order by Emp_sal) SalayRank from Emp_a)A
where SalayRank=22
By this query you can achieve the first part of your question
Database testing involves the tests to check the exact values which have been retrieved from the database by the web or desktop application. Data should be matched correctly as per the records are stored in the database.
Hi Database testing mainly checks three things while testing : 1)Addition/Update data : In this scenario we are checking weather we the data is updated or added to the database when we do any modifi...
How are Oracles aim (application implementation methodology) used in testing?
During testing oracles amis at Business System Testing which focuses on linking test requirements back to business requirements and securing project resources needed for testing. It supports utilizin...
Database tester generally used commands
What commands do database tester generally use & whether they are given privileges to the all tables to access?
select ename,dept,sal from emp group by ename having dept order by sal
The Transact-SQL commands most often used by a tester are:USE database_name SELECT column_names FROM table_nameSELECT DISTINCT column_name FROM table_name'SELECT column_name FROM table_name W...
What is join and explain about types of joins?
Join: We can display data from two or more than two table using Join.
There are 4 Types of Join-
1) Natural Join
2) Inner Join
3) Outer Join
4) Cross Join
Outer Join is further divide into two types-
1) Left outer join
2) Right Outer Join
May I suggest internet?
How would you check the database integrity testing through SQL?
Check database integrity Check the allocation and structural integrity of user and system tables, and indexes in the database, by running the DBCC CHECKDB Transact-SQL statement. This ensures that a...
How to extract data from different datasource
( for e.G you have databases Oracle, SQL server 2000 etc and one of the table (columns) is unique in both the databases)?
@ dugulam: I would have agreed with your answer if both the databases were of the same type. Meaning if both the DBs were Oracle or both were SQL Server. But, the example in the question involved diff...
u can extract data from different table using the joins in sql
using inner join
outer join etc.
What is way of writing testcases for database testing?
Ok lets do this by taking an example. Lets say you are testing the integration between database and a user registration web application. User registration web site becomes your front-end and database...
For writing test cases in Database first one should define the project name, then module,Bug number,objective,steps/action undertaken,expected result,actual result, then status, priority and severity.
Testing insert into new database table
Identify social security numbers
How will you verify that there are no social security numbers greater than or less than 9 digits long in a table called customer_info? write the SQL query that will identify any social security numbers that do not meet this criteria
How to test a report generated from a db?
Database migration test scenario
What are the test scenarios to test a database migrated from SQL server 2005 to SQL server 2008
1. No of tables in both old and new should be same2. Table structures in both old and new should be same.3. If it's a Data nmigration to , then ned to compare the no of records in all the tables i...
We need to check out what was all the enhancement the SQL Server 2008 has in it. We need to design our testcase considering the following points.1. Data type used2....
SQL case statement in etl testing.
When qa will use casestatement(SQL query) in etl testing or datavalidation testing , like how he will be writing that query to test the date validation . Can you provide with example
Suppoe there is table called SOURCE, conatins column NAME and AGE. The reuirement is that to poulate records from SOURCE to the target tale TARGET. In TARGET table contain following co...
Select * from EMP where EMP_DOJ = 010110Here EMP is the Table name,EMP_DOJ is the date of joining of the Employee in EMP table.If any record/records found with DOJ as 010110,it will retrive all the re...
What is your approach to do back endtesting?
How do you do back end testing?
Cross Verify the front end changes reflection in case of Add, update and Delete operatiomn of any field.
it confirms that your changes made by application saves successfully
What is database testing and what we test in database testing
Database Testing deals with the following:-1) Testing the data in the Database for Feed/Flat File data based on the requirements by writing medium to complex queries using SELECT, INNER JOINS/OUTER JO...
Hi Raghu,
The answer you gave is very useful,. but can you be a bit more elaborative as of to what extent do we need to work with indexes, cursors and how to test a SP with some examples if possible!!
Thanks
Rajani
What are the basic things you test in database testing?
In DB Testing we validate the proper data is maintained at Backend. We also validate the Stored Procedure return the expected result. And we also perform the Data migration migration means upgrade testing on DB like upgrade DB from SQL 2005 to SQL 2008....
What is data migration and how does a tester test the migration data
Data migration is translation of data in the tables from one db to another or is can also be from one format to another format.Checks needed are,Need to identify the source table in source db & de...
Data migration testing is to compare migrated data with original data to find out any discrepancies. Database Migration Testing: 1. We have to check database integrity. 2. We have to check the referen...
Hi, To find the nth highest salary and find the second largest value in a given column as you asked both are same. So, both of the above scenarios the below is the query: