Solved

Relational Algebra

Posted on 2004-10-10
6
1,151 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
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…

910 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

25 Experts available now in Live!

Get 1:1 Help Now