UrbanPro
true

Learn MySQL from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

"Employee Performance Rating Using SQL CASE Statement – Real-Time Use Case"

Pavani G.
3 days ago 0 0

 Topic: SQL CASE Statement for Conditional Categorization

This lesson shows how to use the CASE statement in SQL to classify employees based on their performance score.

 Use Case:
In performance appraisal dashboards, categorizing employees into “Excellent,” “Good,” or “Needs Improvement” is a common business requirement.

 SQL Query:

 
SELECT Name, CASE WHEN PerformanceScore >= 90 THEN 'Excellent' WHEN PerformanceScore >= 70 THEN 'Good' ELSE 'Needs Improvement' END AS Rating FROM hr_employees;

 Output Example:

Name Rating
Rajesh Kumar Excellent
Ananya Sharma Good
James Mathew Needs Improvement
 

 Insight:
This query is useful for HR teams to group employees into performance bands for reviews, incentives, or training plans.

0 Dislike
Follow 1

Please Enter a comment

Submit

Other Lessons for You

Handbook of websites for Website Developers/Designers (software professionals)
Know the trending languages(past & present) and their comparision with other languages: @ https://www.tiobe.com/tiobe-index/ Found an interesting website? identify the technologies used to build...

How to learn and practice
Once you are learning, Do practice daily many time. Other wise there is a chance to forget what u laern.
K

K C Reddy

2 0
0

Database Normalization
Database Normalization is the process of reducing duplication in database by decomposing the table1. Normal Form (1NF): Every attribute is atomic, Each cell to be single valued No multivalued attribute:...

SQL Tips (4 to 6)
SQL tips 4:Avoid INDEX, unless you need to retrieve information quickly. Index will slower insert and update data query.The another way is using sub querySelect MAX(salary)FROM employeeWHERE salary IN(Select...

What Is PHP?
PHP stands for PHP: Hypertext Preprocessor PHP is a widely-used, open source scripting language PHP scripts are executed on the server PHP is free to download and use PHP files can contain text,...
X

Looking for MySQL Classes?

The best tutors for MySQL Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn MySQL with the Best Tutors

The best Tutors for MySQL Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more