Question

Write an SQL statement that will display the Employee ID, full name (all capital) and Job...

Write an SQL statement that will display the Employee ID, full name (all capital) and Job ID of all employees that belong to a department with Department ID 20 and whose Job ID has a substring “rep”.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

SQL Query :

SELECT Employee_ID, UPPER(First_Name) || ' ' || UPPER(Last_Name) "Full Name" , Job_ID

FROM employees

WHERE Department_ID = 20 AND Job_ID LIKE '%rep%'

Explanation: UPPER() converts the string into upper case. || stands for string concatenation operation. LIKE matches the pattern in the string.

Add a comment
Know the answer?
Add Answer to:
Write an SQL statement that will display the Employee ID, full name (all capital) and Job...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT