Advertisements
Advertisements
प्रश्न
Suman has created a table named WORKER with a set of records to maintain the data of the construction sites, which consists of WID, WNAME, WAGE, HOURS, TYPE, and SITEID. After creating the table, she entered data in it, which is as follows:
| WID | WNAME | WAGE | HOURS | TYPE | SITEID |
W01 |
Ahmed J |
1500 |
200 |
Unskilled |
103 |
W11 |
Naveen S |
520 |
100 |
Skilled |
101 |
W02 |
Jacob B |
780 |
95 |
Unskilled |
101 |
W15 |
Nihal K |
560 |
110 |
Semiskilled |
NULL |
W10 |
Anju S |
1200 |
130 |
Skilled |
103 |
Based on the data given above, answer the following questions:
- Write the
SQLstatement to display the names and wages of those workers whose wages are between800and1500. - Write the
SQLstatement to display the record of workers whoseSITEIDis not known. - Write the SQL statement to display
WNAME, WAGEandHOURSof all those workers whoseTYPEis‘Skilled’. - Write the SQL statement to change the
WAGEto 1200 of the workers where theTYPE“Semiskilled”.
कोड लेखन
Advertisements
उत्तर
-
Select WNAME, WAGE from WORKER where WAGE Between 800 and 1500; -
Select * from WORKER where SITEID IS NULL; -
Select WName, Wage, Hours from WORKER where Type="Skilled"; -
Update Worker Set Wage=1200 where Type="SemiSkilled";
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
