In: Computer Science
Code
/*Drop all the Table */
drop table Employees;
/*Create new table */
Create table Employees(EmployeeID number Primary Key,First_Name
varchar(20),Last_Name varchar(20),hirde_date date);
desc Employees;
insert into Employees
values(777,'ABC','Rajgor','01-jan-2016');
Select * from Employees;
output:
Query:
/*in this query we have
to use concate for concating string with each other */
Select concat(First_Name,concat(' (Employee ID
-',concat(EmployeeID,concat(')',concat(' was hired on
',TO_CHAR(hirde_date,'DD-MONTH-YYYY'))))))"Outupt" from
Employees;
if you still have any Problem regarding this question please comment and if you like my code please appreciate me by thumbs up thank you.........