100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Case uitwerking

Advance Database System Project

Beoordeling
-
Verkocht
1
Pagina's
32
Cijfer
A+
Geüpload op
03-08-2023
Geschreven in
2023/2024

Introduction………………………………………………………………………………….. 1 2 ER Diagram………………………………………………………………………………….. 3 3 Relational Design diagrams …………………………………………………………………. 4 4 Convert Database in 3NF ……………………………………………………………………. 5 5 SQL Statement………………………………………………………………………………. 10 5.1 Create Statement…………………………………………………………………………… 10 5.2 Insert Statement……………………………………………………………………………… 13 5.3 Select Statement……………………………………………………………………………... 17 5.4 Views………………………………………………………………………………………… 20 5.5 Trigger……………………………………………………………………………………….. 24 6 Testing & Validation. ………………………………………………………………………… 25 6.1 Constraint ……………………………………………………………………………………. 25 6.2 Database ……………………………………………………………………………………... 28 7 Conclusion…………………………………………………………………………………… 30 2 INTRODUCTION Problem Domain: The database is for a retail company that sells various products to customers through their website. The database includes information about customers, products, orders, invoices, payments, employees, sales, categories, and suppliers. Requirements: ● Customers should have a unique identifier, name, address, contact number, and email address. 32 ● Products should have a unique identifier, category, name, description, price, weight, UPS code, and inventory level. ● Orders should have a unique identifier, customer identifier, product identifier, order date, and quantity. ● Invoices should have a unique identifier, order identifier, payment identifier, discount identifier, customer identifier, invoice date, due date, total amount, discount amount, tax amount, paid amount, and payment status. ● Payments should have a unique identifier, order identifier, payment date, payment amount, and payment method. ● Employees should have a unique identifier, user name, password, name, and job title. ● Sales should have a unique identifier, customer identifier, employee identifier, date and time, and total amount. ● Categories should have a unique identifier, name, and description. ● Suppliers should have a unique identifier, name, address, city, state, country, contact information, and TIN number. ● Discounts should have a unique identifier, name, description, and discount amount. ● The inventory level of a product should be an integer that is required and cannot be negative. ● The weight of a product should be a real number that is required and cannot be negative. ● The quantity of an order should be an integer that is required and cannot be negative. ● The total amount of an order should be a real number that is required and cannot be negative. ● The total amount of an invoice should be a real number that is required and cannot be negative. ● The discount amount of an invoice should be a real number that is required and cannot be negative. ● The tax amount of an invoice should be a real number that is required and cannot be negative. ● The paid amount of an invoice should be a real number that is required and cannot be negative. ● The payment status of an invoice should be a text field that is required. 1 ● The payment amount of a payment should be a real number that is required and cannot be negative. Functional Dependencies: ● Products: product_id -> category_id, name, description, price, weight, ups, inventory_level, supplier_id ● Orders: order_id -> customer_id, product_id, order_date, quantity, total_amount ● Invoices: invoice_id -> order_id, payment_id, discount_id, customer_id, invoice_date, due_date, total_amount, discount_amount, tax_amount, paid_amount, payment_status ● Payments: payment_id -> order_id, payment_date, payment_amount, payment_method ● Employees: employee_id -> user_name, password, name, job_title, contact_info ● Sales: sale_id -> customer_id, employee_id, date_time, total_amount ● Category: category_id -> name, description ● Suppliers: supplier_id -> name, address, city, state, country, contact_info, TIN_number Multivalued Dependencies: ● None identified in the given schema.

Meer zien Lees minder
Instelling
Vak











Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
3 augustus 2023
Aantal pagina's
32
Geschreven in
2023/2024
Type
Case uitwerking
Docent(en)
Matthew long
Cijfer
A+

Onderwerpen

€5,67
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper
Seller avatar
neelptl1999

Maak kennis met de verkoper

Seller avatar
neelptl1999 (self)
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
1
Lid sinds
2 jaar
Aantal volgers
0
Documenten
1
Laatst verkocht
2 jaar geleden

0,0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen