0% found this document useful (0 votes)
59 views1 page

Masud Hasan - 1191302477 PDF

This document contains two SQL statements. The first statement creates a Manufacturing table with fields for item ID, date, cost and a foreign key reference to the item table. It also creates a trigger to fire before insert on the Manufacturing table that inserts a record if the date is after 2006-01-01 and before 2006-12-31. The second statement selects the name of any items from the item table that have a price over $200 that are not present in the invoice table.

Uploaded by

Blackk Worldz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views1 page

Masud Hasan - 1191302477 PDF

This document contains two SQL statements. The first statement creates a Manufacturing table with fields for item ID, date, cost and a foreign key reference to the item table. It also creates a trigger to fire before insert on the Manufacturing table that inserts a record if the date is after 2006-01-01 and before 2006-12-31. The second statement selects the name of any items from the item table that have a price over $200 that are not present in the invoice table.

Uploaded by

Blackk Worldz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1191302477

($1) CREATE TAUE Manuhaeuran


Hemd int aot ull,
Hanuhactutingdate ddte,
Honufaturingeost decimal (F, 2),
FORE 1GN KEY (kem) renecs Iem

OREATE TPIGGER date


NO CASCADE BEfoPE INSERT 6N Mamukaeturat
REFERENGENGANEWAS-
FOR EACH DLS MODE
DB2S@L
INSERT 7Hered VALUES Mamaaaturer
eASE
WHER Hanuhaahutungdate >» "2006-or-oL' AND= 200e-12-
HASUD

2) SELECT kemName HASAN


FRO Ikem
WHEPE em. Friee >200
AND NOT EXISTS (SELECT * FROH Inroice
WHERE Jtem.ItemlD = Iovoice.ItemID);

You might also like