我正在使用SQl服务器。我已将Excel表格导入SQL服务器。我有1500行Sql server喜欢。我有三个SQL SQL服务器。像这样
AMOUNT EMPLOYEE DEDUCTION
277.6 Addison, Franklin 401K %
41.31 Addison, Franklin 401K Loan 1
125.04 Addison, Franklin Dental PDO
268.47 Addison, Franklin Plat PPO
119.23 Akusobi, Kelechi 401K %
446.43 Aldridge, John 401K %
381.63 Alexander, Kathryn 401K %
128.73 Alexander, Kathryn Gold PPO
423.23 Aliabadi, Amir 401K %
59.16 Aliabadi, Amir Dental Max
179.95 Aliabadi, Amir Plat PPO
255.77 Allan, Matthew 401K %
45.2 Allan, Matthew Dental PDO
26.93 Allan, Matthew FSA Health
在此表中我有三列AMOUNT,EMPLOYEE,DEDUCTIOn。想要选择哪个员工拥有401k%。如何选择哪个员工拥有此表的401k%?我该如何选择?请任何人指导我
答案 0 :(得分:0)
select * from #Table1 where DEDUCTION in ('401K %','Dental PDO')