テーブル 'products' の SQL クエリを生成する必要があります。テーブルの構造は次のとおりです。
item_no pack_no name model sellingprice discount price_rs quality
101 1001 aa 2001 $500 10% Rs.24750 excellent
102 1002 bb 1996 $400 5% Rs.20900 poor
103 1003 cx 1986 $400 5% Rs.20900 good
104 1004 dx 2010 $500 10% Rs.24750 poor
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
500 5000 bx 1998 $200 10% Rs.9900 very good
等々..
次のようなさまざまな条件があります。
言う、
すべての製品をフィルタリングする必要があります
model is between 1990 to 2010
AND
sellingprice is between 600 to 700
AND
discount is between 0 to 20%
AND
quality is between good and excellent
これらすべてを 1 つの SELECT ステートメントで行います。それは可能ですか、それとも別のステートメントを作成してから結果を連結する必要がありますか?