SQL LanguageSQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I have a Table like this?
name producttype price time
Jack chair $3 4-26
Jack desk $8 4-26
jack bed $11 4-26
Tom chair $4 4-26
Tom desk $7 4-26
Tom bed $16 4-26
Jack chair $3 4-27
Jack desk $8 4-27
jack bed $11 4-27
Tom chair $4 4-27
Tom desk $7 4-27
Tom bed $16 4-27
I want to perform a sql query to return results like this:
name pay time
Jack ? 4
Tome ? 4
how to gain the pay ?
Any hint will be greatly appreciated.