Write commands in SQL for (i) and (ii) and output for (iii) given below :
(i) To displays client names of clients, their phone numbers, partyId, and party decription who will have number of guests more than 50 for their parties.
(ii) To displays Client Ids, their addresses, number of guests of those client who have 'Adarsh' anywhere in their addresses.
ClientId |
ClientIdName |
Address |
Phone |
No of Guests |
PartyId |
SELECT Clientld, ClientName, NoofGuests, Description, Costperperson, From Client, Party WHERE Client.ParyId =Party.Partyld AND NoofGuests BETWEEN 50 AND 100;