You are on page 1of 9

LAGUNA UNIVERSITY

COLLEGE OF COMPUTING AND INFORMATION TECHNOLOGY

COMPUTER PROGRAMMING 2 (VISUAL BASIC)

FLORENCIO V. CONTERERAS JR.

INSTRUCTOR 1
MODULE 7

ACVITIVITY 1

1.

A relational model is a collection of relations that is represented in a database. A relation is a value


table. It has three concepts or features: attributes, a table, and a tuple. An attribute is a table column
that contains properties that define a relationship. A tuple or record is simply a single row or table
containing a single record.

2.

No. Other non-SQL models, in addition to the object database model, have arisen in opposition to the
relational model: The graph database model is much more versatile than the network database model
since it allows any node to bind to any other node.

3.

An Object relational model combines an Object oriented database model with a relational database
model. As a result, it specifically supports objects, classes, inheritance, and so on. And it is mostly
recommended for businesses that require high performance on complex data. In terms of the IT
industry, it is essentially a good platform choice.

ACVITIVITY 2

1.

2.

Key Terms

3.

It contains 7 records and there are 5 fields per record

4.

The number of attributes or columns in a table is referred to as its degree. The number of tuples or rows
in a table is known as its cardinality.

5.

The table have 6 tuples


MODULE 8

1.

2.

INSERT INTO `publisher form` VALUES 

("Asian Development Bank", "Manila, Philippines"), 

("Eastern Visayas Mail", "Ormoc City, Philippines"), 

("Rex Group of Companies", "Quezon, City Philippines"), 

("Abiva Publishing House, Inc", "Quezon City, Philippines"), 

("Cantada Sports Center", "Taguig Philippines "), 

("Sinag – Tala Publishers", "Makati City, Philippines"), 

("New Thoughts Publication", "Quezon, Philippines");


3.

4.

SELECT EventName, EventDate FROM tblEvent ORDER BY EventDate DESC;


LAB ACVITITY

INSERT INTO `manufacturer` VALUES 

("ManufacturerCode", "Short Text"), 

("ManufacturerName", "Short Text");

INSERT INTO `manufacturer form` VALUES

 ("AMD", "Advanced Micro devices"), 

("GIGABYTE", "Gigabyte Technology"), 

("INTEL", "Intel Corporation"), 

("MSI", "Micro Star International");


3

INSERT INTO `product` VALUES

 ("ProductID", "Short Text"), 

("Model", "Short Text"), 

("Type", "Short Text"), 

("Manufacturer", "Short Text"), 

("Price", "Currency");
4

INSERT INTO `product form` VALUES 

('AMD_001','FX8350','Processor','AMD','Php8,000.00'),

('AMD_002','A10_7700K','Processor','AMD','Php8,000.00'), 

('AMD_003','Opteron 6000','Processor','AMD','Php15,000.00'),

 ('GIG_001','GTX 770','Graphics Card','GIGABYTE','Php16,000.00'),

 ('GIG_002','GA_Z87X','Main board','GIGABYTE','Php9,000.00'),

 ('GIG_003','RA 270X','Graphics Card','GIGABYTE','Php7,000.00'),

 ('INT_001','Core i76700K','Processor','INTEL','Php18,000.00'),

 ('INT_002','Core i54570','Processor','INTEL','Php9,000.00'),

 ('INT_003','Xeon E7','Processor','INTEL','Php20,000.00'),

 ('MSI_001','MSI_Z98_G43','Main board','MSI','Php14,000.00'),

 ('MSI_002','GTX 960','Graphics Card','MSI','Php11,000.00'),

 ('MSI_003','R9 380','Graphics Card','MSI','Php18,000.00')

You might also like