I have two tables :
COuntry,city
I want all the cities in each country.Question on Cross Join.

Answers were Sorted based on User's Feedback



I have two tables : COuntry,city I want all the cities in each country.Question on Cross Join...

Answer / u.radha

SELECT COUNTRY.COUNTRY_NAME,CITY.CITY_NAME FROM COUNTRY,CITY
WHERE COUNTRY.COUNTRY_NAME = CITY.COUNTRY_NAME ;

Is This Answer Correct ?    3 Yes 3 No

I have two tables : COuntry,city I want all the cities in each country.Question on Cross Join...

Answer / saiki

SELECT COUNTRY.COUNTRY_NAME,CITY.CITY_NAME
FROM COUNTRY,CITY
WHERE COUNTRY.COUNTRY_NAME = CITY.COUNTRY_NAME
GROUP BY COUNTRY.COUNTRY_NAME;

Is This Answer Correct ?    0 Yes 0 No

I have two tables : COuntry,city I want all the cities in each country.Question on Cross Join...

Answer / cheeku

select A.cities,B.countries
from A,B;


where Table A has col cities
where Table B has col countries

Is This Answer Correct ?    3 Yes 5 No

Post New Answer

More Oracle General Interview Questions

How to resolve the ORA-39133 error in Oracle?

0 Answers  


How to use "in" parameter properly?

0 Answers  


How to handle a single quote in oracle sql?

0 Answers  


What is SGA ? How it is different from Ver 6.0 and Ver 7.0 ?

1 Answers   TCS,


What is a parameter file in oracle?

0 Answers  






How to return top 5 rows in oracle?

0 Answers  


Difference between NO DATA FOUND and %NOTFOUND?

1 Answers  


what are Triggers?

7 Answers   TCS,


What are the parameters that we can pass through a stored procedure?

0 Answers  


i wrote a pl/sql procedure. it must run every sunday 4.40 How can i schedule it with the help of dbms_jobs (or another other procedure with out creating bat file,exe file)

0 Answers   eicc,


Which are the five query types available in oracle?

0 Answers  


What is not equal to in oracle?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1808)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)