1. Write An SQL Query To Print Details Of The EMPLOYEEs Whose FIRST_NAME Ends With ‘A’.
Select * from EMPLOYEE where FIRST_NAME like '%a';
Select * from EMPLOYEE where FIRST_NAME like '_____h';
Select * from EMPLOYEE where SALARY between 100000 and 500000;
Select * from EMPLOYEE where year(JOINING_DATE) = 2014 and month(JOINING_DATE) = 2
Select FIRST_NAME, SALARY from EMPLOYEE where SALARY between 50000 And 100000.
SELECT DEPARTMENT, count(EMPLOYEE_ID) No_Of_EMPLOYEEs
FROM EMPLOYEE
GROUP BY DEPARTMENT
ORDER BY No_Of_EMPLOYEEs DESC;
SELECT EMPLOYEE.EMPLOYEE_ID,EMPLOYEE.DEPARTMENT,EMPLOYEE.FIRST_NAME ,Title.EMPLOYEE_TITLE Title from EMPLOYEE Inner Join Title
on EMPLOYEE.EMPLOYEE_ID=Title.EMPLOYEE_Ref_ID where Title.EMPLOYEE_TITLE='Manager' order by EMPLOYEE_ID
SELECT EMPLOYEE_TITLE, AFFECTED_FROM, COUNT(*)
FROM Title
GROUP BY EMPLOYEE_TITLE, AFFECTED_FROM
HAVING COUNT(*) > 1;
SELECT * FROM Emplyee WHERE MOD (EMPLOYEE_ID, 2) <> 0;
SELECT * FROM EMPLOYEE WHERE MOD (EMPLOYEE_ID, 2) = 0;
SELECT Salary FROM EMPLOYEE ORDER BY Salary DESC LIMIT n-1,1;
Lean Cucumber/BDD commands in below link:
CUCUMBER COMMANDS
*************************************************
API Testing Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Rest-API
Kubernetes Interview Question Set
https://automationreinvented.blogspot.com/search/label/Kubernetes
Docker Interview Question Set
https://automationreinvented.blogspot.com/2020/02/top-18-docker-commands-for-aytomation.html
Linux Interview question Set
https://automationreinvented.blogspot.com/search/label/Linux
Automation Testing/SDET Framework Design
https://automationreinvented.blogspot.com/search/label/FrameworkDesign
Java Related Interview Question Set
https://automationreinvented.blogspot.com/search/label/Java
GIT Interview Question Set:
https://automationreinvented.blogspot.com/search/label/GIT
Coding Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Coding%20Questions
This comment has been removed by a blog administrator.
ReplyDelete1. Write An SQL Query To Print Details Of The EMPLOYEEs Whose FIRST_NAME Ends With ‘A’.
ReplyDeleteSelect * from EMPLOYEE where FIRST_NAME like 'a%';