Question: Create three scalar functions in SQL. They have to be declared by using CREATE FUNCTION. 1. The first function should take an integer and convert
Create three scalar functions in SQL. They have to be declared by using CREATE FUNCTION.
1. The first function should take an integer and convert it into a hexadecimal number. It should also take a hexadecimal number and convert it to an integer.
2. The second function should take an integer and convert it into a octal number. It should also take a octal and convert it to an integer.
3. The third function should take an integer and convert it into a binary number. It should also take a binary number and convert it to an integer.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
