select Computers.Factory as 廠別, Computers.Depart as 部門, Computers.id as 財產編號, Computers.Owner as 使用者, Computers.Account as 帳戶, Computers.Locate as 存放位置, Hardware.OS as 操作系統, Hardware.CPU, Hardware.Computer_Type as 主機型號, Hardware.Ram as 內存, concat(ceil(Hardware.Ram / 256) * 256, ‘MB‘) as 標準內存, Hardware.Display_Card as 顯卡, Hardware.MotherBoard_Vendor as 主板廠商, Hardware.MotherBoard_Type as 主板型號, Hardware.HardDisk_Type as 硬盤型號, Hardware.HardDisk_Size as 硬盤大小, /*Hardware.size / (1024 * 1024 * 1024) as STNAD_HARD,*/ concat(case when Hardware.HardDisk_Size/(1024*1024*1024) <= 40 then 40 when Hardware.HardDisk_Size/(1024*1024*1024) > 40 and Hardware.HardDisk_Size/(1024*1024*1024) <= 80 then 80 when Hardware.HardDisk_Size/(1024*1024*1024) > 80 and Hardware.HardDisk_Size/(1024*1024*1024) <= 120 then 120 when Hardware.HardDisk_Size/(1024*1024*1024) > 120 and Hardware.HardDisk_Size/(1024*1024*1024) <= 160 then 160 when Hardware.HardDisk_Size/(1024*1024*1024) > 160 and Hardware.HardDisk_Size/(1024*1024*1024) <= 250 then 250 when Hardware.HardDisk_Size/(1024*1024*1024) > 250 and Hardware.HardDisk_Size/(1024*1024*1024) <= 320 then 320 when Hardware.HardDisk_Size/(1024*1024*1024) > 320 and Hardware.HardDisk_Size/(1024*1024*1024) <= 500 then 500 when Hardware.HardDisk_Size/(1024*1024*1024) > 500 and Hardware.HardDisk_Size/(1024*1024*1024) <= 750 then 750 when Hardware.HardDisk_Size/(1024*1024*1024) > 750 and Hardware.HardDisk_Size/(1024*1024*1024) <= 1024 then 1024 when Hardware.HardDisk_Size/(1024*1024*1024) > 1024 and Hardware.HardDisk_Size/(1024*1024*1024) <= 1500 then 1500 when Hardware.HardDisk_Size/(1024*1024*1024) > 1500 and Hardware.HardDisk_Size/(1024*1024*1024) <= 2048 then 2048 end,‘GB‘) as 標準硬盤大小, Hardware.NetCard_Type as 網卡型號, Hardware.MAC_Address AS MAC, Hardware.IP_Address AS IP, Control.Admin, Control.Poweruser, CASE WHEN Control.Usb = ‘1‘ THEN ‘開‘ else ‘關‘ end as USB, Computers.Mark, Computers.Note AS 備註 from Computers, Hardware, Control where Computers.id = Hardware.id and Computers.id = Control.id
时间: 2024-10-05 05:08:21