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
2Activity
0 of .
Results for:
No results containing your search query
P. 1
SQL QUERY

SQL QUERY

Ratings: (0)|Views: 18|Likes:
Published by nileshdabhekar
SQL QUERY
SQL QUERY

More info:

Published by: nileshdabhekar on Feb 01, 2013
Copyright:Attribution Non-commercial

Availability:

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

05/08/2015

pdf

text

original

 
SQLQuerie
 
Principalform
SELECT 
desiredattributes 
FROM 
tuplevariablesrangeoverrelation
WHERE 
conditionaboutt.v.'sRunningexamplerelationschema: 
Beersname,manf Barsname,addr,license Drinkersname,addr,phone Likesdrinker,beer Sellsbar,beer,price Frequentsdrinker,bar 
 
Exampl
WhatbeersaremadebyAnheuser-Busch? 
Beersname,manf SELECTnamFROMBeerWHEREmanf='Anheuser-Busch'; 
 
NotesinglequotesforstringsnamBuBudLitMichelob 
 
FormalSemanticsofSingle-RelationSQQuer
1.Startwiththerelationinthe 
FROM 
clause. 2.Applybag 
 
,usingconditioni
WHERE 
clause. 3.Applyextended,bag 
 
usingtermsi
SELECT 
clause. 
EquivalentOperationalSemantic
Imagine
tuplevariabl
rangingoveralltuplesof therelation.Foreachtuple
 
Checkifitsatisesth
WHERE 
clause. 
 
Printthevaluesoftermsi
SELECT 
,ifso. 

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)//-->