2
我有以下的數據庫,我需要列出所有subno,子名,其中配額比subno 30012.SQL - 如何列出值大於另一個單元格的單元格?
subno subname quota
30006 Adv Database design 300
30007 Software fundamentals 200
30008 Application Development 350
30010 Database development 300
30011 System design 200
30012 Requirement engineering 350
我知道配額更大,我可以做
select subno, subname from subject
where quota > 350
但如何我是否改變這一點以允許配額大於30012的配額而不是大於350?