NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

create table ORDERITEM
(Id int Not Null Primary Key,
OrderId int,
ProductId int,
UnitPrice int,
Quantity int)

create table Product
(Id int Not Null Primary Key,
ProductName nvarchar(50),
SupplierId int,
UnitPrice float,
Package nvarchar(50),
isDisonctinued nvarchar(10))


create table ORDER1
(Id int Not Null Primary Key,
OrderDate DATE,
CustomerId int,
TotalAmount float)

create table SUPPLIER
(Id int Not Null Primary Key,
CompanyName nvarchar(50),
ContactName nvarchar(50),
City nvarchar(50),
Country nvarchar(50),
Phone int,
Fax int)

create table CUSTOMER
(Id int Not Null Primary Key,
FirstName nvarchar(50),
LastName nvarchar(50),
City nvarchar(50),
Country nvarchar(50),
Phone int)

alter table ORDERITEM
add constraint ORDERITEM_PRODUCT_FK Foreign Key(ProductId)
references PRODUCT

alter table ORDERITEM
add constraint ORDERITEM_ORDER_FK Foreign Key(OrderId)
references ORDER1

alter table PRODUCT
add constraint PRODUCT_SUPPLIER_FK Foreign Key(SupplierId)
references SUPPLIER

alter table ORDER1
add constraint ORDER_CUSTOMER_FK Foreign Key(CustomerId)
references CUSTOMER

INSERT INTO PRODUCT(Id,ProductName,SupplierId,UnitPrice,Package,isDisonctinued)
values(1,'LG',0121,1200,5,'yes'),
(2,'Samsung',0131,1300,15,'yes'),
(3,'Motorola',0141,1400,25,'No'),
(4,'Nokia',0151,1500,35,'No'),
(5,'Apple',0161,1600,45,'yes')

INSERT INTO SUPPLIER(Id,CompanyName,ContactName,City,Country,Phone,Fax)
values(1,'Microsoft','HR Pritam','Faridabad','India',0111234,121),
(2,'Apple','HR Sanya','Palwal','India',0111224,145),
(3,'Amazon','HR Vivek','Ambala','India',011233,321),
(4,'Genpact','HR Kunjan','Chandigarh','India',01114376,457),
(5,'Capgemini','HR Divya','Rewari','India',01115735,444)

INSERT INTO CUSTOMER(Id,FirstName,LastName,City,Country,Phone)
values(1,'Rohit','Tanwar','Faridabad','India',0111234),
(2,'Dipesh','Kumar','Rewari','India',0111112),
(3,'Harkesh','Nagar','Gurgaon','India',0111456),
(4,'Krishna','Rajput','Palwal','India',0111780),
(5,'Rahul','Saini','Ambala','India',0111546)

INSERT INTO ORDER1(Id,OrderDate,CustomerId,TotalAmount)
values(1,'2012-06-26',0123,1000),
(2,'2013-04-15',0124,2000),
(3,'2015-07-25',0125,3000),
(4,'2017-09-11',0126,4000),
(5,'2019-11-17',0127,5000)

INSERT INTO ORDERITEM(Id,OrderId,ProductId,UnitPrice,Quantity)
values(1,1111,1,1000,10),
(2,1211,2,2000,20),
(3,1311,3,3000,30),
(4,1411,4,4000,40),
(5,1511,5,5000,50)
     
 
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.