Skip to content
Advertisement

Tag: ms-access

How do i sum two query with each count and criteria in it

I have this two query sql and i’m trying to do a sum of both 2 counts in the query together but when i try to do the UNION ALL but it kept prompt me to enter parameter for CountOfTools_Number2. All i wan is the sum of the two count and return me a value. Answer Presuming your two example

SQL Updated question conditional division

Given columns A and B from Table1: Given columns S, M, L from Table2: I want to create a new column in Table1 that outputs the quotients of values of column B and Avg(Table2.S) only if the entry in the same row in column A of is ‘Small’. If column A has ‘Med’, we divide by Avg(Table2.M) and if it

Advertisement