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

A and B are tables. x is a column. Then What is difference between A.x = B.x(+) and A.x = B.x ?

7 Answers   Cognizant, IBM,


How to create a testing table in oracle?

0 Answers  


How many file formats are supported to export data?

0 Answers  


What happens if you use a wrong connect identifier?

0 Answers  


What do you mean by merge in oracle and how can we merge two tables?

0 Answers  






What is the effect of setting the value "CHOOSE" for OPTIMIZER_GOAL, parameter of the ALTER SESSION Command ?

2 Answers  


find out first highest salary?

10 Answers   Verinon Technology Solutions,


Why is oracle used?

0 Answers  


How to end the current transaction in oracle?

0 Answers  


what is the scripts in data base?

0 Answers  


What is an oracle?

0 Answers  


In not less than 100 words what's the main difference between Rolap and Molap in ORACLE ?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • 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)