Professional Documents
Culture Documents
Create table 1:
2. Create table 2:
3. Alter table 1:
4. Alter table 2:
6. Drop table:
7. Try it Out:
8. Insert Records:
9. Update Records 1:
SELECT name,CONCAT(CONCAT(SUBSTR(name,1,2),LENGTH(name)),SUBSTR(phno,-
3,3))
AS user_password FROM users
ORDER BY name desc;
----------------------------------------------------------------------
SELECT guestid,name,
COALESCE(phone,COALESCE(address, COALESCE(email,'NOT AVAILABLE'))) AS
contact_info FROM guest ORDER BY guestid;
----------------------------------------------------------------------
24. Display student count: