0

I have am learning relational algebra. I have a table,

Staff(name,salary,position)

Now a question states,

List all the managers with salary >25,000

Now the correct answer is,

selection position = manager ^ salary >25000(staff)

But I was thinking that it was,

projection position = manager ^ salary >25000(staff)

As we are selecting a particular attribute in the table and not selecting all the attributes. Please guide. Thanks

4

1 に答える 1

1

「すべてのマネージャーをリストする」、つまり「いくつかの行を選択する」ことを望みます。

「特定の属性を選択する」のではなく、(行を選択するために) 特定の属性をフィルタリングしています。

プロジェクションは、「すべてのマネージャーの名前と給与をリストする」です。

SQLに関して:

  • 選択は WHERE 句です

  • 射影は SELECT 句の列のリストです

于 2012-10-21T11:50:16.553 に答える