Solved

Relational Algebra

Posted on 2004-10-10
6
1,154 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Do we need servers??? 5 196
Need Distinct Value from Joined Tables in MSSQL 5 62
Update from TABLE-A to TABLE-B 5 48
Slow MySQL (InnoDB) Query with Inner Join & GroupBy 7 45
I guess that all of us know that caching the data usually increase the performance, but I worried if all of us are aware about the risk that caching the data provides and how to minimize this.  That’s the reason why I decided to write this short art…
APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
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…

777 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