About Me

My photo
I worked as freelancer on freelance.com for many years, Then opened my Company. I did software coding with my company. But also did pottery -- I know well business management. Software coding is coming next to it as a plus. It helps but organising is as much important as coding. I have many years of experience in business management of Industrial Construction works. I am quite known as company for CAD drafting and 3d for architectural design. I had quite a lot experience at USA and at Turkey. I am less known, in my pottery love.

Thursday, February 22, 2024

SQL - examples

 3 tables join

SELECT

  tbl_data_09_12_fon_islem.fon_id,

  tbl_data_09_11_fon_id.fon_ad,

  tbl_data_09_12_fon_islem.islem_id_date,

  tbl_ref_09_11_islem_tip.islem_tip, 

  tbl_data_09_12_fon_islem.islem_amount 

FROM

  tbl_data_09_12_fon_islem

  INNER JOIN tbl_data_09_11_fon_id ON tbl_data_09_12_fon_islem.fon_id = tbl_data_09_11_fon_id.fon_id

  INNER JOIN tbl_ref_09_11_islem_tip ON tbl_data_09_12_fon_islem.islem_tip_id = tbl_ref_09_11_islem_tip.islem_tip_id 

Order By tbl_data_09_11_fon_id.fon_ad, tbl_data_09_12_fon_islem.islem_id_date;


Relationship; 

suppose we have two tables country and city

  • country: 
    • countryid - integer - Primarykey
    • countryname - char - index unique
  • city
    • cityid - int - primary key
    • cityname - char - index unique
    • countryid - int - index 
      • relationship connection is done here on the child table and not on the parent
      • so the relationship to the table country will appear on here
      • you must first create the index here so as the connection 1 to many becomes possible 
XAMPP - how to transfer db from one computer to another
  • dbconfig.php
    • localhost:3310 or whatever - change it
  • phpmyadmin
    • user account password 
      • olustur
      • pass ayni olmayabilir ona gore update?
    • user account config pass 
      • degistir
    • XAMPP 
      • kapat
      • yeniden ac
  • XAMPP versiyonlari
    • bendeki versiyon neyse karsida oyle olmali
      • apache 4.47
        • işlemeyen versiyon: 4,50
      • php 7.23.18
        • işlemeyen versiyon: 8,0,11
    • karsi tarafta versiyon farkliysa islemeyebilir
    • php update ve ust versiyonlarda sistem islemeyebilir

No comments:

Post a Comment

neo4j-mathematics

 create the nodes: CREATE   ( n : sil  { name : "k1" ,  val :   1250 }),( m : sil2  { name : "k2" ,  val : 1250 }),   ( ...