hello friends i have a problem in oracle -sql.
i have a query please solve out it
i have a column first_name in employees table. i want to group my records according to first character of column first_name.
like if i have 26 name from (A-Z) in column first_name then there should be 26 group according to alphabates.
i tried following but its not working..
seklect employee_id, (substr(first_name,1,1)) as alpha from employees group by alpha;
name_which _starts_from employees
A 10
B 2
C 4
D 9
E 3
G 3
H 3
I 2
J 16
K 7
L 6
M 6
N 4
O 1
P 6
R 3
S 13
T 4
V 2
W 3