SlideShare une entreprise Scribd logo
1  sur  8
Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide
Training@H2KInfosys.com
H2kInfosys
H2K Infosys provides online IT training and placement services worldwide.
USA- +1-(770)-777-1269, UK – (020) 3371 7615
Training@H2KINFOSYS.com / H2KInfosys@gmail.com
DISCLAIMER
H2K Infosys, LLC (hereinafter “H2K”) acknowledges the proprietary rights of the trademarks and
products names of other companies mentioned in any of the training material including but not limited
to the handouts, written material, videos, power point presentations, etc. All such training materials are
provided to H2K students for learning purposes only. H2K students shall not use such materials for their
private gain nor can they sell any such materials to a third party. Some of the examples provided in any
such training materials may not be owned by H2K and as such H2K does not claim any proprietary rights
for the same. H2K does not guarantee nor is it responsible for such products and projects. H2K
acknowledges that any such information or product that has been lawfully received from third party
source is free from restriction and without any breach or violation of law whatsoever.
Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide
Training@H2KInfosys.com
Database Testing Interview Questions
Q. 1: What we normally check for in the Database Testing?
In Database Testing we need to check,
1) The field size validation
2) Check constraints.
3) Indexes are done or not (for performance related issues)
4) Stored procedures
5) The field size defined in the application is matching with that in the db.
===================================================================
Q. 2: How can we do manual testing of database? Explain with an example
It involves observing operations that are operated on front-end are effected on the back-end or
not. The approach can be explained like:
While adding a record through the front-end, check back-end that addition of record is effected or
not. It applies to delete, update,......etc.
For Example: Enter the employee record in database through the front-end and check manually if
the record is added or not to the back-end.
=========================================================================
Q. 3: While doing database testing, how do we know that a trigger is fired or not?
It can be verified by querying the common audit log where we are able to see if the triggers is fired
or not.
===========================================================================
Q. 4: Is "A fast database retrieval rate" a testable requirement?
No. Since the requirement seems to be ambiguous. The SRS should clearly mention the
performance or transaction requirements i.e. It should specify clearly like - Database retrieval rate
of 5 microseconds.
==============================================================================
Q.5: What steps does a tester take in testing Stored Procedures?
First the tester should to go through the requirement, as to why the particular stored procedure is
written for.
Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide
Training@H2KInfosys.com
Then check whether all the required indexes, joins, updates, deletions are correct comparing with
the tables mentioned in the Stored Procedure. And also he has to ensure whether the Stored
Procedure follows the standard format like comments, updated by, etc.
Then check the procedure calling name, calling parameters, and expected Reponses for different
sets of input parameters.
Then run the procedure yourself with database client programs like TOAD, or mysql, or Query
Analyzer
Rerun the procedure with different parameters, and check results against expected values.
Finally, automate the tests with QTP.
============================================================================
Q. 6: What SQL statements have you used in Database Testing?
-Both DDL and DML
===========================================================================
Q. 7: What are the test scenarios to test a database migrated from SQL Server 2005 to SQL Server
2008?
We need to check out what was all the enhancement the SQL Server 2008 has in it. We need to
design our test case considering the following points.
1) Data type used
2) Length of the data field it should be same as it was in SQL 2005
3) All the jobs should be scheduled properly
===========================================================================
Q. 8: What is primary key? Difference between Primary key and unique key
-Primary Key:
Can be only one in a table
It never allows null values
Primary Key is unique key identifier and can not be null and must be unique.
-Unique Key:
Can be more than one unique key in one table.
Unique key can have null values
It can’t be candidate key
Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide
Training@H2KInfosys.com
Unique key can be null and may not be unique.
Q. 9: What are constrains?
-NULL,primary key,unique key,foriegn key,check,default
===============================================================================
Q. 10: Difference between DELETE, TRUNCATE AND DROP commands
TRUNCATE is a DDL command whereas DELETE is a DML command.
Hence DELETE operation can be rolled back, but TRUNCATE operation cannot be rolled
Drop can only be used to delete the whole table
==============================================================================
Q. 11: What is a stored procedure?
-SET of SQL statements
==============================================================================
Q. 12.What does the following query do:
SELECT SAL+NVL(COMMN,0) FROM EMP
-This displays the total salary of all employees. The null values in the commission column will be
replaced by 0 and added to salary.
==============================================================================
Q. 13.What is join? Explain different types of joins?
Join is a query, which retrieves related columns or rows from multiple tables.
Self Join - Joining the table with itself.
Equi Join - Joining two tables by equating two common columns.
Non-Equi Join - Joining two tables by equating two common columns.
Outer Join - Joining two tables in such a way that query can also retrieve rows that do not have
corresponding join value in the other table.
===========================================================================
Q. 14.Difference between stored procedures and a function
1> Procedure can return zero or n values whereas function can return one value which is
mandatory.
Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide
Training@H2KInfosys.com
2>Procedures can have input,output parameters for it whereas functions can have only
input parameters.
3>Procedure allow select as well as DML statement in it whereas function allow only select
statement in it.
4>Functions can be called from procedure whereas procedures cannot be called from
function.
5.functions can be used in select statement procedures cannot .
================================================================================
Q. 15. Describe how NULL works with SQL?
================================================================================
Q. 16 can a table have more than one foreign key defined
-yes a table can more than one foreign key defined
================================================================================
Q. 17 which operator does you use to return all of the rows from one query except rows are
returned in a second query?
================================================================================
Q. 18.Describe some group functions you know
-These functions are: COUNT, MAX, MIN, AVG, SUM, DISTINCT
================================================================================
Q. 19. How will you update any column in a table
UPDATE table_name SET column_name = new_value WHERE column_name = some_value
================================================================================
Q. 20.Difference between UNION AND JOINS
- UNION - returns all distinct rows selected by either query
-jOINS retrieves related columns or rows from multiple tables.
================================================================================
Q. 21.how do you add record to a table
INSERT INTO table_name VALUES (value1, value2,....)
INSERT INTO table_name (column1, column2,...) VALUES (value1, value2,....)
===============================================================================
Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide
Training@H2KInfosys.com
Q 22. What's Date Functions
Date Functions are ADD_MONTHS, LAST_DAY, NEXT_DAY, MONTHS_BETWEEN & SYSDATE.
==============================================================================
Q 23. What's Intersect
Intersect is the product of two tables listing only the matching rows.
===============================================================================
Q 24. Order of SQL statement execution
Where clause, Group By clause, having clause, Order By clause & Select.
===============================================================================
Q 25. Operators used in SELECT statements.
= Equal
<> or != Not equal
> Greater than
< Less than
>= Greater than or equal
<= Less than or equal
Between an inclusive range
LIKE Search for a pattern
===============================================================================
Q 26.How can you use Delete Statement:
DELETE FROM table_name WHERE column_name = some_value
Delete All Rows:
DELETE FROM table_name or DELETE * FROM table_name
==============================================================================
Q .27.Why does the following command give a compilation error?
DROP TABLE &TABLE_NAME; Variable names should start with an alphabet. Here the table name
starts with an '&' symbol.
==============================================================================
Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide
Training@H2KInfosys.com
Q 28. State true or false. !=, <>, ^= all denote the same operation?
True.
==============================================================================
Q 29. 17. State true or false. EXISTS, SOME, ANY are operators in SQL?
True.
=============================================================================
Q.30. What is the value of comm and sal after executing the following query if the initial value of
‘sal’ is 10000
UPDATE EMP SET SAL = SAL + 1000, COMM = SAL*0.1;?
sal = 11000, comm = 1000.
=============================================================================
Q.31. What operator performs pattern matching?
LIKE operator.
============================================================================
Q 32. What operator tests column for the absence of data?
IS NULL operator.
============================================================================
Q 33.TRUNCATE TABLE EMP;
DELETE FROM EMP;
Will the outputs of the above two commands differ?
Both will result in deleting all the rows in the table EMP..
===========================================================================
Q34. What are the wildcards used for pattern matching?
_ for single character substitution and % for multi-character substitution.
===========================================================================
Q 35.Write SQL SELECT query that returns the first and last name of each instructor, the Salary,
and gives each of them a number.
A. SELECT FirstName, LastName, Salary, ROWNUM FROM Instructors;
=========================================================================
Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide
Training@H2KInfosys.com
Q 36.Is the WHERE clause must appear always before the GROUP BY clause in SQL SELECT ?
A. Yes. The proper order for SQL SELECT clauses is: SELECT, FROM, WHERE, GROUP BY,
HAVING, ORDER BY. Only the SELECT and FROM clause are mandatory.
==========================================================================
Q.37.Write a query to return top N rows
Select Top 10 From tbl_name
============================================================================
Q 38.Select last N rows from the table
Select Top 10 From tbl_name Order by PK DESC
============================================================================
Q 39.Describe some Group Functions that you know
A. 1) The COUNT function tells you how many rows were in the result set.
SELECT COUNT(*) FROM TESTING.QA
2) The AVG function tells you the average value of a numeric column.
SELECT MAX(SALARY) FROM TESTING.QA
3) The MAX and MIN functions tell you the maximum and minimum value of a numeric column.
SELECT MIN(SALARY) FROM TESTING.QA
4) The SUM function tells you the sum value of a numeric column.
SELECT SUM(SALARY) FROM TESTING.QA
===========================================================================
40. How to get the count of employees with unique name from employee table:
SELECT COUNT (DISTINCT name) FROM employee;
============================================================================
41. While testing stored procedures what are the steps does a tester takes?
The tester will check the standard format of the stored procedures and also it checks the fields
are correct like updates, joins, indexes, deletions as mentioned in the stored procedure.
================================= || O || =======================================

