relational calculus

  • I'm solving a problem using tuple relational calculus ( TRC) in DBMS.

    Problem
    Find the name of all the employees who work for XYZ Bank Corporation.

    Solution ( as given in my book)

    I don't understand why book is using S . We have t . Since both of them represents tuples , we could just use t in place of S and get moving.

    Can anyone please explain why we required S ?

  • spectra - Sunday, October 21, 2018 9:33 PM

    I'm solving a problem using tuple relational calculus ( TRC) in DBMS.

    Problem
    Find the name of all the employees who work for XYZ Bank Corporation.

    Solution ( as given in my book)

    I don't understand why book is using S . We have t . Since both of them represents tuples , we could just use t in place of S and get moving.

    Can anyone please explain why we required S ?

    Are you trying to write a relational database system or solve the problem of finding the name of all the employees that work for a given company?  If the latter, then why the need for the relation calculus?  It's akin to using calculus to create the formula for the volume of a sphere each time that you need to solve for the volume of a sphere rather than just using the proper formula, which has been proven thousands, if not, millions of times.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.
    "Change is inevitable... change for the better is not".

    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)
    Intro to Tally Tables and Functions

  • spectra - Sunday, October 21, 2018 9:33 PM

    I'm solving a problem using tuple relational calculus ( TRC) in DBMS.

    Problem
    Find the name of all the employees who work for XYZ Bank Corporation.

    Solution ( as given in my book)

    I don't understand why book is using S . We have t . Since both of them represents tuples , we could just use t in place of S and get moving.

    Can anyone please explain why we required S ?

    I think it's just say where t is a member of something that exists in S

  • Jonathan AC Roberts - Monday, October 22, 2018 7:13 AM

    spectra - Sunday, October 21, 2018 9:33 PM

    I'm solving a problem using tuple relational calculus ( TRC) in DBMS.

    Problem
    Find the name of all the employees who work for XYZ Bank Corporation.

    Solution ( as given in my book)

    I don't understand why book is using S . We have t . Since both of them represents tuples , we could just use t in place of S and get moving.

    Can anyone please explain why we required S ?

    I think it's just say where t is a member of something that exists in S

    Could not get you. Could you please elaborate more ?

  • spectra - Monday, October 22, 2018 9:08 AM

    Jonathan AC Roberts - Monday, October 22, 2018 7:13 AM

    spectra - Sunday, October 21, 2018 9:33 PM

    I'm solving a problem using tuple relational calculus ( TRC) in DBMS.

    Problem
    Find the name of all the employees who work for XYZ Bank Corporation.

    Solution ( as given in my book)

    I don't understand why book is using S . We have t . Since both of them represents tuples , we could just use t in place of S and get moving.

    Can anyone please explain why we required S ?

    I think it's just say where t is a member of something that exists in S

    Could not get you. Could you please elaborate more ?

    t is the set of all tuples that exist in S that are a member of the WORKS formula.

  • Jonathan AC Roberts - Monday, October 22, 2018 10:19 AM

    spectra - Monday, October 22, 2018 9:08 AM

    Jonathan AC Roberts - Monday, October 22, 2018 7:13 AM

    spectra - Sunday, October 21, 2018 9:33 PM

    I'm solving a problem using tuple relational calculus ( TRC) in DBMS.

    Problem
    Find the name of all the employees who work for XYZ Bank Corporation.

    Solution ( as given in my book)

    I don't understand why book is using S . We have t . Since both of them represents tuples , we could just use t in place of S and get moving.

    Can anyone please explain why we required S ?

    I think it's just say where t is a member of something that exists in S

    Could not get you. Could you please elaborate more ?

    t is the set of all tuples that exist in S that are a member of the WORKS formula.

    S is not a tuple ?

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply