Given the following table, COURSES, with the following rows, what values are generated by the query below ? SELECT DISTINCT SUBSTRING(course_code, 1, 4) FROM courses WHERE SUBSTRING(course_code, 1, 1) = 'C'
Given the following table, COURSES, with the following rows, what values are generated by the query below ?
SELECT DISTINCT SUBSTRING(course_code, 1, 4)
FROM courses
WHERE SUBSTRING(course_code, 1, 1) = 'C'
COURSE_CODE COURSE_NAME
COMP1027 Introduction to
COMP2007 Database Systems
CCSD1001 Linux
CCSD5002 Java
OSSS8027 Cloud Computing
ENGL5001 Technical Writing
SELECT DISTINCT SUBSTRING(course_code, 1, 4)
FROM courses
WHERE SUBSTRING(course_code, 1, 1) = 'C'
CCSD, ENGL
CCSD, OSSS
COMP, CCSD
COMP, ENGL
Trending now
This is a popular solution!
Step by step
Solved in 2 steps