CBSE eBooks CBSE Guess > eBooks > Class XII > Computer Science By . Mr. MRK
Chapter – 8 . STRUCTURED QUERY LANGUAGE WORKERS
(i) To display W_ID Firstname, address and City of all employees living in New York from the Table WORKERs Ans. select W_ID ,firstname,address,city from workers where city=”New York” (ii) To display the content of workers table in ascending order of LASTNAME. Ans. Select * from Worker Order By lastname Asc (iii) To display the FIRSTNAME, LASTNAME and Total Salary of all Clerks from the tables WORKERS And DESIG, where Total salary is calculated as Salary + benifts. Ans. Select firstname, lastname, salary+benefits where worker.w_id=desg.w_id and Designation=”Clerk” (iv) To display the minimum salary among managers and Clerks from the tables DESIG Ans . (Try This Answer) (v) SELECT FIRSTNAME, SALARY Ans .
(vi) SELECT COUNT(DISTINCT DESIGNATION) FROM DESIGN ; Ans. 4 |