Contenu connexe

Tendances

Manual software-testing-interview-questions-with-answers
Manual software-testing-interview-questions-with-answersManual software-testing-interview-questions-with-answers
Manual software-testing-interview-questions-with-answersSachin Gupta
 
Istqb intro with question answer for exam preparation
Istqb intro with question answer for exam preparationIstqb intro with question answer for exam preparation
Istqb intro with question answer for exam preparationKevalkumar Shah
 
Manual testing interview questions
Manual testing interview questionsManual testing interview questions
Manual testing interview questionsBABAR MANZAR
 
Compare squish tool vs telerik tool
Compare squish tool vs telerik toolCompare squish tool vs telerik tool
Compare squish tool vs telerik toolHoa Le
 
Some Commonly Asked Question For Software Testing
Some Commonly Asked Question For Software TestingSome Commonly Asked Question For Software Testing
Some Commonly Asked Question For Software TestingKumari Warsha Goel
 
The limits of unit testing by Craig Stuntz
The limits of unit testing by Craig StuntzThe limits of unit testing by Craig Stuntz
The limits of unit testing by Craig StuntzQA or the Highway
 
Testing Experience - Evolution of Test Automation Frameworks
Testing Experience - Evolution of Test Automation FrameworksTesting Experience - Evolution of Test Automation Frameworks
Testing Experience - Evolution of Test Automation FrameworksŁukasz Morawski
 
