Consider the following schema in SQL:1999.
CREATE TABLE Warehouse (
Address ROW(Street CHAR(20), ZIP CHAR(5)),
Company CompanyType )
CREATE TYPE CompanyType (
Name CHAR(20),
Phone CHAR(10) )
Insert a tuple into Warehouse, for the company Acme, Inc., which has a phone number
6311237654 and whose warehouse is located on Main St. at ZIP code 44744.
Solution:
INSERT INTO Warehouse
VALUES (
ROW ( 'Main St.', 44744 ),
new CompanyType()
. Name('Acme Inc.')
. Phone('6311237654')
)
Computer Science & Information Technology
You might also like to view...
Computers using Microsoft Office PowerPoint Viewer can be run and edit PowerPoint presentations
Indicate whether the statement is true or false
Computer Science & Information Technology
Modifying table ________, such as text wrapping or cell spacing, can improve the overall appearance of a document
A) attributes B) designs C) properties D) settings
Computer Science & Information Technology