Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
bc160401693
CREATE DATABASE BC160401693 CREATE TABLE Coustomer( custID smallint constraint cID primary key, cNAME Varchar(25), cADDRESS Text, cEMAIL Text, ); SELECT*FROM Coustomer CREATE TABLE Category( catID smallint constraint catID primary key, catNAME Varchar(25), initalRate int, ); SELECT*FROM Category CREATE TABLE Services( serID smallint constraint serID primary key, serTitle Varchar(50), setDescription Varchar(50), serCharges int, ); SELECT*FROM Services CREATE TABLE Food_item( itemID smallint constraint itemID primary key, itemName Varchar(25), itemDescription Varchar(50), ); SELECT*FROM Food_item CREATE TABLE Menu( menuID smallint constraint menuID primary key, no.Of.serving int, Quantity int, no.Ofitems int, ); SELECT*FROM Menu CREATE TABLE Venue( location Varchar(50), city Varchar(50), capacity Varchar(50), description Varchar(50), ); SELECT*FROM Venue CREATE TABLE Event( eID smallint constraint eID primary key, Date datetime, timeSlot time, ); SELECT*FROM Event INSERT INTO Event VALUES('1','7/15/2018','10:15') SELECT*FROM Event
run
|
edit
|
history
|
help
0
h
Agenda
Exam_1
Query through an error in Sql Server
Microsoft SQL Server T-SQL in 10 minutes - products
self join
Digital Innovation One - SQL Server _2
Find users who have been watching kid's programmes for 13 weeks
Life cycle
TSQL - Globally unique string generator