Infytq DBMS Questions and Answers 2023 | Set-3

Infytq DBMS Questions and Answers 2023: In this article, we will be discussing some important Infytq DBMS Questions and Answers which will help you guys to crack Infytq 2023 exam.

So, If you are also preparing for Infytq exam, Must prepare these questions.

Also check Infytq Detailed Exam Pattern, Click here

Infytq dbms questions and answers

Question 16: Consider the tables salesinformation given below:

Table: salesinformation

regionsalesmansales
NorthJames800000
WestAlan760000
WestDavid350000
EastJohn124000
NorthNolan590000
SouthNick235000
EastNicholas145000

Katie and Lisa have written queries to get the below desired output:

regionsalesmansales
WestAlan760000
EastJohn124000
EastNicholas145000

Katie’s Query:

SELECT * FROM salesinformation WHERE (LOWER(region) LIKE ‘%t’ AND (UPPER(salesman) LIKE ‘%N’ OR UPPER(salesman) LIKE ‘N%’)) ;

Lisa’s Query:

SELECT * FROM salesinformation WHERE (LOWER(region) LIKE ‘%th’ OR (UPPER(salesman) LIKE ‘%N’ AND UPPER(salesman) LIKE ‘N%’)) ;

Whose query will generate the desired output?

A. Both Lisa’s and Katie’s

B. Neither Lisa’s nor Katie’s

C. Only Katie’s

D. Only Lisa’s

Answer: Option C

Explanation: Among Kaite and Lisa, Kaite’s query is correct.

Question 17: Consider the tables given below:

Table – EmployeeDetails

EmpIdFullNameManagerIdDateOfJoiningCity
121John Snow32101/31/2014Toronto
321Walter White98601/30/2015California
421Kuldeep Rana87627/11/2016New Delhi


Table – EmployeeSalary

EmpIdProjectSalaryVariable
121P18000500
321P2100001000
421P1120000

Nipun’s Query:

SELECT EmpId, Salary
FROM EmployeeSalary
WHERE Salary BETWEEN 9000 AND 15000;

Umang’s Query:

SELECT EmpId, Salary
IN EmployeeSalary
WHERE Salary 9000 AND 15000;

Whose query will find the employee id whose salary lies in the range of 9000 and 15000.?

A. Both Nipun’s and Umang’s

B. Neither Nipun’s nor Umang’s

C. Only Nipun’s

D. Only Umang’s

Answer: Option C

Explanation: we can use the ‘Between’ operator with a where clause.

Question 18: Consider the tables given below:

Idnamegenderdojdobmobnumber
1001KristenF16 Aug 202110 Aug 199898657257
1002AmyM11 Jan 20202 March 1997NULL
1003EvanF1 May 20219 Oct 1999NULL
1004RobertM1 April 202016 Jan 199828653892

Query :

UPDATE consultant SET mobnumber = 98765849 WHERE id = 1003;
UPDATE consultant SET name = ‘Batron’ WHERE id = 1004;
DELETE FROM consultant WHERE gender = ‘M’
SELECT name, gender, mobnumber FROM consultant;

What will be the output when the above statements are executed sequentially ?

A.

namegendermobnumber
Kristen F 98657257
Amy M NULL

B.

namegendermobnumber
Kristen F 98657257
Evan F NULL

C.

namegendermobnumber
Kristen F 98657257
Evan F 98765849

D. None of the above

Answer: Option C is correct.

Leave a Reply

Your email address will not be published. Required fields are marked *

Discover more from Jobs Addaa

Subscribe now to keep reading and get access to the full archive.

Continue reading