Fresher interview question for software testing (QA) manual + basic automation
Fresher interview question for software testing (QA) manual + basic automationFresher interview question for software testing (QA) manual + basic automation
Fresher interview question for software testing (QA) manual + basic automationRakesh Hansalia
 
Writing Test Cases From User Stories And Acceptance Criteria
Writing Test Cases From User Stories And Acceptance CriteriaWriting Test Cases From User Stories And Acceptance Criteria
Writing Test Cases From User Stories And Acceptance CriteriaHoa Le
 
Qa mockup interview for automation testing
Qa mockup interview for automation testingQa mockup interview for automation testing
Qa mockup interview for automation testingKadharBashaJ
 
Chapter 8 software testing
Chapter 8 software testingChapter 8 software testing
Chapter 8 software testingdespicable me
 
Info manual testing questions
Info manual testing questionsInfo manual testing questions
Info manual testing questionsSandeep
 
Engaging IV&V Testing Services for Agile Projects
Engaging IV&V Testing Services for Agile ProjectsEngaging IV&V Testing Services for Agile Projects
Engaging IV&V Testing Services for Agile ProjectsRavi Kumar
 
Interview questions for manual testing technology.
Interview questions for manual testing technology.Interview questions for manual testing technology.
Interview questions for manual testing technology.Vinay Agnihotri
 
