Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Tutorial- 03(sd 2052)

Tutorial- 03(sd 2052)

Ratings: (0)|Views: 27|Likes:
Published by Rifat_mmu

More info:

Published by: Rifat_mmu on May 27, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

05/09/2014

pdf

text

original

 
SD 2052Database SystemsTutorial: 3Topic
:Manipulating SQL on a single tableDiscussion1.What are the relational algebra operations and how are they different from SQLcommands?2.How does SQL implement the relational algebra operations
 product 
,
 select 
, and
 project 
?3.How does SQL implement the natural, equi and theta joins?Practical: Operations on a single tableObjective: this tutorial lets you learn how to create your own tables using SQL.Start up the Command Centre and make sure that it is set up to use semicolon as thestatement termination character (just like Tutorial 2) and create a new script that does thefollowing:1.Create a new database named tut3.2.Create the PERSON table the attributes are P_IC BIGINT, P_NAME VARCHA(50), P_HOMETOWN VARCHAR (50), P_STATE VARCHAR (50), P_RELIGIONVARCHAR (50), P_BIRTHDAY DATE and the primary key is P_IC.create table person( p_ic bigint not null,p_name varchar(50),p_hometown varchar(50),p_state varchar(50),p_religion varchar(50),p_birthday date,primary key (p_ic));3.Enter yourself and 10 other people into the database. If you can't find out informationabout 10 other real people it's OK to make up imaginary people. Give yourself theP_IC 0 and the other people P_IC 1 to 10. Remember that P_IC should be NOT NULL. The default year format is YYYY-MM-DD.
Page 1

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->