Question: CREATE TABLE emp ( name text, salary numeric, age integer, cubicle point ) ; # Creates a table name emp with 4 columns name, salary,
CREATE TABLE emp
name text,
salary numeric,
age integer,
cubicle point
; # Creates a table name emp with columns name, salary, age and cubicle
INSERT INTO emp VALUES BillJane; # Inserts values into each column
CREATE FUNCTION double salaryemp RETURNS numeric AS $$
SELECT $salary AS salary;
$$ LANGUAGE SQL;
SELECT name, doublesalaryemp AS dream
FROM emp
WHERE emp.cubicle ~ point ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
