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

It include codes that will be use in coding through SQL

Typology: Assignments

2019/2020

Uploaded on 03/09/2023

patricia-garcia-7hz
patricia-garcia-7hz 🇵🇭

3 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

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);