Answered step by step
Verified Expert Solution
Question
1 Approved Answer
by using SQL Editi 2. Insert following records using insert command to Student Table. Student SID GENDER M 345 234 451 239 SNAME BADAR SALIM
by using SQL
Editi 2. Insert following records using insert command to Student Table. Student SID GENDER M 345 234 451 239 SNAME BADAR SALIM ASMA AZZA AGE 19 23 34 45 SALARY 1500 1300 760 930 ADDRESS MUSCAT MUSCAT SOHAR MUSCAT M DOB 23/06/1991 27/03/2005 20/01/1999 30/11/2004 F F Write SQL queries for below questions. a) Change the address of Salim from MUSCAT to SOHAR. b) Increment the age of Azza by 1. c) Display all details of students coming from MUSCAT. d) Show all details of students who has date of birth after 01/01/2000. e) Select the name and address of students who has age greater than 25. f) Show the ID, name and salary of students who has salary between 1000 and 2000. g) Display the name and 12 months salary as Annual_Sal of all students. h) Display the name and age of students who has name starting with A. i) Display the name and age of students who has name ending with A. j) Display the name and age of students who has name with second character A. k) Display a column with name Stud_detail with name, age and salary" as a sentence in it for all 1) Display all Address without duplication. m) Display name and age of all female students coming from SOHAR. n) Display the name and salary of all students with DOB is equal to 27/03/2005 or age >30 o) Display the details of all students who is not coming from MUSCAT. p) Display the details of students according to the decreasing age order. q) Display the name and address of students by the order of gender, nameStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started