Skip to content

Tag: sql

Use of Regex in SQL query

create table numbers (number varchar(10)); insert into numbers (number) values (‘9999999999’), (‘5532003644’), (‘1212121205’), (‘1103220311’), …

NULL fields using PIVOT

I request your collaboration because pivot on a table and separating the records by null, but still leave the fields at 0 with NVL Table product | value ———-+——- Shirts | 1200 Caps …