The Art of Gherkin Scripting - Matt Eakin
The Art of Gherkin Scripting - Matt EakinThe Art of Gherkin Scripting - Matt Eakin
The Art of Gherkin Scripting - Matt EakinQA or the Highway
 

Tendances (17)

Manual software-testing-interview-questions-with-answers
Manual software-testing-interview-questions-with-answersManual software-testing-interview-questions-with-answers
Manual software-testing-interview-questions-with-answers
 
Istqb intro with question answer for exam preparation
Istqb intro with question answer for exam preparationIstqb intro with question answer for exam preparation
Istqb intro with question answer for exam preparation
 
Manual testing interview questions
Manual testing interview questionsManual testing interview questions
Manual testing interview questions
 
Compare squish tool vs telerik tool
Compare squish tool vs telerik toolCompare squish tool vs telerik tool
Compare squish tool vs telerik tool
 
Some Commonly Asked Question For Software Testing
Some Commonly Asked Question For Software TestingSome Commonly Asked Question For Software Testing
Some Commonly Asked Question For Software Testing
 
The limits of unit testing by Craig Stuntz
The limits of unit testing by Craig StuntzThe limits of unit testing by Craig Stuntz
The limits of unit testing by Craig Stuntz
 
Testing Experience - Evolution of Test Automation Frameworks
Testing Experience - Evolution of Test Automation FrameworksTesting Experience - Evolution of Test Automation Frameworks
Testing Experience - Evolution of Test Automation Frameworks
 
Fresher interview question for software testing (QA) manual + basic automation
Fresher interview question for software testing (QA) manual + basic automationFresher interview question for software testing (QA) manual + basic automation
Fresher interview question for software testing (QA) manual + basic automation
 
Writing Test Cases From User Stories And Acceptance Criteria
Writing Test Cases From User Stories And Acceptance CriteriaWriting Test Cases From User Stories And Acceptance Criteria
Writing Test Cases From User Stories And Acceptance Criteria
 
Qa mockup interview for automation testing
Qa mockup interview for automation testingQa mockup interview for automation testing
Qa mockup interview for automation testing
 
Chapter 8 software testing
Chapter 8 software testingChapter 8 software testing
Chapter 8 software testing
 
Info manual testing questions
Info manual testing questionsInfo manual testing questions
Info manual testing questions
 
Checklist for website testing
Checklist for website testingChecklist for website testing
Checklist for website testing
 
Engaging IV&V Testing Services for Agile Projects
Engaging IV&V Testing Services for Agile ProjectsEngaging IV&V Testing Services for Agile Projects
Engaging IV&V Testing Services for Agile Projects
 
Test plan
Test planTest plan
Test plan
 
Interview questions for manual testing technology.
Interview questions for manual testing technology.Interview questions for manual testing technology.
Interview questions for manual testing technology.
 
The Art of Gherkin Scripting - Matt Eakin
The Art of Gherkin Scripting - Matt EakinThe Art of Gherkin Scripting - Matt Eakin
The Art of Gherkin Scripting - Matt Eakin
 

Similaire à Database Testing Interview Questions By H2kInfosys

Informatica interview questions by H2kInfosys
Informatica interview questions by H2kInfosysInformatica interview questions by H2kInfosys
Informatica interview questions by H2kInfosysH2kInfosys
 
Dsa lab manual version 2
Dsa lab manual version 2Dsa lab manual version 2
Dsa lab manual version 2Dwight Sabio
 
Webservices(or)SoapUI Interview Questions
Webservices(or)SoapUI Interview QuestionsWebservices(or)SoapUI Interview Questions
Webservices(or)SoapUI Interview QuestionsH2kInfosys
 
Advance Sql Server Store procedure Presentation
Advance Sql Server Store procedure PresentationAdvance Sql Server Store procedure Presentation
Advance Sql Server Store procedure PresentationAmin Uddin
 
12c SQL Plan Directives
12c SQL Plan Directives12c SQL Plan Directives
12c SQL Plan DirectivesFranck Pachot
 
Oracle - Checklist for performance issues
Oracle - Checklist for performance issuesOracle - Checklist for performance issues
Oracle - Checklist for performance issuesMarkus Flechtner
 
