SQL Bi Notes

download SQL Bi Notes

of 4

Transcript of SQL Bi Notes

  • 8/11/2019 SQL Bi Notes

    1/4

    Test Plan 3rdAugust/ QA class

    Project Description: This project deals with sending mail electronically. Entry

    Criteria: When all the functionalities have been coded and unit tested. QAenvironment should be ready with the latest code. Exit criteria: No bug should be

    left in open state for the current release. Regression testing should be done. TestStrategy: Regression testing, security testing, Integration testing, Disaster recovery

    testing, Performance testing, UAT Significant feature/Scenarios to be tested:

    http://S.no.Subject Description Trace Expected Result 1 Registration "Validatethat registration is successful in the following scenarios:- a) First Name- Upper

    case, lower case, Mixed case, alphanumeric b) Last name- Upper case, lower case,

    Mixed case, Alphanumeric c) Id- Upper case, lower case, Mixed case,Alphanumeric, 8 char, 10 char,32 d) Password-Upper case, lower case, Mixed case,

    8 char, 10 char,32" FR1 Registration should be successful. 2 Registration "Valid

    http://S.no.Subject Description Trace Expected Result 1 Registration "Validatethat registration is successful in the following scenarios:- a) First Name- Upper

    case, lower case, Mixed case, alphanumeric b) Last name- Upper case, lower case,Mixed case, Alphanumeric c) Id- Upper case, lower case, Mixed case,

    Alphanumeric, 8 char, 10 char,32 d) Password-Upper case, lower case, Mixed case,8 char, 10 char,32" FR1 Registration should be successful. 2 Registration "Validate

    that registration is not successful in the following scenarios:- a) First name- blankb) Last name- blank c) Id-blank, 7 char, 33 char, duplicate id d) Password- blank,7

    char, 33 char, special char" FR1 Registration should not be successful. 3 Login

    Validate that user is able to loging with correct user name and correct passwordFR2 Login should be successful. 4 Login "Validate that login is not successful inthe following scenarios:- a) User name- blank, wrong, Right user name with wrong

    passowrd) b) Password- blank, wrong, right password(when

    QA sizingPlan upload toQC(Quality Centre)/misc Test Execution 5 0.5 20.5

    http://s.no/http://s.no/http://s.no/http://s.no/http://s.no/http://s.no/
  • 8/11/2019 SQL Bi Notes

    2/4

  • 8/11/2019 SQL Bi Notes

    3/4

    select e.* from employee e inner join works_on w on e.SSN=w.SSN left join

    projects p on w.PNO=p.PNO left join Department d on p.dno=d.dno whered.dno=5 and Salary between 30000 and 40000

    select e.* from employee e inner join works_on w on e.SSN=w.SSN left join

    projects p on w.PNO=p.PNO left join Department d on p.dno=d.dno order by Dno ,e.Lname, e.fname

    select d.DepartmentID, count(*) fromAdventureWorks2012.HumanResources.Department d inner join

    AdventureWorks2012.HumanResources.EmployeeDepartmentHistory edh on

    d.DepartmentID=edh.DepartmentID inner join

    AdventureWorks2012.HumanResources.Employee e onedh.BusinessEntityID=e.BusinessEntityID group by d.DepartmentID having

    count(*)>2

    select p.Pno, count(E.SSN) from employee e inner join works_on w on e.ssn=w.ssn

    inner join Project p on w.pno=p.pno group by p.pno having count(e.ssn)>2

    Audience Question

    Q: I have not received any presentations, Do you send the ppt as well for every dayclasses?

    A:[email protected]

    select p.Pno, count(E.SSN) from employee e Left outer join works_on w on

    e.ssn=w.ssn Left outer join Project p on w.pno=p.pno group by p.pno having

    count(e.ssn)>2

    create table #table (id bigint identity (1,1), name varchar(50)) insert into #table(name) select name from Production.Product select * from #table

    Thank you for joining the mock and working towards a job

    if exists (select ListPrice from [AdventureWorks2012].[Production].[Product]where ListPrice >130) update [AdventureWorks2012].[Production].[Product] set

    ListPrice=ListPrice+10 where ListPrice >130 else select 'There is no List PriceLess than 130'

    mailto:[email protected]:[email protected]:[email protected]:[email protected]
  • 8/11/2019 SQL Bi Notes

    4/4

    declare @a int , @b int set @b =(select max([productID]) from

    [AdventureWorks2012].[Production].[ProductCostHistory] ) set @a =(select

    min([productID]) from [Production].[ProductCostHistory] ) select @a, @b while@a