Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Suppose that you have the following table created as: CREATE TABLE TAB1(NAME VARCHAR2(100)); INSERT INTO TAB1 VALUES ('Ahmed Raoof Hasan'); Use one SELECT statement to
Suppose that you have the following table created as:
CREATE TABLE TAB1(NAME VARCHAR2(100));
INSERT INTO TAB1 VALUES ('Ahmed Raoof Hasan');
Use one SELECT statement to decompose the NAME into first, second, and last names.
e.g.
Name: Ahmed Raoof Hasan
- first: Ahmed
- second: Raoof
- last: Hasan
Hint: use the following syntax if needed:
INSTR(string, substring, start_position, occurrences)
SUBSTR(string, start_pos, length)
Step 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