SQL Selecting Constant Values in Employees Table

💡 SQL Learning Moment! Today I came across an interesting query: `SELECT 5 FROM employees;` At first glance, it looks a bit confusing—but here’s what it actually does 👇 👉 It returns the value **5 for every row** in the `employees` table. So if the table has 3 rows, the output will be: 5 5 5 🔍 Key takeaway: In SQL, you can select **constant values**, not just columns. The database will repeat that value for each row in the result set. 📚 Small concepts like these help build a strong foundation in SQL! #SQL #Learning #Database #TechSkills #DataAnalytics #Beginners #CareerGrowth

To view or add a comment, sign in

Explore content categories