Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a query to find all the employees from Employee Table whose salary ( with Salary Column ) is between 5 0 0 0 0
Write a query to find all the employees from Employee Table whose salary with Salary Column is between to Write a query to fetch top N records from Employee Table. Given the following data definition, write a query that returns the number of students whose first name is John. TABLE students id INTEGER PRIMARY KEY, firstName VARCHAR NOT NULL, lastName VARCHAR NOT NULL Consider the following tables EMP and SALGRADE, write the query for i to vi and output for vii to x TABLE: EMPLOYEE i To display details of all employee in descending order of their DOJ ii To display NAME AND DESIG of those employees whose sgrade is either S or Siii To display NAME, DESIG, SGRADE of those employee who joined in the year iv To display all SGRADE, ANNUALSALARY from table SALGRADE where ANNUALSALARY SALARY v To display number of employee working in each SALGRADE from table EMPLOYEE vi To display NAME, DESIG, SALARY, HRA from tables EMPLOYEE and SALGRADE where SALARY is less than vii Select MINDOJ MAXDOB from employee; viii Select SGrade,SalaryHRA from SalGrade where SgradeSix Select countdistinct sgrade from employee x Select sumsalary avgsalary from salgrade
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started