CREATE TABLE Country ([Countrycode_pk] int Primary Key, [Country_name] varchar)
insert Country values ββ(Countrycode_pk, Country_name) ('123', 'India') insert Country values ββ(Countrycode_pk, Country_name) ('112', 'Austrailia') into Country values ββ(Countrycode_pk, Country_name) ('345', 'Pakistan ')
CREATE TABLE State ([Statecode_pk] int Primary key, [state_name] varchar, [Countrycode_fk] int)
insert values ββ('444', 'karnataka', '123') into the state (Statecode_pk, state_name, Countrycode_fk) insert values ββ('478', 'Andhra', '123') into the state (Statecode_pk, state_name, Countrycode_fk) state values ββ(Statecode_pk, state_name, Countrycode_fk) ('200', 'Tamil Nadu,' 123 ') are inserted into the state (Statecode_pk, state_name, Countrycode_fk) values ββ(' 333 ',' Queensland ',' 112 ') are inserted into the State Values ββ( Statecode_pk, state_name, Countrycode_fk) ("233", "New South Wales", "112") are inserted into state values ββ(Statecode_pk, state_name, Countrycode_fk) ("788", "Islamabad", "345")
CREATE TABLE City ([Citycode_pk] int Primary key, [City_name] varchar, [statecode_fk] int)
paste into the city (Citycode_pk, City_name, statecode_fk) values ββ('888', 'bengalore', '444') insert into city (Citycode_pk, City_name, statecode_fk) values ββ('990', 'Managlore', '444') paste into city ββvalues ββ(Citycode_pk, City_name, statecode_fk) ('678', 'Mysore', '444') are inserted into city values ββ(Citycode_pk, City_name, statecode_fk) ('555', 'Hubli', '444') are inserted into the city ( Values ββCitycode_pk, City_name, statecode_fk) ("881", "Bellary", "444")
insert into city values ββ(Citycode_pk, City_name, statecode_fk) ('118', 'Brisbane', '333') insert into city values ββ(Citycode_pk, City_name, statecode_fk) ('445', 'Tolga', '333')
paste into city values ββ(Citycode_pk, City_name, statecode_fk) ("770", "Wollongong", "233")
paste into city values ββ(Citycode_pk, City_name, statecode_fk) ("772", "Lahore", "788")
select * from the country select * from the state select * from the city
CHOOSE Country_Name
From the country;
SELECT state_name FROM state;
CHOOSE the name of the city from the city;
Plz slove and send me exams it urgently