Left Outer Join
`select s.sname as stationname , sum(di.quantity) as quantity from demand_information di, demand d, company c , station s where s.sno = d.sno(+) and di.demandno = d.demandno and d.cno = c.cno and c.cname = $P{companyname} and to_char(d.demanddate,'MM-yyyy') = $P{gdate} and di.pno = (select pno from products where productname = $P{productname}) group by s.sname'
Following is my query ... i want to print all the stations , so i am using s,sno =+ d.sno ( left outer join) on station but nothing is working right... Please give it a view. Thank you.
11 Months Ago
Last Updated
Related Article: How to get Non Exist data
is a Databases discussion thread by niladri.prima that has 1 reply and was last updated 7 months ago.
Majestics
Practically a Master Poster
696 posts since Jul 2007
Reputation Points: 209
Solved Threads: 66
Skill Endorsements: 5
Hi majesctics,
can u desc your tables so that it will be useful to know the column names and do proper query?
Perry31
Junior Poster in Training
90 posts since Oct 2010
Reputation Points: 4
Solved Threads: 7
Skill Endorsements: 0