I have these tables and I want to show the percantege of customer with deliverd to pending
and the in another sql statment show the number of customer with deliverd to pending
I'm not sure how to calulate these two. I tried the build query on APEX , but it not helping
customer
c_id NUMBER
c_name VARCHAR2
c_address VARCHAR2
order
o_id NUMBER
fk_c_id NUMBER
o_name VARCHAR2
o_price NUMBER
o_orderDate DATE
order_history
oh_id
fk_o_id
fk_c_id
oh_status VARCHAR2 // status can be pending , deliverd or approved
oh_dateChanged DATE
sk8ergirl 0 Newbie Poster
rch1231 169 Posting Shark
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.