Performance Instrumentation for PL/SQL: When, Why, How
Performance Instrumentation for PL/SQL: When, Why, HowPerformance Instrumentation for PL/SQL: When, Why, How
Performance Instrumentation for PL/SQL: When, Why, HowKaren Morton
 
smu msc it 2 sem spring 2018 july/aug 2018 exam solved assignment
smu msc it  2 sem spring 2018 july/aug 2018 exam solved assignment smu msc it  2 sem spring 2018 july/aug 2018 exam solved assignment
smu msc it 2 sem spring 2018 july/aug 2018 exam solved assignment Rahul Saini
 
Performance schema in_my_sql_5.6_pluk2013
Performance schema in_my_sql_5.6_pluk2013Performance schema in_my_sql_5.6_pluk2013
Performance schema in_my_sql_5.6_pluk2013Valeriy Kravchuk
 
Sql storeprocedure
Sql storeprocedureSql storeprocedure
Sql storeprocedureftz 420
 
Oracle Sql Tuning
Oracle Sql TuningOracle Sql Tuning
Oracle Sql TuningChris Adkin
 
OPS 571 Invent Yourself /newtonhelp.com
OPS 571 Invent Yourself /newtonhelp.comOPS 571 Invent Yourself /newtonhelp.com
OPS 571 Invent Yourself /newtonhelp.comlechenau103
 
How Can I tune it When I Can't Change the Code?
How Can I tune it When I Can't Change the Code?How Can I tune it When I Can't Change the Code?
How Can I tune it When I Can't Change the Code?Sage Computing Services
 
SQL Performance Solutions: Refactor Mercilessly, Index Wisely
SQL Performance Solutions: Refactor Mercilessly, Index WiselySQL Performance Solutions: Refactor Mercilessly, Index Wisely
SQL Performance Solutions: Refactor Mercilessly, Index WiselyEnkitec
 

Similaire à Database Testing Interview Questions By H2kInfosys (20)

Informatica interview questions by H2kInfosys
Informatica interview questions by H2kInfosysInformatica interview questions by H2kInfosys
Informatica interview questions by H2kInfosys
 
Dsa lab manual version 2
Dsa lab manual version 2Dsa lab manual version 2
Dsa lab manual version 2
 
Webservices(or)SoapUI Interview Questions
Webservices(or)SoapUI Interview QuestionsWebservices(or)SoapUI Interview Questions
Webservices(or)SoapUI Interview Questions
 
Advance Sql Server Store procedure Presentation
Advance Sql Server Store procedure PresentationAdvance Sql Server Store procedure Presentation
Advance Sql Server Store procedure Presentation
 
12c SQL Plan Directives
12c SQL Plan Directives12c SQL Plan Directives
12c SQL Plan Directives
 
Stored procedure
Stored procedureStored procedure
Stored procedure
 
Oracle - Checklist for performance issues
Oracle - Checklist for performance issuesOracle - Checklist for performance issues
Oracle - Checklist for performance issues
 
Sap basis
Sap basisSap basis
Sap basis
 
Db2 day 2015 ns ps
Db2 day 2015 ns psDb2 day 2015 ns ps
Db2 day 2015 ns ps
 
Performance Instrumentation for PL/SQL: When, Why, How
Performance Instrumentation for PL/SQL: When, Why, HowPerformance Instrumentation for PL/SQL: When, Why, How
Performance Instrumentation for PL/SQL: When, Why, How
 
smu msc it 2 sem spring 2018 july/aug 2018 exam solved assignment
smu msc it  2 sem spring 2018 july/aug 2018 exam solved assignment smu msc it  2 sem spring 2018 july/aug 2018 exam solved assignment
smu msc it 2 sem spring 2018 july/aug 2018 exam solved assignment
 
Big Data Analytics
Big Data Analytics Big Data Analytics
Big Data Analytics
 
Performance schema in_my_sql_5.6_pluk2013
Performance schema in_my_sql_5.6_pluk2013Performance schema in_my_sql_5.6_pluk2013
Performance schema in_my_sql_5.6_pluk2013
 
