Sir I have this data


Group by hours


First value of every hour

Please help

Recommended Answers

All 2 Replies

select min(`Date`), `Qty` from `tablename` group by extract(hour from `Date`);

Sorry on MS SQL server use datepart instead of extract

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.