Tried to create Custom Report using Query. But can’t make it using WHERE clause.
SELECT
h.item_name as ‘Item Name’,
FROM tabItem
h,
WHERE
h.country = “US” as ‘Country’;
I don’t know what is wrong.
any help guys. Thanks
Tried to create Custom Report using Query. But can’t make it using WHERE clause.
SELECT
h.item_name as ‘Item Name’,
FROM tabItem
h,
WHERE
h.country = “US” as ‘Country’;
I don’t know what is wrong.
any help guys. Thanks
Hi @FMDO,
If the country is available in Item doctype then apply it.
SELECT
`tabItem`.`name` AS `Item:Link/Item:200`,
`tabItem`.`item_name` AS `Item Name:Data:200`
FROM
`tabItem`
WHERE
`tabItem`.`country` = "US"
Reference:
Thank You!
SELECT
h.item_name as 'Item Name',
h.country as 'Country'
FROM
tabItem h
WHERE
h.country = 'US';
if it didn’t work please show what kind of error it give you