dbTalk Databases Forums  

About grammar and syntax on a possible relational language

comp.databases.theory comp.databases.theory


Discuss About grammar and syntax on a possible relational language in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #41  
Old   
TroyK
 
Posts: n/a

Default Re: About grammar and syntax on a possible relational language - 03-12-2008 , 10:29 AM






On Mar 12, 8:33*am, Cimode <cim... (AT) hotmail (DOT) com> wrote:
Quote:
On Mar 11, 5:38 pm, Cimode <cim... (AT) hotmail (DOT) com> wrote:

Why not:
[MAKE RICH_EMPLOYEE = {EMPLOYEE WITH SALARY > 100000}]
(with curly braces around the derivation expression)? It seems a
little "off" to use them only sometimes.

Because I reserved '[]' to relation operation and '{}' to relation
definition. *I will keep the remark in mind though

To be more explicit {} is attribute level manipulation and [] is
relation level manipulation to keep the language as versatile as
possible. *For example

[MAKE R0 = {ATTRIBUTE0_1, ATTRIBUTE0_2}]
[MAKE R1 = {ATTRIBUTE1_1, ATTRIBUTE1_2}]
[MAKE R2 = R0 UNION R1]
PRESENT2D [R2]

does the same thing as

PRESENT2D [{ATTRIBUTE0_1, ATTRIBUTE0_2} UNION {ATTRIBUTE1_1,
ATTRIBUTE1_2}]

It is also about the coherence of the computing model behind. *The
input of the media layer is necessarily a relation. *The input of the
logical layer may either be a relation or an attribute set.
I see what you're aiming for and I think that I agree with the syntax.
The example that introduced the confusion for me is this:
[MAKE VIP_MEMBER = {RICH_EMPLOYEE}]

where "RICH_EMPLOYEE" refers to a relation.

TroyK


Reply With Quote
  #42  
Old   
TroyK
 
Posts: n/a

Default Re: About grammar and syntax on a possible relational language - 03-12-2008 , 10:29 AM






On Mar 12, 8:33*am, Cimode <cim... (AT) hotmail (DOT) com> wrote:
Quote:
On Mar 11, 5:38 pm, Cimode <cim... (AT) hotmail (DOT) com> wrote:

Why not:
[MAKE RICH_EMPLOYEE = {EMPLOYEE WITH SALARY > 100000}]
(with curly braces around the derivation expression)? It seems a
little "off" to use them only sometimes.

Because I reserved '[]' to relation operation and '{}' to relation
definition. *I will keep the remark in mind though

To be more explicit {} is attribute level manipulation and [] is
relation level manipulation to keep the language as versatile as
possible. *For example

[MAKE R0 = {ATTRIBUTE0_1, ATTRIBUTE0_2}]
[MAKE R1 = {ATTRIBUTE1_1, ATTRIBUTE1_2}]
[MAKE R2 = R0 UNION R1]
PRESENT2D [R2]

does the same thing as

PRESENT2D [{ATTRIBUTE0_1, ATTRIBUTE0_2} UNION {ATTRIBUTE1_1,
ATTRIBUTE1_2}]

It is also about the coherence of the computing model behind. *The
input of the media layer is necessarily a relation. *The input of the
logical layer may either be a relation or an attribute set.
I see what you're aiming for and I think that I agree with the syntax.
The example that introduced the confusion for me is this:
[MAKE VIP_MEMBER = {RICH_EMPLOYEE}]

where "RICH_EMPLOYEE" refers to a relation.

TroyK


Reply With Quote
  #43  
Old   
TroyK
 
Posts: n/a

Default Re: About grammar and syntax on a possible relational language - 03-12-2008 , 10:29 AM



On Mar 12, 8:33*am, Cimode <cim... (AT) hotmail (DOT) com> wrote:
Quote:
On Mar 11, 5:38 pm, Cimode <cim... (AT) hotmail (DOT) com> wrote:

Why not:
[MAKE RICH_EMPLOYEE = {EMPLOYEE WITH SALARY > 100000}]
(with curly braces around the derivation expression)? It seems a
little "off" to use them only sometimes.

Because I reserved '[]' to relation operation and '{}' to relation
definition. *I will keep the remark in mind though

To be more explicit {} is attribute level manipulation and [] is
relation level manipulation to keep the language as versatile as
possible. *For example

