NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

Create database Retail123
create table SUPPLIERS (Id int not null primary key,
CompanyName varchar (50), ContactName varchar(50),
City varchar (50), Country Varchar (50), Phone int,
Fax int)

create table Customers (Id int not null primary key,
FirstName varchar(50), LastName varchar(50),
City varchar(50), Country varchar(50), Phone int)

create table Products (Id int not null primary key,
ProductName varchar(50), SupplierId int,
UnitPrice int, Package nvarchar (50), IsDisconnected varchar(50))

Create table Order_ (Id int not null primary key,
OrderDate datetime, CustomerId int, TotalAmount int)

create table OrderItems (Id int not null primary key,
OrderId int, ProductId int, UnitPrice int, Quantity int,
foreign key (orderid) references order_(Id),
foreign key (productId) references Products(Id))

Alter table Products
add constraints Product_FK
foreign key (SupplierId) references Suppliers(Id)
alter table Order_
add constraints Orders_FK
Foreign key (customerID) references customers(Id)

insert into SUPPLIERS (Id ,
CompanyName, ContactName ,
City , Country, Phone ,
Fax)
values (1, 'C1', 'A', 'Delhi', 'India', 2280507, 0551),
(2,'C2','B', 'Mumbai', 'India', 2280508, 0552),
(3,'C3','C', 'Chennai', 'India', 2280509, 0553),
(4, 'C4', 'D', 'Bangalore','India', 2280510, 0554)

insert into Customers (Id ,
FirstName , LastName ,
City , Country , Phone )
values (1, 'Ansh', 'Pandit', 'Delhi', 'India', 275261),
(2, 'Kiran', 'Kumari', 'Mumbai','India',275262)

insert into Products (Id ,
ProductName, SupplierId ,
UnitPrice, Package, IsDisconnected)

values (1, 'Nirma', 100, 20, 0, 'No'),
(2, 'Clinic Plus',101, 50, 1,'Yes'),
(3, 'Dove', 102, 40, 1, 'Yes')

insert into order_
values(1,'2015-12-17',3,123344),
(2,'2014-9-23',4,1234),
(3,'2012-1-17',2,543),
(4,'2002-4-3',1,1455),
(5,'2022-10-30',2,1567)

insert into OrderItems (Id ,
OrderId , ProductId , UnitPrice , Quantity)
values(1,3,2,346,2),
(2,1,2,23,5),
(3,2,3,233,6),
(4,3,1,2346,1),
(5,2,2,234,9)
     
 
what is notes.io
 

Notes.io is a web-based application for 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 12 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

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.