SQL Server computed column select from another table

后端 未结 3 938
说谎
说谎 2021-01-03 19:49

I\'m not to sure what the best way to go about this is, so i\'ll describe what the end goal is, and if a computed column is the answer then please help me go that route, or

3条回答
  •  花落未央
    2021-01-03 20:34

    if it is only for display purposes,why not create a view..

    select <> mediaspend+basicadviews as totaladviews
    from 
    orders o
    join
    packages p
    on p.packageid=o.orderid
    

提交回复
热议问题