سؤال

I have this relational algebra query:

%x(code)({('PX5'),('PX6')})

Can you explain to me what this query means?

I know that % is rename operation, x is new name of table, but I dont know, what is in () brackets behind '(code)'. Thank you

هل كانت مفيدة؟

المحلول

{('PX5'),('PX6')} looks like a relation. But I also don't understand your term. A rename is defined as ρa/b(R).

So the best what I could think of your term would be something like ρx/code({('PX5'),('PX6')}), which means:

Rename the attribute 'code' into 'x' of the relation {('PX5'),('PX6')}.
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top