Sql storeprocedure
Sql storeprocedureSql storeprocedure
Sql storeprocedure
 
Oracle Sql Tuning
Oracle Sql TuningOracle Sql Tuning
Oracle Sql Tuning
 
OPS 571 Invent Yourself /newtonhelp.com
OPS 571 Invent Yourself /newtonhelp.comOPS 571 Invent Yourself /newtonhelp.com
OPS 571 Invent Yourself /newtonhelp.com
 
How Can I tune it When I Can't Change the Code?
How Can I tune it When I Can't Change the Code?How Can I tune it When I Can't Change the Code?
How Can I tune it When I Can't Change the Code?
 
SQL Performance Solutions: Refactor Mercilessly, Index Wisely
SQL Performance Solutions: Refactor Mercilessly, Index WiselySQL Performance Solutions: Refactor Mercilessly, Index Wisely
SQL Performance Solutions: Refactor Mercilessly, Index Wisely
 
Telecom Churn Analysis
Telecom Churn AnalysisTelecom Churn Analysis
Telecom Churn Analysis
 
Function tables
Function tablesFunction tables
Function tables
 

Plus de H2kInfosys

Health insurance claim | Health Care Domain
Health insurance claim | Health Care DomainHealth insurance claim | Health Care Domain
Health insurance claim | Health Care DomainH2kInfosys
 
Project 2 | Health Care Domain
Project 2 | Health Care DomainProject 2 | Health Care Domain
Project 2 | Health Care DomainH2kInfosys
 
Claims Test Case | Health Care Domain
Claims Test Case | Health Care DomainClaims Test Case | Health Care Domain
Claims Test Case | Health Care DomainH2kInfosys
 
Hadoop Big Data Demo
Hadoop Big Data DemoHadoop Big Data Demo
Hadoop Big Data DemoH2kInfosys
 
Mobile requirements
Mobile requirementsMobile requirements
Mobile requirementsH2kInfosys
 
Mobile form Validation Rules
Mobile form Validation RulesMobile form Validation Rules
Mobile form Validation RulesH2kInfosys
 

Plus de H2kInfosys (6)

Health insurance claim | Health Care Domain
Health insurance claim | Health Care DomainHealth insurance claim | Health Care Domain
Health insurance claim | Health Care Domain
 
Project 2 | Health Care Domain
Project 2 | Health Care DomainProject 2 | Health Care Domain
Project 2 | Health Care Domain
 
Claims Test Case | Health Care Domain
Claims Test Case | Health Care DomainClaims Test Case | Health Care Domain
Claims Test Case | Health Care Domain
 
Hadoop Big Data Demo
Hadoop Big Data DemoHadoop Big Data Demo
Hadoop Big Data Demo
 
Mobile requirements
Mobile requirementsMobile requirements
Mobile requirements
 
Mobile form Validation Rules
Mobile form Validation RulesMobile form Validation Rules
Mobile form Validation Rules
 

Dernier

Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxAmita Gupta
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 

Dernier (20)

Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 

