Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
980 views
in Technique[技术] by (71.8m points)

filter - With an Inner Join between just two tables, having trouble filtering a "right" database column

So say code=

select toy category, count(customerstate)
from toyinventory ti
INNER JOIN toyorders to
ON ti.orderid = to.orderid
where ti.plantid = 31-12-2020
and ti.category = 'dolls'
group by customerstate'

ok so filtering date and category which are columns in toyinventory but how to filter something from toyorders like say to.dolltype <> 'barbie' ? THX

getting cannot be bound error when i tried this as another and getting bad data when i tried this as and after ON

question from:https://stackoverflow.com/questions/65646964/with-an-inner-join-between-just-two-tables-having-trouble-filtering-a-right-d

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...