Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC oracle newbie query

 
Markus Smith
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,
I am a new user to both JDBC and Oracle and am unable to proceed with the following queries. It would be helpful if someone can assist me with the same.
The schema for a store is:
user (uid, addr)
region (rid, rname)
shop (sid, rid)
category (cid, cname)
product (pid, cid, pname, cost)
transaction (tid, uid, sid, date)
items (tid, pid, qty)
The required SQL queries are:
1. Best selling product for a specified store (sid is input by user) [Best selling means that the total sale (cost * qty) of that product is maximum]
2. Most profitable product category per region per month. [Region and month input by user]
Thx,
Markus
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic