manual-testing-110-120
manual-testing-110-120
Application http://abcd.2345.com
URL 192.168.xxx.22
Apps Server Oracle 12g
Database 192.168.xxx.22
HP QC/ALM
7. Lessons Learnt
<This section is used to describe the critical issues faced and their solutions
(how they were solved during the Testing). Lessons learnt will help to make
proactive decisions during the next Testing engagement, by avoiding these
mistakes or finding a suitable workaround >
8. Recommendations
<Any workaround or suggestions can be mentioned here.>
Admin control for defect management tool can be given to
Offshore Test lead/manager for providing access to Testing
team.
Each time the onsite Admin need not be contacted for requests
whenever they arise, thereby saving time due to the geographical
time zone difference.
9.Best Practices
<There will be lot of activities done by the Testing team during the project. Some of
them could have saved time, some proved to be a good & efficient way to work, etc.
These can be documented as a ‘Value Add’ to show case to the Stakeholders.
SQL Queries
With SQL, we can query a database and have a result set returned.
A query like this:
SELECT LastName FROM Persons
Hansen
Svendson
Pettersen
Note: Some database systems require a semicolon at the end of the SQL statement.
"Persons" table
LastName FirstName Address City
Hansen Ola Timoteivn 10 Sandnes
Svendson Tove Borgvn 23 Sandnes
Pettersen Kari Storgt 20 Stavanger
Result
LastName FirstName
Hansen Ola
Svendson Tove
Pettersen Kari
Result
LastName FirstName Address City
Hansen Ola Timoteivn 10 Sandnes
Svendson Tove Borgvn 23 Sandnes
Pettersen Kari Storgt 20 Stavanger
"Orders" table
Company OrderNumber
Sega 3412
W3Schools 2312
Trio 4678
W3Schools 6798
Company
Sega
W3Schools
Trio
Operator Description
= Equal
<> Not equal
> Greater than
< Less than
>= Greater than or equal
<= Less than or equal
BETWEEN Between an inclusive range
LIKE Search for a pattern
"Persons" table
LastName FirstName Address City Year
Hansen Ola Timoteivn 10 Sandnes 1951
Svendson Tove Borgvn 23 Sandnes 1978
Svendson Stale Kaivn 18 Sandnes 1980
Pettersen Kari Storgt 20 Stavanger 1960
Result
LastName FirstName Address City Year
Hansen Ola Timoteivn 10 Sandnes 1951
Svendson Tove Borgvn 23 Sandnes 1978
Svendson Stale Kaivn 18 Sandnes 1980
This is correct:
SELECT * FROM Persons WHERE FirstName='Tove' This is
wrong:
SELECT * FROM Persons WHERE FirstName=Tove
This is correct:
SELECT * FROM Persons WHERE Year>1965
This is wrong:
SELECT * FROM Persons WHERE Year>'1965'
A "%" sign can be used to define wildcards (missing letters in the pattern) both before and after the pattern.
Using LIKE
The following SQL statement will return persons with first names that start with an 'O':
Syntax
INSERT INTO table_name
VALUES (value1, value2,....)
You can also specify the columns for which you want to insert data:
Person:
LastName FirstName Address City
Nilsen Fred Kirkegt 56 Stavanger
Rasmussen Storgt 67
Update one Column in a Row
We want to add a first name to the person with a last name of "Rasmussen":
UPDATE Person
SET Address = 'Stien 12', City = 'Stavanger'
WHERE LastName = 'Rasmussen'
Result:
LastName FirstName Address City
Nilsen Fred Kirkegt 56 Stavanger
Rasmussen Nina Stien 12 Stavanger
SQL The Delete Statement
The Delete Statement
The DELETE statement is used to delete rows in a table.
Syntax
DELETE FROM table_name
WHERE column_name = some_value
Person:
LastName FirstName Address City
Nilsen Fred Kirkegt 56 Stavanger
Rasmussen Nina Stien 12 Stavanger
SQL ORDER BY
The ORDER BY keyword is used to sort the result.
Sort the Rows
The ORDER BY clause is used to sort the rows.
Orders:
Company OrderNumber
Sega 3412
ABC Shop 5678
W3Schools 2312
W3Schools 6798
Example
To display the companies in alphabetical order:
Example
To display the companies in alphabetical order AND the ordernumbers in numerical order:
Example
To display the companies in reverse alphabetical order:
Example
To display the companies in reverse alphabetical order AND the ordernumbers in numerical order:
Example
Use OR to display each person with the first name equal to "Tove", or the last name equal to "Svendson":
Result:
SQL IN
IN
The IN operator may be used if you know the exact value you want to return for at least one of the columns.