WebJun 8, 2016 · 2. You can use the HAVING clause to filter only those who have both Maths and ENG : SELECT t.student_id FROM student_books t WHERE t.Book IN ('Maths','Eng') GROUP BY t.student_id HAVING COUNT (distinct t.book) = 2. … WebQuestion 4: Write SQL query to add a column total price with datatype numeric and size 10, 2 in a table product. Answer: ALTER TABLE PRODUCT ADD TOTAL PRICE NUMBER (10,2). Question 5: Sonal needs to display name of teachers, who have “0” as the third character in their name. She wrote the following query.
[SQL] Consider the tables SCHOOL and ADMIN and answer …
WebNov 23, 2024 · Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam , ICSE Board Exam , State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and … WebMar 29, 2024 · In the options given above, option A is the first record of the table STUDENT. So, the correct answer is (A) Question 2(iv) Consider the following code: … can you get a job at nsa out of college
Structured Query Language (4 Marks Questions)
WebMar 29, 2024 · Write queries (a) to (d) based on the tables EMPLOYEE and DEPARTMENT given below: Table: EMPLOYEE EMPID NAME DOB DEPTID DESIG SALARY 120 Alisha 23 - Jan- - 1978 D001 Manager 75000 123 Nitin 10-Oct-77 D002 AO 59000 129 Navjot 12-Jul-71 D003 Supervisor 40000 130 Jimmy 30-Dec-80 ... WebMar 16, 2024 · (b) The code given below inserts the following record in the table Student: RollNo – integer Name – string Clas – integer Marks – integer Note the following to establish connectivity between Python and MYSQL: Username is root Password is tiger The table exists in a MYSQL database named school. WebConsider the table TEACHER given below. Write commands in SQL for (i) to (iii) and output for (iv) to (v) . Note: Hiredate is in mm/dd/yyyy format. To display all information … can you get a job at nasa without a degree