比如有两表,产品表A有主键为产品记录,表B有各月销量,现在想找某月某产品销货情况成一条记录,如:CHANPIN XIAOLIANG JINGE
A 4000 300000
若用SELECT CHANPIN,XIAOLING,JINGE FROM A JOIN B ON A.CHANPIN =B.CHANPIN WHERE YUE AND CHANPIN='A',就会有好多条记录,请问这有什么方法实现?
后面加上 WHERE A.CHANPIN='A'
问题没描述对,修正了
@herry507: SELECT TOP 1 CHANPIN....