I can do it in SQL Server:
SELECT 'HERRAMIENTA ELÉCTRICA' AS TIPO_PRODUCTO,
0 AS DEPRECIACION,
(select sum(empid) from HR.employees) STOCK
but in Accessthe same request it will show me the following error:
The query input must contain at least one table or query
So what could be the best way to emulate this? Making a query with any other table looks dirty for me.
EDIT 1:, HR.employees It may not have data, but I want to show the constants ('HERRAMIENTA ELÉCTRICA', '' 0 ') and 0 in the third column, possibly using isnull and this is not a problem.
source
share