Advertisements
Advertisements
प्रश्न
Abhishek has created a table, named STOCK, with a set of records to maintain the data of packaged milk in his shop. After creating the table, he entered the data and the table looked as follows:
| Code | Type | Volume | Qty | Price |
| AF0.5 | F | 0.5 | 300 | 38.00 |
| MFO.5 | F | 0.5 | 250 | 36.50 |
| MT1.О | T | 1.0 | 150 | 64.00 |
| AT1.0 | T | 1.0 | 100 | 66.00 |
| PD1.0 | D | 1.0 | 50 | 52.00 |
| PT0.5 | T | 0.5 | 78 | 30.00 |
Considering the table
STOCK as given above, write the output on execution of the following queries :SELECT Volume, Qty, Price FROM STOCKWHERE Type IN ('F', 'D');SELECT Code, Qty FROM STOCKWHERE Price BETWEEN 30 AND 50;SELECT DISTINCT Type FROM STOCK;SELECT Volume, count(*) FROM STOCK GROUP BY Volume;
अति संक्षिप्त उत्तर
Advertisements
उत्तर
-
Volume Qty Price 0.5 300 38.00 0.5 250 36.50 1.0 50 52.00 -
Code Qty AFO.5 300 MFO.5 250 PTO.5 78 -
Type F T D -
Volume count(*) 0.5 3 1.0 3
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
