Lecture Slides Week2 014 Logical Data Independence
Lecture Slides Week2 014 Logical Data Independence
views
5/11/13
f = fopen(table_file); fseek(10030440); files and while (True) { pointers fread(&buf, 1, 8192, f); if (buf == GATTACGATATTA) { Bill Howe, eScience Institute 1 . . .
What are Views? ! A view is just a query with a name ! We can use the view just like a real table
!"#$%&'$()$*+$,"-./$
0)%&1.)$()$2'+($,"&,$)3)4#$ 51)4#$4),14'.$&$4)6&7+'8$$ !)$.&#$,"&,$,")$6&'91&9)$-.$ :&69);4&-%&66#$%6+.)*<$
5/11/13 Bill Howe, UW 2
CREATE VIEW StorePrice AS SELECT x.store, y.price FROM Purchase x, Product y WHERE x.pid = y.pid
StorePrice(store, price)
5/11/13
*almost