Skip to content
Advertisement

Tag: select

Why this select selects no rows

I am trying to select a highest earner in ‘IT’ department, but I keep selecting no rows. Salary and names are in table called employees while department_name is in a table named departments. Can anyone please explain why does this select no rows and how should I do it? Answer Why this select selects no rows? Your query fails because

Mysql – Finding a record that satisfies 2 exact dates

Fairly new to mysql & the stack overflow community. – I have a question that’s been bugging me. I’m trying to return the results of individuals that have taken out a book on 2 specific dates. This is my effort so far; I’m not sure why I’m not getting any results – When I run the query with just one

Group rows into range while also showing gap

I am in need of a database select query solution for transforming a series of breakdown details into a summarized version of it, possibly in a view. Consider the table below. It has a composite primary key of (PK_1, PK_2, PK_3, and SEQUENCE_NO). Only including all records with the STATUS_CODE of “Y”, how can I present the records in such

Advertisement