Question
Help please
ASSIGNEMENT 1: Create table NATION along with following data: 40create table nation 41 (natcode char(3) not null 42 natname v
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Dear Student ,

As per the requirement submitted above , kindly find the below solution.

This demonstration is using MySQL Workbench.

Table Name :nation

/*1.Table Name : nation*/
create table nation(
natcode char(3) not null,
natname varchar(20),
exchrate decimal(9,5),
constraint pk_nation primary key (natcode));


/*add data into the table nation*/
insert into nation values('UK','United Kingdom',1);
insert into nation values('USA','United States',0.67);
insert into nation values('AUS','Australia',0.46);
insert into nation values('IND','India',0.0228);


/*selecting record*/
select * from nation;

Screen in SQL Workbench :

MySQL Workbench A Local instance wampmysqd64× File Edit View Query Database Server Tools Scripting Help VountryDb x SQL File

NOTE : PLEASE FEEL FREE TO PROVIDE FEEDBACK ABOUT THE SOLUTION.

Add a comment
Know the answer?
Add Answer to:
Help please ASSIGNEMENT 1: Create table NATION along with following data: 40create table nation 41 (natcode char(3) not null 42 natname varchar (20) 43 exchrate decimal(9,5) 44 constraint pk natio...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT