3. (b) Yes,
explanation:
Distribution independence implies that users should not have to be aware of whether a database is distributed. And logical data independence implies that application programs and terminal activities remain logically unimpaired when information preserving changes of any kind that theoretically permit unimpaired are made to the base tables. So, they both are very important for a distributed database.
MySQL code:
4.(a)
create table A(
staffNo varchar(5),
fName varchar(10),
lName varchar(10),
position varchar(15),
sex char(1),
DOB date,
salary decimal(10, 2),
branchNo varchar(5)
);
insert into A values('SL21', 'John', 'White', 'Manager', 'M',
'1945-10-01', 30000.00, 'B005');
insert into A values('SG37', 'Ann', 'Beech', 'Assistant', 'F',
'1960-11-10', 12000.00, 'B003');
insert into A values('SG14', 'David', 'Ford', 'Supervisor', 'M',
'1958-03-24', 18000.00, 'B003');
insert into A values('SA9', 'Mary', 'Howe', 'Assistant', 'F',
'1970-02-19', 9000.00, 'B007');
insert into A values('SG5', 'Susan', 'Brand', 'Manager', 'F',
'1940-06-03', 24000.00, 'B003');
insert into A values('SL41', 'Julie', 'Lee', 'Assistant', 'F',
'1965-06-13', 9000.00, 'B006');
4. (b)
CREATE TABLE B AS
SELECT staffNo, fName, lName, salary
FROM A;
select * from B;
Question 3 (a) Identify the notation A B, and write a brief notes about it. [12...
1. listing staff first name, position and their manage first
names and positions for all male staff. The output header needs to
distinguish between staff and manger.
the answer should be like this
mysql> select from Staff: I staffNo | fName LName position sex DOB |SA9 Mary Howe Assistant F1970-02-19|9000,00 |B007 SG14 I salary |branchNo | managerNo | SG14 David | Ford Supervisor |M 1958-03-24| 18000.00 |B003 SG5 SG37 Ann Beech Assistant IF 1960-11-10 | 12000.00 |B003 SL21 SG5 Susan...
For the tables given above, write a relational algebra statement to show the names of the female staffs whose salaries are more than 10000. Use S for selection, P for projection, |X| for join, X for cross product, T for aggregation and grouping, U for union, ^ for interaction, / for division, - for intersection. TT T Arial 3 (12pt) T5 - E S @a's For the tables given above, write one relational algebra statement to show the Branch No...
[Relational Algebra]
Using the above information, please write relational algebra
expressions and display tables to answer the following. Do
NOT write in SQL code.
1. Select all staff that happen to be female with a salary more
than $20,000
2. List all staff that happen to have a salary between $20,000
and $30,000
Branch branch No street city postcode BOOS BOO7 воод 3004 BOOZ 22 Deer Rd London SWI4EH 16 Argyll St Aberdeen A235U 163 Main St Glasgow GII YOX...
Assignment Chapter 6 Part - Assignment Chapter 6 Part 2 - Write Queries that: 1. List all Staff first and last names that have a branch number listed the Branch table. 2. Sort the query results from the query above is descending order 3. Join Branch and Staff tables where branch No are equal 4. Execute Left Outer Join for query 3 5. Execute Right Outer Join for query 3. 6. Insert record - 'CR76', 'PL94', '2018-02-28', 'To Big' into...