Professional Documents
Culture Documents
This study source was downloaded by 100000827204985 from CourseHero.com on 06-20-2022 19:18:30 GMT -05:00
https://www.coursehero.com/file/107086123/TBDsql/
FOREIGN KEY (payment_method_id) REFERENCES payment_method(id);
ALTER TABLE purchase_order
ADD CONSTRAINT fk_purchase_order_customer
FOREIGN KEY (customer_id) REFERENCES customer(id);
ALTER TABLE purchase_order_detail
ADD CONSTRAINT fk_purchase_order_detail_product
FOREIGN KEY (product_id) REFERENCES product(id);
ALTER TABLE purchase_order_detail
ADD CONSTRAINT fk_purchase_order_detail_purchase_order
FOREIGN KEY (purchase_order_id) REFERENCES purchase_order(id);
UPDATE product
SET name="Celular ET2019 - 19xs", description="Ideal para el trabajo y la escuela"
WHERE id = 305;
UPDATE product
SET description="Todo lo que buscas en una computadora de escritorio"
WHERE id=301;
This study source was downloaded by 100000827204985 from CourseHero.com on 06-20-2022 19:18:30 GMT -05:00
https://www.coursehero.com/file/107086123/TBDsql/
INSERT INTO product(id, name, price, description, store_id) VALUES(873, "Laptop
1945", 15499.00, "Unidad de estado solido de 256GB y 8 de RAM", 459);
INSERT INTO product(id, name, price, description, store_id) VALUES(682, "Coche
Stereo- GPS", 1299.00, "pantalla tactil, bluetooth, no incluye DVD", 459);
INSERT INTO store(id, name, adress) VALUES (111,"sucursal", "blvd obregon #423");
SELECT * FROM store;
SELECT * FROM store
INNER JOIN product ON store.id = product.store_id;
This study source was downloaded by 100000827204985 from CourseHero.com on 06-20-2022 19:18:30 GMT -05:00
https://www.coursehero.com/file/107086123/TBDsql/
Powered by TCPDF (www.tcpdf.org)