¡GoConqr estrena diseño! Cuéntanos qué te parece.

Apuntes

Sin título

black dragon Inglés 1 página

Contenido del apunte (1)

Página 1

SQL BASE QUESTION

-Write an SQL query to fetch the names of workers who earn the highest salary?

Ans;-SELECT FIRST_NAME, SALARY from Worker WHERE SALARY=(SELECT max(SALARY) from Worker);

-- Write an SQL query to fetch three min salaries from a table?

Ans;-SELECT distinct Salary from worker a WHERE 3 >= (SELECT count(distinct Salary) from worker b WHERE a.Salary >= b.Salary) order by a.Salary desc;

Información

Descripción
Apunte sobre Sin título, creado por black dragon el 03/10/2020.
Creado por
black dragon
Visitas
0
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?