country, state 2 tables r there. in table 1 have cid,cname
table2 have sid,sname,cid. i want based on cid which country's
having more than 25 states i want to display?

Answer Posted / manikanta.srinu

select state.cid,country.cname from country inner join
state on country.cid=state.cid group by
state.cid,country.cname having count(state.sname)>25

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you explain link buffering?

724


On which Dimension Table you implemented SCD Type in your Project

1577


What is quality stage?

570


Why do we use exception activity in Datastage?

710


Field,NVL,INDEX,REPLACE,TRANSLATE,COLESC

963






Where do the datastage jobs get stored?

729


How to reverse the string using SQL?

889


What is the difference between orabulk and bcp stages?

572


how to abort the job its matain duplicates?

2101


How to implement complex jobs in data stage?

612


What is the difference between in process and inter process?

663


disign the complex job in u r project?(they are aksing only complex job design and then data flow...)

2075


What are the different options associated with dsjob command?

937


Describe the main features of datastage?

654


Is possible to create skid in dim,fact tables?

2187