-
Notifications
You must be signed in to change notification settings - Fork 0
braincrash edited this page Apr 28, 2014
·
12 revisions
SELECT DISTINCT
organization.name
FROM
organization
INNER
JOIN shoe
ON shoe.organizationid=organization.id
INNER
JOIN donors
ON donors.id=shoe.donorsid
WHERE
donors.email = '[email protected]';
INSERT INTO shoe (donorsid,img,gender,size,type,received_date)
VALUES ((SELECT id FROM donors WHERE email = '[email protected]'),'SDFSDassasDFASDF','F','33','sandalia',NOW())
INSERT INTO donors (name,email,phone)
VALUES ('John Doe','[email protected]','987654321')
INSERT INTO shoe (donorsid,img,gender,size,type,received_date)
VALUES (3,'WQRQREQWRRWRQWR','M','42','sandalia',NOW())
INSERT INTO organization (name,phone,email,website,address,city,country)
VALUES ('Danoninho','987654321','[email protected]','http://www.danonas.com','Rua das Belas Couves Nº1','Lisboa','Portugal')
ALTER TABLE tablename AUTO_INCREMENT = 0;