Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Manual Data profiling queries - response (3) by Raja_KT

$
0
0

Hi Nagesh,

I used Teradata Profiler and Ab Initio Data profiler before. However, manual is a real pain.

Few years back, I used manual .

Believe me it is a pain. I used unix script too sometimes.

You have so many.
There are so many functions: like, uppercase, lowercase, substr, trim etc.

SELECT COUNT(*) AS First_cap FROM table WHERE INITCAP(column) = column;

SELECT MAX(column) AS max_value FROM table;
SELECT MIN(column) AS min_positive_value FROM table WHERE column > 0;
SELECT MIN(column) AS lowest_negative_value FROM table WHERE column < 0;
SELECT COUNT(*) AS num_values FROM table WHERE column IS NOT NULL;
SELECT COUNT(*) AS num_nulls FROM table WHERE column IS NULL;

others like SELECT regexp_replace.

Cheers,
Raja


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>