Docsity

This is an activity that involved coding, Assignments of Information Technology

Toggle sidebar
bg1
Exercises: Create the following tables and insert the following data.
1. CREATE TABLE Manufacturers (
Code int not null,
Name varchar(20) not null,
primary key (code));
Values:
(1,'Sony');
(2,'Creative Labs');
(3,'Hewlett-Packard');
(4,'Iomega');
(5,'Fujitsu');
(6,'Winchester');
2. CREATE TABLE Products (
Code int not null,
Name varchar(20) not null,
Price int not null,
Manufacturer int not null,
pf3
pf4

Partial preview of the text

Download This is an activity that involved coding and more Assignments Information Technology in PDF only on Docsity!

Exercises: Create the following tables and insert the following data.

  1. CREATE TABLE Manufacturers ( Code int not null, Name varchar(20) not null, primary key (code)); Values: (1,'Sony'); (2,'Creative Labs'); (3,'Hewlett-Packard'); (4,'Iomega'); (5,'Fujitsu'); (6,'Winchester');
  2. CREATE TABLE Products ( Code int not null, Name varchar(20) not null, Price int not null, Manufacturer int not null,

primary key (Code) ); Values: (1,'Hard drive',240,5); (2,'Memory',120,6); (3,'ZIP drive',150,4); (4,'Floppy disk',5,6); (5,'Monitor',240,1); (6,'DVD drive',180,2); (7,'CD drive',90,2); (8,'Printer',270,3); (9,'Toner cartridge',66,3); (10,'DVD burner',180,2);

  1. CREATE TABLE Departments ( Code int not null, Name varchar(20) not null, Budget int not null, primary key (Code));

('332569843','George','ODonnell',77); ('546523478','John','Doe',59); ('631231482','David','Smith',77); ('654873219','Zacary','Efron',59); ('745685214','Eric','Goldsmith',59); ('845657245','Elizabeth','Doe',14); ('845657246','Kumar','Swamy',14);