Derek Panter
2010-09-03 10:30:23 UTC
Use MS Access to create the database design shown below:
suppliers table
(sno char(3) primary key,
sname char(15),
status numeric,
city char(10));
parts table
(pno char(3) primary key,
pname char(15),
color char(10),
weight numeric,
city char(10));
orders table
(sno char(3) combined primary key of sno and pno,
pno char(3) foreign keys sno and pno – use the relationships screen to set up these foreign keys,
qty numeric);
Add the data shown below to the indicated tables:
suppliers table
('S1','Smith',20, 'London');
('S2','Jones',10, 'Paris');
('S3','Blake',30, 'Paris');
('S4','Clark',20, 'London');
('S5','Adams',30, 'Athens');
parts table
('P1','Nut','Red',12, 'London');
('P2','Bolt','Green',17, 'Paris');
('P3','Screw','Blue',17, 'Rome');
('P4','Screw','Red',14, 'London');
('P5','Cam','Blue',12, 'Paris');
('P6','Cog','Red',19, 'London');
orders table
('S1','P1',300);
('S1','P2',200);
('S1','P3',400);
('S1','P4',200);
('S1','P5',100);
('S1','P6',100);
('S2','P1',300);
('S2','P2',400);
('S3','P2',200);
('S4','P2',200);
('S4','P4',300);
('S4','P5',400);
Create a query, a form and a report of your choice (using two of the related tables for each). Add your name to the headers for the form and report that you create.
Entering the data shouldn't be any problem for me but I have no clue what to do with those figures at the beginning where it says (sno and other weird stuff, I would be indebted to whoever could tell me what to do with these and or give me a reference or good resource.