NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

create database gayrimenkuldatabase
go
Use gayrimenkuldatabase
go



CREATE TABLE AltTurler(
AltTurID int IDENTITY(1,1) PRIMARY KEY NOT NULL,
TurID int NULL,
AltTurAd nchar(20) NULL,

)
go
CREATE TABLE Turler (
TurID int IDENTITY(1,1) PRIMARY KEY NOT NULL,
TurAdı nchar(20) NULL,
)
GO
CREATE TABLE Kimden (
KimdenID int IDENTITY(1,1) PRIMARY KEY NOT NULL,
Kimden nchar(20) NULL
)
GO
CREATE TABLE FiyatTurler (
FiyatTurID int IDENTITY(1,1) PRIMARY KEY NOT NULL,
FiyatTur nchar(10) NOT NULL
)
GO

GO
CREATE TABLE İslemler(
İslemID int IDENTITY(1,1) PRIMARY KEY NOT NULL,
İslem nchar(20) NULL
)
GO
CREATE TABLE İller(
SehirID int IDENTITY(1,1) PRIMARY KEY NOT NULL,
SehirAdı nvarchar(50) NULL,
PlakaNo int NULL,
Constraint FK_İller_SehirID Foreign Key(SehirID) References Ilceler(ID)
)
GO
CREATE TABLE Ilceler(
IlceID int IDENTITY(1,1) PRIMARY KEY NOT NULL,
SehirID int NULL,
IlceAdı nchar(20) NULL,
Constraint FK_Ilceler_SehirID Foreign Key(SehirID) References İller(SehirID)
)
GO
CREATE TABLE Kullanicilar(
KullaniciID int IDENTITY(1,1) PRIMARY KEY NOT NULL,
Meslek nchar(20) NULL,
KullanıcıAd nchar(20) NULL,
Sifre nchar(20) NULL,
AdSoyad nchar(20) NULL,
EMail nchar(50) NULL,
Telefon nchar(20) NULL
)
GO
CREATE TABLE SeciliicOzellikler(
SeciliicOzelliklerID int IDENTITY(1,1) PRIMARY KEY NOT NULL,
IlanID int NULL,
IcOzellikID nchar(40) NULL,
Constraint FK_SeciliicOzelliklerr_TurID Foreign Key(TurID) References Turler(TurID),
)
GO
CREATE TABLE İcOzellikler(
IcOzelliklerID int IDENTITY(1,1) PRIMARY KEY NOT NULL,
IcOzellik nchar(40) NULL,
)
GO

CREATE TABLE SeciliMuhit(
SeciliMuhit int IDENTITY(1,1) PRIMARY KEY NOT NULL,
IlanID int NULL,
UlasimId int NULL,
)
GO
CREATE TABLE Muhit(
MuhitID int IDENTITY(1,1) PRIMARY KEY NOT NULL,
Muhit nchar(25) NULL,
)
GO
CREATE TABLE SeciliUlasim(
SeciliUlasim int IDENTITY(1,1) PRIMARY KEY NOT NULL,
IlanID int NULL,
UlasımID int NULL,
)
GO
CREATE TABLE Ulasim(
UlasimID int IDENTITY(1,1) PRIMARY KEY NOT NULL,
Ulasım nchar(300) NULL,

)
go

CREATE TABLE Ilanlar(
IlanID int IDENTITY(1,1) PRIMARY KEY NOT NULL,
TurID int NULL,
AltTurID int NULL,
IslemID int NULL,
FiyatTurID int NULL,
Fiyat money NULL,
KimdenID int NULL,
KullaniciID int NULL,
SehirID int NULL,
İlceID int NULL,
Acıklama nchar(100) NULL,
Tarih datetime NULL,

Constraint FK_Ilanlar_TurID Foreign Key(TurID) References Turler(TurID),
Constraint FK_Ilanlar_AltTurID Foreign Key(AltTurID) References AltTurler(AltTurID),
Constraint FK_Ilanlar_IslemID Foreign Key(IslemID) References İslemler(İslemID),
Constraint FK_Ilanlar_FiyatTurID Foreign Key(FiyatTurID) References FiyatTurler(FiyatTurID),
Constraint FK_Ilanlar_KimdenID Foreign Key(KimdenID) References Kimden(KimdenID),
Constraint FK_Ilanlar_TurID Foreign Key(TurID) References Turler(TurID),
Constraint FK_Ilanlar_SehirID Foreign Key(SehirID) References İller(SehirID),
Constraint FK_Ilanlar_İlceID Foreign Key(İlceID) References Ilceler(IlceID),
Constraint FK_İller_KullaniciID Foreign Key(KullaniciID) References Kullanicilar(KullaniciID),
)

CREATE TABLE DısOzellikler(
DısOzellikID int IDENTITY(1,1) PRIMARY KEY NOT NULL,
DısOzellik nchar(35) NULL,
)
GO

CREATE TABLE SeciliDisOzellikler(
SeciliDisOzelliklerID int IDENTITY(1,1) PRIMARY KEY NOT NULL,
IlanID int NULL,
DısOzellikAdı nchar(40) NULL,
Constraint FK_SeciliDisOzelliklerr_IlanID Foreign Key(IlanID) References Ilanlar(IlanID),
Constraint FK_SeciliDisOzelliklerr_IlanID Foreign Key(IlanID) References Ilanlar(IlanID),
)
go
CREATE TABLE Cephe(
CepheID int IDENTITY(1,1) PRIMARY KEY NOT NULL,
Cephe nchar(10) NULL,

)
go

CREATE TABLE SeciliCephe(
SeciliCephe int IDENTITY(1,1) PRIMARY KEY NOT NULL,
IlanID int NULL,
CepheID int NULL,
Constraint FK_SeciliCephe_IlanID Foreign Key(IlanID) References Ilanlar(IlanID),
Constraint FK_SeciliCephe_CepheID Foreign Key(CepheID) References Cephe(CeID),

)
go
CREATE TABLE SeciliMuhit(
SeciliMuhit int IDENTITY(1,1) PRIMARY KEY NOT NULL,
IlanID int NULL,
UlasimId int NULL,
)
GO
CREATE TABLE Muhit(
MuhitID int IDENTITY(1,1) PRIMARY KEY NOT NULL,
Muhit nchar(25) NULL,
)
GO
     
 
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.