[MAKE R0 = {ATTRIBUTE0_1, ATTRIBUTE0_2}]
[MAKE R1 = {ATTRIBUTE1_1, ATTRIBUTE1_2}]
[MAKE R2 = R0 UNION R1]
PRESENT2D [R2]

does the same thing as

PRESENT2D [{ATTRIBUTE0_1, ATTRIBUTE0_2} UNION {ATTRIBUTE1_1,
ATTRIBUTE1_2}]

It is also about the coherence of the computing model behind. *The
input of the media layer is necessarily a relation. *The input of the
logical layer may either be a relation or an attribute set.
I see what you're aiming for and I think that I agree with the syntax.
The example that introduced the confusion for me is this:
[MAKE VIP_MEMBER = {RICH_EMPLOYEE}]

where "RICH_EMPLOYEE" refers to a relation.

TroyK


Reply With Quote
  #44  
Old   
TroyK
 
Posts: n/a

Default Re: About grammar and syntax on a possible relational language - 03-12-2008 , 10:29 AM



On Mar 12, 8:33*am, Cimode <cim... (AT) hotmail (DOT) com> wrote:
Quote:
On Mar 11, 5:38 pm, Cimode <cim... (AT) hotmail (DOT) com> wrote:

Why not:
[MAKE RICH_EMPLOYEE = {EMPLOYEE WITH SALARY > 100000}]
(with curly braces around the derivation expression)? It seems a
little "off" to use them only sometimes.

Because I reserved '[]' to relation operation and '{}' to relation
definition. *I will keep the remark in mind though

To be more explicit {} is attribute level manipulation and [] is
relation level manipulation to keep the language as versatile as
possible. *For example

[MAKE R0 = {ATTRIBUTE0_1, ATTRIBUTE0_2}]
[MAKE R1 = {ATTRIBUTE1_1, ATTRIBUTE1_2}]
[MAKE R2 = R0 UNION R1]
PRESENT2D [R2]

does the same thing as

PRESENT2D [{ATTRIBUTE0_1, ATTRIBUTE0_2} UNION {ATTRIBUTE1_1,
ATTRIBUTE1_2}]

It is also about the coherence of the computing model behind. *The
input of the media layer is necessarily a relation. *The input of the
logical layer may either be a relation or an attribute set.
I see what you're aiming for and I think that I agree with the syntax.
The example that introduced the confusion for me is this:
[MAKE VIP_MEMBER = {RICH_EMPLOYEE}]

where "RICH_EMPLOYEE" refers to a relation.

TroyK


Reply With Quote
  #45  
Old   
TroyK
 
Posts: n/a

Default Re: About grammar and syntax on a possible relational language - 03-12-2008 , 10:29 AM



On Mar 12, 8:33*am, Cimode <cim... (AT) hotmail (DOT) com> wrote:
Quote:
On Mar 11, 5:38 pm, Cimode <cim... (AT) hotmail (DOT) com> wrote:

Why not:
[MAKE RICH_EMPLOYEE = {EMPLOYEE WITH SALARY > 100000}]
(with curly braces around the derivation expression)? It seems a
little "off" to use them only sometimes.

Because I reserved '[]' to relation operation and '{}' to relation
definition. *I will keep the remark in mind though

To be more explicit {} is attribute level manipulation and [] is
relation level manipulation to keep the language as versatile as
possible. *For example

[MAKE R0 = {ATTRIBUTE0_1, ATTRIBUTE0_2}]
[MAKE R1 = {ATTRIBUTE1_1, ATTRIBUTE1_2}]
[MAKE R2 = R0 UNION R1]
PRESENT2D [R2]

does the same thing as

PRESENT2D [{ATTRIBUTE0_1, ATTRIBUTE0_2} UNION {ATTRIBUTE1_1,
ATTRIBUTE1_2}]

It is also about the coherence of the computing model behind. *The
input of the media layer is necessarily a relation. *The input of the
logical layer may either be a relation or an attribute set.
I see what you're aiming for and I think that I agree with the syntax.
The example that introduced the confusion for me is this:
[MAKE VIP_MEMBER = {RICH_EMPLOYEE}]

where "RICH_EMPLOYEE" refers to a relation.

TroyK


Reply With Quote
  #46  
Old   
TroyK
 
Posts: n/a

Default Re: About grammar and syntax on a possible relational language - 03-12-2008 , 10:29 AM



On Mar 12, 8:33*am, Cimode <cim... (AT) hotmail (DOT) com> wrote:
Quote:
On Mar 11, 5:38 pm, Cimode <cim... (AT) hotmail (DOT) com> wrote:

Why not:
[MAKE RICH_EMPLOYEE = {EMPLOYEE WITH SALARY > 100000}]
(with curly braces around the derivation expression)? It seems a
little "off" to use them only sometimes.

Because I reserved '[]' to relation operation and '{}' to relation
definition. *I will keep the remark in mind though

To be more explicit {} is attribute level manipulation and [] is
relation level manipulation to keep the language as versatile as
possible. *For example

[MAKE R0 = {ATTRIBUTE0_1, ATTRIBUTE0_2}]
[MAKE R1 = {ATTRIBUTE1_1, ATTRIBUTE1_2}]
[MAKE R2 = R0 UNION R1]
PRESENT2D [R2]

does the same thing as

PRESENT2D [{ATTRIBUTE0_1, ATTRIBUTE0_2} UNION {ATTRIBUTE1_1,
ATTRIBUTE1_2}]

It is also about the coherence of the computing model behind. *The
input of the media layer is necessarily a relation. *The input of the
logical layer may either be a relation or an attribute set.
I see what you're aiming for and I think that I agree with the syntax.
The example that introduced the confusion for me is this:
[MAKE VIP_MEMBER = {RICH_EMPLOYEE}]

where "RICH_EMPLOYEE" refers to a relation.

TroyK


Reply With Quote
  #47  
Old   
Cimode
 
Posts: n/a

Default Re: About grammar and syntax on a possible relational language - 03-12-2008 , 10:36 AM



On Mar 12, 4:29 pm, TroyK <cs_tr... (AT) juno (DOT) com> wrote:
Quote:
On Mar 12, 8:33 am, Cimode <cim... (AT) hotmail (DOT) com> wrote:



On Mar 11, 5:38 pm, Cimode <cim... (AT) hotmail (DOT) com> wrote:

Why not:
[MAKE RICH_EMPLOYEE = {EMPLOYEE WITH SALARY > 100000}]
(with curly braces around the derivation expression)? It seems a
little "off" to use them only sometimes.

Because I reserved '[]' to relation operation and '{}' to relation
definition. I will keep the remark in mind though

To be more explicit {} is attribute level manipulation and [] is
relation level manipulation to keep the language as versatile as
possible. For example

[MAKE R0 = {ATTRIBUTE0_1, ATTRIBUTE0_2}]
[MAKE R1 = {ATTRIBUTE1_1, ATTRIBUTE1_2}]
[MAKE R2 = R0 UNION R1]
PRESENT2D [R2]

does the same thing as

PRESENT2D [{ATTRIBUTE0_1, ATTRIBUTE0_2} UNION {ATTRIBUTE1_1,
ATTRIBUTE1_2}]

It is also about the coherence of the computing model behind. The
input of the media layer is necessarily a relation. The input of the
logical layer may either be a relation or an attribute set.

I see what you're aiming for and I think that I agree with the syntax.
The example that introduced the confusion for me is this:
[MAKE VIP_MEMBER = {RICH_EMPLOYEE}]

where "RICH_EMPLOYEE" refers to a relation.
Yes, under this premise a relation is a synonym for type.

Quote:
TroyK


Reply With Quote
  #48  
Old   
Cimode
 
Posts: n/a

Default Re: About grammar and syntax on a possible relational language - 03-12-2008 , 10:36 AM



On Mar 12, 4:29 pm, TroyK <cs_tr... (AT) juno (DOT) com> wrote:
Quote:
On Mar 12, 8:33 am, Cimode <cim... (AT) hotmail (DOT) com> wrote:



On Mar 11, 5:38 pm, Cimode <cim... (AT) hotmail (DOT) com> wrote:

Why not:
[MAKE RICH_EMPLOYEE = {EMPLOYEE WITH SALARY > 100000}]
(with curly braces around the derivation expression)? It seems a
little "off" to use them only sometimes.

Because I reserved '[]' to relation operation and '{}' to relation
definition. I will keep the remark in mind though

To be more explicit {} is attribute level manipulation and [] is
relation level manipulation to keep the language as versatile as
possible. For example

[MAKE R0 = {ATTRIBUTE0_1, ATTRIBUTE0_2}]
[MAKE R1 = {ATTRIBUTE1_1, ATTRIBUTE1_2}]
[MAKE R2 = R0 UNION R1]
PRESENT2D [R2]

does the same thing as

PRESENT2D [{ATTRIBUTE0_1, ATTRIBUTE0_2} UNION {ATTRIBUTE1_1,
ATTRIBUTE1_2}]

It is also about the coherence of the computing model behind. The
input of the media layer is necessarily a relation. The input of the
logical layer may either be a relation or an attribute set.

I see what you're aiming for and I think that I agree with the syntax.
The example that introduced the confusion for me is this:
[MAKE VIP_MEMBER = {RICH_EMPLOYEE}]

where "RICH_EMPLOYEE" refers to a relation.
Yes, under this premise a relation is a synonym for type.

Quote:
TroyK


Reply With Quote
  #49  
Old   
Cimode
 
Posts: n/a

Default Re: About grammar and syntax on a possible relational language - 03-12-2008 , 10:36 AM



On Mar 12, 4:29 pm, TroyK <cs_tr... (AT) juno (DOT) com> wrote:
Quote:
On Mar 12, 8:33 am, Cimode <cim... (AT) hotmail (DOT) com> wrote:



On Mar 11, 5:38 pm, Cimode <cim... (AT) hotmail (DOT) com> wrote:

Why not:
[MAKE RICH_EMPLOYEE = {EMPLOYEE WITH SALARY > 100000}]
(with curly braces around the derivation expression)? It seems a
little "off" to use them only sometimes.

Because I reserved '[]' to relation operation and '{}' to relation
definition. I will keep the remark in mind though

To be more explicit {} is attribute level manipulation and [] is
relation level manipulation to keep the language as versatile as
possible. For example

[MAKE R0 = {ATTRIBUTE0_1, ATTRIBUTE0_2}]
[MAKE R1 = {ATTRIBUTE1_1, ATTRIBUTE1_2}]
[MAKE R2 = R0 UNION R1]
PRESENT2D [R2]

does the same thing as

PRESENT2D [{ATTRIBUTE0_1, ATTRIBUTE0_2} UNION {ATTRIBUTE1_1,
ATTRIBUTE1_2}]

It is also about the coherence of the computing model behind. The
input of the media layer is necessarily a relation. The input of the
logical layer may either be a relation or an attribute set.

I see what you're aiming for and I think that I agree with the syntax.
The example that introduced the confusion for me is this:
[MAKE VIP_MEMBER = {RICH_EMPLOYEE}]

where "RICH_EMPLOYEE" refers to a relation.
Yes, under this premise a relation is a synonym for type.

Quote:
TroyK


Reply With Quote
  #50  
Old   
Cimode
 
Posts: n/a

Default Re: About grammar and syntax on a possible relational language - 03-12-2008 , 10:36 AM



On Mar 12, 4:29 pm, TroyK <cs_tr... (AT) juno (DOT) com> wrote:
Quote:
On Mar 12, 8:33 am, Cimode <cim... (AT) hotmail (DOT) com> wrote:



On Mar 11, 5:38 pm, Cimode <cim... (AT) hotmail (DOT) com> wrote:

Why not:
[MAKE RICH_EMPLOYEE = {EMPLOYEE WITH SALARY > 100000}]
(with curly braces around the derivation expression)? It seems a
little "off" to use them only sometimes.

Because I reserved '[]' to relation operation and '{}' to relation
definition. I will keep the remark in mind though

To be more explicit {} is attribute level manipulation and [] is
relation level manipulation to keep the language as versatile as
possible. For example

[MAKE R0 = {ATTRIBUTE0_1, ATTRIBUTE0_2}]
[MAKE R1 = {ATTRIBUTE1_1, ATTRIBUTE1_2}]
[MAKE R2 = R0 UNION R1]
PRESENT2D [R2]

does the same thing as

PRESENT2D [{ATTRIBUTE0_1, ATTRIBUTE0_2} UNION {ATTRIBUTE1_1,
ATTRIBUTE1_2}]

It is also about the coherence of the computing model behind. The
input of the media layer is necessarily a relation. The input of the
logical layer may either be a relation or an attribute set.

I see what you're aiming for and I think that I agree with the syntax.
The example that introduced the confusion for me is this:
[MAKE VIP_MEMBER = {RICH_EMPLOYEE}]

where "RICH_EMPLOYEE" refers to a relation.
Yes, under this premise a relation is a synonym for type.

Quote:
TroyK


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.