Results 1 to 3 of 3

Thread: Database: Relational Algebra

  1. #1
    Join Date
    Sep 2008
    Posts
    5

    Database: Relational Algebra

    Decompose the following query into Relational Algebra expression:

    Select VehicleId, CustomerName

    From Rental, Customer

    Where Rental.CustomerId = Customer.CustomerId

    And DateOut = ’24-SEP-08’

    And DateReturn IS NULL
    Help needed

  2. #2
    Join Date
    Sep 2008
    Posts
    1
    Hi Here's what it should be in relational algebra:

    Please note that, you have to substitute the bold operations with the relevant symbols as I can't write them here.

    PROJECTVehicleId, CustomerName (SELECT Rental.CustomerId = Customer.CustomerId and DateOut = ’24-SEP-08’ and DateReturn is NULL (Rental JOIN Customer))

    Good Luck

  3. #3
    Join Date
    Sep 2008
    Posts
    5
    Thank you very much. Solved the problem

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •