Search
 
SCRIPT & CODE EXAMPLE
 

SQL

Write an SQL query to fetch worker names with salaries >= 50000 and <= 100000.

SELECT CONCAT(FIRST_NAME, ' ', LAST_NAME) As Worker_Name, Salary
FROM worker 
WHERE WORKER_ID IN 
(SELECT WORKER_ID FROM worker 
WHERE Salary BETWEEN 50000 AND 100000);
Comment

PREVIOUS NEXT
Code Example
Sql :: replace tab in sql 
Sql :: Assign value to variable inside Dynamic SQL 
Sql :: oracle get ddl 
Sql :: add foreign key to existing table 
Sql :: test sql query 
Sql :: postgre query date 
Sql :: sql search all tables for attributes 
Sql :: check if word is in column sql 
Sql :: postgresql could not start server mac 
Sql :: Access PostgreSQL PSQl with sudo 
Sql :: right join sql 
Sql :: insert select 
Sql :: mysql show category once count how many products 
Sql :: sql default value if null 
Sql :: sql alter column 
Sql :: copy column from one table to another without column duplicate postgres 
Sql :: flask connect to mysql 
Sql :: sql select most frequent value in group 
Sql :: set column width in sqlplus 
Sql :: sql server remove 0 from left 
Sql :: unique element in sql 
Sql :: dump multiple tables mysql 
Sql :: lost connection to mysql server during query when dumping table 
Sql :: ERROR: permission denied for table accounts postgresql 13 
Sql :: sql change column name based on value 
Sql :: mysql sublime build system 
Sql :: union syntax in oracle 
Sql :: compare field sql server 
Sql :: alter in sql 
Sql :: mysql get table column names and data types 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =