Solved

Relational Algebra

Posted on 2004-10-10
6
1,148 Views
Last Modified: 2008-02-26
Is there a way I can test relational algebra operations online?  If so, what is the website.  Can I use relational algebra in MySQL or MS Access?

I'd like to verify my operations will yield what I think they will yield.

Thanks.
0
Comment
Question by:jello32
  • 3
  • 2
6 Comments
 
LVL 15

Expert Comment

by:jdlambert1
ID: 12272073
You can do it in any environment that allows you to create and manipulate variables, which means programming, more than databases, though you can certainly use data in a database in your operations.

Access allows you to program in VBA -- Visual Basic for Applications.
MySQL doesn't provide for stored procedures (programming commands added to SQL) in the released version, but it will be available in version 5, which can already be downloaded in a beta test.
SQL Server and Sybase use Transact-SQL (T-SQL) in stored procedures.
Oracle uses PL/SQL in stored procedures.
DB2 uses IBM-SQL in stored procedures.
0
 

Author Comment

by:jello32
ID: 12272106
if I program it, then it's not exactly the operations.

For example if I have the following relational tables:
PERSON(Name, Hometown)
GROWS(Hometown, Flower)
ALLERGIES(Name, Flower)

and I want to do

PERSON / ALLEGIES

where / is division, then I'd have to program what division does. Is that right? So that would be subject to logic errors.  I was wondering if I can input the relations, select the table names and operations and see the results.
0
 
LVL 2

Accepted Solution

by:
vorb1s earned 50 total points
ID: 12276040
If you want to know more about relational Algebra, try this web: http://db.grussell.org/section010.html
There is also something for online testing under link: Online SQL
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 15

Expert Comment

by:jdlambert1
ID: 12276421
You can't do mathmatical operations between tables, but you can between columns, if the columns are numeric data types. E.g., if Price and Tax are decimal values, then you can put (Price * Tax) or (Price/Tax) in your SELECT statement.
 
0
 

Author Comment

by:jello32
ID: 12281034
jdlambert1 division is a relational algebra operation.

vorb1s - thanks. that site has a says in the future they'll put up online testing for relational algebra.  It's sorely needed.
0
 
LVL 15

Expert Comment

by:jdlambert1
ID: 12281369
>division is a relational algebra operation
Yes, that's why I gave an example of dividing one column's values by another column's values.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now