Database Testing Interview Questions By H2kInfosys

  • 1. Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide Training@H2KInfosys.com H2kInfosys H2K Infosys provides online IT training and placement services worldwide. USA- +1-(770)-777-1269, UK – (020) 3371 7615 Training@H2KINFOSYS.com / H2KInfosys@gmail.com DISCLAIMER H2K Infosys, LLC (hereinafter “H2K”) acknowledges the proprietary rights of the trademarks and products names of other companies mentioned in any of the training material including but not limited to the handouts, written material, videos, power point presentations, etc. All such training materials are provided to H2K students for learning purposes only. H2K students shall not use such materials for their private gain nor can they sell any such materials to a third party. Some of the examples provided in any such training materials may not be owned by H2K and as such H2K does not claim any proprietary rights for the same. H2K does not guarantee nor is it responsible for such products and projects. H2K acknowledges that any such information or product that has been lawfully received from third party source is free from restriction and without any breach or violation of law whatsoever.
  • 2. Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide Training@H2KInfosys.com Database Testing Interview Questions Q. 1: What we normally check for in the Database Testing? In Database Testing we need to check, 1) The field size validation 2) Check constraints. 3) Indexes are done or not (for performance related issues) 4) Stored procedures 5) The field size defined in the application is matching with that in the db. =================================================================== Q. 2: How can we do manual testing of database? Explain with an example It involves observing operations that are operated on front-end are effected on the back-end or not. The approach can be explained like: While adding a record through the front-end, check back-end that addition of record is effected or not. It applies to delete, update,......etc. For Example: Enter the employee record in database through the front-end and check manually if the record is added or not to the back-end. ========================================================================= Q. 3: While doing database testing, how do we know that a trigger is fired or not? It can be verified by querying the common audit log where we are able to see if the triggers is fired or not. =========================================================================== Q. 4: Is "A fast database retrieval rate" a testable requirement? No. Since the requirement seems to be ambiguous. The SRS should clearly mention the performance or transaction requirements i.e. It should specify clearly like - Database retrieval rate of 5 microseconds. ============================================================================== Q.5: What steps does a tester take in testing Stored Procedures? First the tester should to go through the requirement, as to why the particular stored procedure is written for.
  • 3. Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide Training@H2KInfosys.com Then check whether all the required indexes, joins, updates, deletions are correct comparing with the tables mentioned in the Stored Procedure. And also he has to ensure whether the Stored Procedure follows the standard format like comments, updated by, etc. Then check the procedure calling name, calling parameters, and expected Reponses for different sets of input parameters. Then run the procedure yourself with database client programs like TOAD, or mysql, or Query Analyzer Rerun the procedure with different parameters, and check results against expected values. Finally, automate the tests with QTP. ============================================================================ Q. 6: What SQL statements have you used in Database Testing? -Both DDL and DML =========================================================================== Q. 7: What are the test scenarios to test a database migrated from SQL Server 2005 to SQL Server 2008? We need to check out what was all the enhancement the SQL Server 2008 has in it. We need to design our test case considering the following points. 1) Data type used 2) Length of the data field it should be same as it was in SQL 2005 3) All the jobs should be scheduled properly =========================================================================== Q. 8: What is primary key? Difference between Primary key and unique key -Primary Key: Can be only one in a table It never allows null values Primary Key is unique key identifier and can not be null and must be unique. -Unique Key: Can be more than one unique key in one table. Unique key can have null values It can’t be candidate key
  • 4. Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide Training@H2KInfosys.com Unique key can be null and may not be unique. Q. 9: What are constrains? -NULL,primary key,unique key,foriegn key,check,default =============================================================================== Q. 10: Difference between DELETE, TRUNCATE AND DROP commands TRUNCATE is a DDL command whereas DELETE is a DML command. Hence DELETE operation can be rolled back, but TRUNCATE operation cannot be rolled Drop can only be used to delete the whole table ============================================================================== Q. 11: What is a stored procedure? -SET of SQL statements ============================================================================== Q. 12.What does the following query do: SELECT SAL+NVL(COMMN,0) FROM EMP -This displays the total salary of all employees. The null values in the commission column will be replaced by 0 and added to salary. ============================================================================== Q. 13.What is join? Explain different types of joins? Join is a query, which retrieves related columns or rows from multiple tables. Self Join - Joining the table with itself. Equi Join - Joining two tables by equating two common columns. Non-Equi Join - Joining two tables by equating two common columns. Outer Join - Joining two tables in such a way that query can also retrieve rows that do not have corresponding join value in the other table. =========================================================================== Q. 14.Difference between stored procedures and a function 1> Procedure can return zero or n values whereas function can return one value which is mandatory.
  • 5. Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide Training@H2KInfosys.com 2>Procedures can have input,output parameters for it whereas functions can have only input parameters. 3>Procedure allow select as well as DML statement in it whereas function allow only select statement in it. 4>Functions can be called from procedure whereas procedures cannot be called from function. 5.functions can be used in select statement procedures cannot . ================================================================================ Q. 15. Describe how NULL works with SQL? ================================================================================ Q. 16 can a table have more than one foreign key defined -yes a table can more than one foreign key defined ================================================================================ Q. 17 which operator does you use to return all of the rows from one query except rows are returned in a second query? ================================================================================ Q. 18.Describe some group functions you know -These functions are: COUNT, MAX, MIN, AVG, SUM, DISTINCT ================================================================================ Q. 19. How will you update any column in a table UPDATE table_name SET column_name = new_value WHERE column_name = some_value ================================================================================ Q. 20.Difference between UNION AND JOINS - UNION - returns all distinct rows selected by either query -jOINS retrieves related columns or rows from multiple tables. ================================================================================ Q. 21.how do you add record to a table INSERT INTO table_name VALUES (value1, value2,....) INSERT INTO table_name (column1, column2,...) VALUES (value1, value2,....) ===============================================================================
  • 6. Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide Training@H2KInfosys.com Q 22. What's Date Functions Date Functions are ADD_MONTHS, LAST_DAY, NEXT_DAY, MONTHS_BETWEEN & SYSDATE. ============================================================================== Q 23. What's Intersect Intersect is the product of two tables listing only the matching rows. =============================================================================== Q 24. Order of SQL statement execution Where clause, Group By clause, having clause, Order By clause & Select. =============================================================================== Q 25. Operators used in SELECT statements. = Equal <> or != Not equal > Greater than < Less than >= Greater than or equal <= Less than or equal Between an inclusive range LIKE Search for a pattern =============================================================================== Q 26.How can you use Delete Statement: DELETE FROM table_name WHERE column_name = some_value Delete All Rows: DELETE FROM table_name or DELETE * FROM table_name ============================================================================== Q .27.Why does the following command give a compilation error? DROP TABLE &TABLE_NAME; Variable names should start with an alphabet. Here the table name starts with an '&' symbol. ==============================================================================
  • 7. Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide Training@H2KInfosys.com Q 28. State true or false. !=, <>, ^= all denote the same operation? True. ============================================================================== Q 29. 17. State true or false. EXISTS, SOME, ANY are operators in SQL? True. ============================================================================= Q.30. What is the value of comm and sal after executing the following query if the initial value of ‘sal’ is 10000 UPDATE EMP SET SAL = SAL + 1000, COMM = SAL*0.1;? sal = 11000, comm = 1000. ============================================================================= Q.31. What operator performs pattern matching? LIKE operator. ============================================================================ Q 32. What operator tests column for the absence of data? IS NULL operator. ============================================================================ Q 33.TRUNCATE TABLE EMP; DELETE FROM EMP; Will the outputs of the above two commands differ? Both will result in deleting all the rows in the table EMP.. =========================================================================== Q34. What are the wildcards used for pattern matching? _ for single character substitution and % for multi-character substitution. =========================================================================== Q 35.Write SQL SELECT query that returns the first and last name of each instructor, the Salary, and gives each of them a number. A. SELECT FirstName, LastName, Salary, ROWNUM FROM Instructors; =========================================================================
  • 8. Job Oriented – Instructor Led – Face2Face – True Live Online I.T. Training for Everyone Worldwide Training@H2KInfosys.com Q 36.Is the WHERE clause must appear always before the GROUP BY clause in SQL SELECT ? A. Yes. The proper order for SQL SELECT clauses is: SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY. Only the SELECT and FROM clause are mandatory. ========================================================================== Q.37.Write a query to return top N rows Select Top 10 From tbl_name ============================================================================ Q 38.Select last N rows from the table Select Top 10 From tbl_name Order by PK DESC ============================================================================ Q 39.Describe some Group Functions that you know A. 1) The COUNT function tells you how many rows were in the result set. SELECT COUNT(*) FROM TESTING.QA 2) The AVG function tells you the average value of a numeric column. SELECT MAX(SALARY) FROM TESTING.QA 3) The MAX and MIN functions tell you the maximum and minimum value of a numeric column. SELECT MIN(SALARY) FROM TESTING.QA 4) The SUM function tells you the sum value of a numeric column. SELECT SUM(SALARY) FROM TESTING.QA =========================================================================== 40. How to get the count of employees with unique name from employee table: SELECT COUNT (DISTINCT name) FROM employee; ============================================================================ 41. While testing stored procedures what are the steps does a tester takes? The tester will check the standard format of the stored procedures and also it checks the fields are correct like updates, joins, indexes, deletions as mentioned in the stored procedure. ================================= || O || =======================================