Skip to content

Tag: sql

Calculate sum of price from 2 table sql server

After asking about calculate the sum of the total price here and Its work but then went I add(SUM(PRICE*AMOUNT) AS TOTAL_PRICE) to create my own View, the Total_price = Expr1, It just PRICE * AMOUNT, there is no sum here. I apply It to create a view here is the query Here is the output Could anyone help me ou…

Best practice for verifying correctness of data in MS SQL

We have multiple tables with different data (for example masses, heights, widths, …) that needs to be verified by employees. To keep track of already verified data, we are thinking about designing a following table: This table links the different product id’s, tables and columns that will be verif…