Join 3 tables to display certain data PHP-MSSQL

后端 未结 1 383
太阳男子
太阳男子 2021-01-27 08:21

so i have this tables and i want to get certain datas for user to view and be able to POST to other page

i cant post images so i have to break this down so please bear w

相关标签:
1条回答
  • 2021-01-27 09:12

    the join will look like this,

    SELECT  a.*, c.PC_Number
    FROM    users a
            INNER JOIN FA_PC b
                ON a.UserID = b.UserID
            INNER JOIN PC c
                ON b.PCID = c.PCID
    

    To fully gain knowledge about joins, kindly visit the link below:

    • Visual Representation of SQL Joins
    0 讨论(0)
提交回复
热议问题