Computer Science > Database Management > Structured Query Language
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 :

(a) Based on the data given above, answer the following questions : (i) Write the SQL statement to display the names and wages of those workers whose wages are between 800 and 1500. (ii) Write the SQL statement to display the record of workers whose SITEID is not known. (iii) Write the SQL statement to display WNAME, WAGE and HOURS of all those workers whose TYPE is 'Skilled'. (iv) Write the SQL statement to change the WAGE to 1200 of the workers where the TYPE is "Semiskilled".
OR
(b) Considering the above given table WORKER, write the output on execution of the following SQL commands : (i)
SELECT WNAME, WAGE*HOURS FROM WORKER WHERE SITEID = 103;SELECT COUNT(DISTINCT TYPE) FROM WORKER;SELECT MAX(WAGE), MIN(WAGE), TYPE FROM WORKER GROUP BY TYPE;SELECT WNAME, SITEID FROM WORKER WHERE TYPE="Unskilled" ORDER BY HOURS;Current Question
Community Stats
Track Your Progress
Sign up to save your practice progress, add favorites, and get personalized insights.

Edvaya Target
Practice Questions & Mock Tests
Improve your problem-solving skills with our extensive collection of practice questions including PYQs, NCERT Textbooks, NCERT Exemplars and Mock Tests. Get instant feedback and detailed solutions to enhance your preparation.
