Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
Use AS
create table customer
(ID int NOT NULL,
NAME varchar(100),
ADDRESS varchar(100),
PRIMARY KEY (ID)
);
insert into customer (ID,NAME,ADDRESS) VALUES('1','Matt Hills','2000 Derry Road, Missisauga,ON');
insert into customer (ID,NAME,ADDRESS) VALUES('2','Chris George','20 Younge Street, Toronto,ON');
CREATE TABLE STORES
(ID int, STORED int, store_location varchar(100), S_ID int,
PRIMARY KEY (ID),
FOREIGN KEY (S_ID)
REFERENCES CUSTOMER(ID)
);
insert into stores (ID,STOREID,STORE_LOCATION,S_ID) VALUES('1','1900','WEBER STREET WATERLOO N, ON', '1');
insert into stores (ID,STOREID,STORE_LOCATION,S_ID) VALUES('2','1400','2 KING STREET S, KITCHENER,ON', '2');
insert into stores (ID,STOREID,STORE_LOCATION,S_ID) VALUES('3','1200','22 LANCASTER BLVD, KITCHENER,ON', '1');
insert into stores (ID,STOREID,STORE_LOCATION,S_ID) VALUES('4','560','12 WESTMOUNT CRES, WATERLOO,ON', '1');
SELECT * FROM STORES
SELECT * FROM CUSTOMER
CREATE TABLE SALES
(ID int,
SALES_AMT FLOAT,
SALE_DATE DATETIME,
SA_ID INT,
PRIMARY KEY (ID),
FOREIGN KEY (S_ID)
REFERENCES CUSTOMER(ID)
);
ON [SECONDARY];
insert into SALES (ID,SALES_AMT,SALE_DATE,SA_ID) VALUES('1','4.95','January 1 2019, 11:34:34', '1');
insert into SALES (ID,SALES_AMT,SALE_DATE,SA_ID) VALUES('2','12.20','January 2 2019, 12:19:13', '2');
insert into SALES (ID,SALES_AMT,SALE_DATE,SA_ID) VALUES('3','19.11','January 2 2019, 08:34:21', '1');
insert into SALES (ID,SALES_AMT,SALE_DATE,SA_ID) VALUES('4','7.45','January 4 2019, 07:33:33', '2');
insert into SALES (ID,SALES_AMT,SALE_DATE,SA_ID) VALUES('5','14.33','January 4 2019, 13:58:12', '1');
insert into SALES (ID,SALES_AMT,SALE_DATE,SA_ID) VALUES('6','6.32','January 5 2019, 15:33:09', '1');
SELECT * FROM SALES
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team