Giter Club home page Giter Club logo

pk-list's Introduction

PK-List

Verilerin Alındığı Tarih 7.5.2019

Alınan Tarihteki Güncel Sayılar

  • İl: 81
  • İlçe: 973
  • Semt/Bucak/Belde: 12397
  • Mahalle: 73482
  • Posta Kodu: 73482

Turkey Veritabanını Oluşturun ve Aşağıdaki Seçeneklerden Birini Kullanın

Hazır Veriler İçin Create Tables & Insert Datas Klasörü İçindeki SQL Dosyalarını Çalıştırın

  • İl: dbo.Provinces.Table.Create.Insert.sql
  • İlçe: dbo.Districts.Table.Create.Insert.sql
  • Semt/Bucak/Belde: dbo.Towns.Create.Insert.Table.sql
  • Mahalle: dbo.Neighborhoods.Create.Insert.Table.sql
  • Posta Kodu: dbo.PostCodes.Create.Insert.Table.sql

MSSQL'den Aktarma Yapacaksanız Create Tables Klasörü İçindeki SQL Dosyalarını Çalıştırdıktan Sonra DB.Veri.Aktarim.sql Dosyasını Çalıştırın

  • İl: dbo.Provinces.Table.Create.sql
  • İlçe: dbo.Districts.Table.Create.sql
  • Semt/Bucak/Belde: dbo.Towns.Create.Table.sql
  • Mahalle: dbo.Neighborhoods.Create.Table.sql
  • Posta Kodu: dbo.PostCodes.Create.Table.sql

pk-list's People

Contributors

cmd64 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pk-list's Issues

hatalı veri aktarımı , tablo yaratmada eksik tanım ve sorgulamada hatalı sorgu

Bulduğum eksikler var.

1 - pk_list in son versiyonunda Rize için çayelinde MADENLİ semt ve bucak eklenmiş durumda.
bu nedenle 1 den fazla , MADENLİ var. bu ADANA ilinde ALADAĞ ilçesinde bulunan MADENLİ ile karışıyor.
veri aktarımı yapıldığında Rize ÇAYELİ MADENLİ semtinin bilgilerini ADANA ALADAĞ MADENLİ için ekliyor.
bu nedenle Rize ve ADANA arasında posta kodları karışıyor.

bunun için veri aktarım sorgusunun değişmesi gerekiyor.

2- https://github.com/cmd64/PK-List/blob/master/Create%20Tables/1.dbo.Provinces.Table.Create.sql

burada id primary key diğerlerinde olduğu gibi identity olmalı çünkü veri aktarımı için insert sorgusu çalıştırıldığında null veri girilemez hatası alınıyor.

3- https://github.com/cmd64/PK-List/blob/master/DB.Veri.Aktarim.sql
aşağıdaki sorgu da INNER JOIN Towns AS t ON t.Id = pk.DistrictId hatalı burada pk.TownId olmalı

/* Posta Kodu Gösterme */
SELECT p.Name AS Province, d.Name AS District, t.Name AS Town, n.Name AS Neighborhood, pk.Name AS PK
FROM PostCodes AS pk
INNER JOIN Neighborhoods AS n ON n.Id = pk.NeighborhoodId
INNER JOIN Towns AS t ON t.Id = pk.DistrictId
INNER JOIN Districts AS d ON d.Id = pk.DistrictId
INNER JOIN Provinces AS p ON p.Id = pk.ProvinceId

Emekleriniz için teşekkürler çok güzel bir çalışma olmuş.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.