Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help - Relational Algebra expressions
#1
Given a column with some duplicated values, how does one go about pulling out a subset of that column with all the unique values in it?

E.g: Given the relation Serves with attributes [pizzeria_name, pizza_name, price], I'm interested in knowing the names of the pizzas whose prices are under $10 everywhere they are served.

I can do a selection to get pizzas under $10, and I can project the names into a column, but I have no idea how to get the unique names only.

EDIT: I think I might be retarded and the relational algebraic projection actually already takes care of this.
Reply


Messages In This Thread
Help - Relational Algebra expressions - by Kalovale - 2011-12-12, 03:47 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)