Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

plz help me in this query , have exam tomo

$
0
0
please help me , I have exam tomorrow and I don't know what to do :confused:

this question I don't know the ans : (primary keys are underlined)
branch (branchcode , branchname, address, city)
customer (customercode, customername , address , city)
bank-account(accountnumber , customercode, accounttype, branchcode)
operation-details(operationcode, accountnumber, date, time, type-of-operation, amount)


specify the following query in relational algebra:
show the name and the city of the branches , in which at least a deposit operation (type-of-operation='deposit') with amount greater than 2000 euros has been done


specify the following query in SQL
for the customers who hold at least 2 bank accounts in the same branch , show the name of the customers and the name of the branch

I am sorry if that not the right place for my topic but i don't know where i should post it ,
please neeeeeeed your help thanks ...

Viewing all articles
Browse latest Browse all 13329

Trending Articles