

{"id":56783,"date":"2019-05-24T16:23:37","date_gmt":"2019-05-24T10:53:37","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=56783"},"modified":"2021-12-04T13:01:43","modified_gmt":"2021-12-04T07:31:43","slug":"sql-data-profiling-in-sap-hana","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/sql-data-profiling-in-sap-hana\/","title":{"rendered":"SQL Data Profiling in SAP HANA &#8211; Grasp the Complete Process!"},"content":{"rendered":"<p>In this tutorial we will be talking about SQL data profiling in SAP HANA. We will learn the basics of data profiling and understand what is it? Later, we\u2019ll understand some more technical aspects of it. SQL data profiling is an important task in data preparation before loading the data into the data warehouse.<\/p>\n<h3>SAP HANA SQL Data Profiling<\/h3>\n<p><em>SQL data profiling is a process of refining the data and analyzing it to get a better understanding of it.<\/em> The main purpose behind data profiling is to <em>check data coming from different sources, identify problems in it <\/em>and<em> fix the issues to maintain data quality.<\/em><\/p>\n<p>Fixing the problems with data quality includes removing incorrect data, removing incomplete data, and prevent data quality issues. Thus, the data profiling helps to get a metrics from a data set so that the user can get a thorough understanding of the data, it\u2019s structure and quality.<\/p>\n<p>The data profiling task can only be done with the data sources from SQL Server and not with any other third-party data source. Data profiling task in SAP HANA can be done by using stored profiles from SQL Server Integration Services package.<\/p>\n<h4>1. Data Profiling Task Setup<\/h4>\n<p>To set up the data profiling task, you must execute the package having statistics profiling project (that computes profiles). You have to save the output of the execution in an XML format in a file or a package variable.<\/p>\n<p>You can view the statistics profiles and share the output through <strong>Statistics Profile Viewer<\/strong>. You can download the SPV software individually. It shows the statistics profile summary as well as a detailed profile.<\/p>\n<h4>2. Data Profiling Configuration<\/h4>\n<p>When a data profiling task is configured, you can use wildcard columns, i.e. using \u201c*\u201d sign in place of columns having unfamiliar data. Upon project execution, the data profiling task will identify the characteristics such as data type for the unfamiliar column.<\/p>\n<p>Another option for configuring a data profiling task is by selected short profiles that are <strong>Quick Profiles<\/strong>. You have to profile the quick profiles using all default profiles and settings of tables and views.<\/p>\n<p>The data profiling task ideally profiles eight different data profiles. Where five profiles evaluate individual columns, the other three profiles evaluate multiple columns and association between them.<\/p>\n<h4>3. Data Profiling Task Output<\/h4>\n<p>The output or results of data profiling tasks executed on selected number of data profiles are stored in an <strong>XML format<\/strong> and layout in the <strong>DataProfile.xsd schema.<\/strong><\/p>\n<h3>Benefits of Data Profiling in SAP HANA<\/h3>\n<p>Some key benefits of data profiling are:<\/p>\n<ul>\n<li>It enables the users to analyse data from different data sources.<\/li>\n<li>The users can understand the source data better and comprehend it thoroughly.<\/li>\n<li>You can use the information provided by data profiling in ETL process.<\/li>\n<li>You can refine the data by removing incorrect and incomplete information which enhances the data quality before loading it into data warehouse.<\/li>\n<li>Data profiling improves SAP HANA\u2019s capability to search data by adding keywords and descriptions.<\/li>\n<li>Another major advantage of data profiling from a project cost point of view is that you can detect issues in data at a very early stage of the project. This saves a lot of time and cost of the company.<\/li>\n<li>Also, the implementation cycle of major projects by the important insights that data profiling provides about the data structure and characteristics.<\/li>\n<\/ul>\n<h3>Data Profiling in SAP HANA Studio<\/h3>\n<p>Now that we know what is data profiling and understood its significance, we must learn how to use the profiling capabilities in SAP HANA Studio. In SAP HANA Studio, we can conduct profiling for data in tables or data in views.<\/p>\n<p>Follow the steps below to learn the process:<\/p>\n<p><strong>Step 1:<\/strong> Open <strong>SAP HANA Studio<\/strong> and login to your HANA system. Make sure you are working on the SAP HANA Modeler perspective.<\/p>\n<p>Then drill down to the specific table or view against which you wish to do data profiling and analysis. You can access data tables under the <strong>Catalog<\/strong> node.<\/p>\n<p><strong>Step 2:<\/strong> Right-click on the name of the view or table and select the option <strong>Open Data Preview<\/strong>.<\/p>\n<p>In the data preview window, you get three tabs; <strong>Raw Data, Distinct values<\/strong>, and <strong>Analysis tab<\/strong>.<\/p>\n<p><strong>RAW DATA<\/strong><\/p>\n<p>In the Raw Data tab, you can do several things, like add filters, add conditions for the filers, etc. For instance, we have a table containing customer information and we apply a filter on company name \u201cDataFlair\u201d.<\/p>\n<p>We can select from a range of predicates like <em>equal to (=), not equal to, lower (&lt;),<\/em> etc. The table will show filtered results, i.e. only the data related to DataFlair.<\/p>\n<p>You can save the resultant table and export the data to another system. Click on the <strong>save<\/strong> icon given at the top right to save the raw data table. You can save the table in three types of formats;<em> Delimited text files, HTML file, and XML file.<\/em><\/p>\n<p><strong>DISTINCT VALUES<\/strong><\/p>\n<p>The next tab is the Distinct Values tab where you can perform basic data profiling. On this window, you will get a list of available objects from your selected data source. You can select one object from the list, and it will show you all the details of it.<\/p>\n<p>For instance, you can select an object COUNTRYNAME from the<strong> Available Objects<\/strong> section. It will show all the distinct values present in that object. The data is also represented in a bar chart representation and a statistics box at the bottom.<\/p>\n<p>It also shows the <strong>count<\/strong> and <strong>distribution percentage<\/strong> for the occurrence of each value. This helps in detailed analysis of the data from the source.<\/p>\n<p>Also, you can select an item and view its<em> data type, native <\/em>dataytype<em>, <\/em>java<em> type, column display size, column precision, column scale<\/em> and <em>row count<\/em> in the statistics box.<\/p>\n<p>You can get each data column available in the list profiled instantly by clicking on its name.<\/p>\n<p><strong>ANALYSIS<\/strong><\/p>\n<p>Lastly, after data profiling, you can conduct visual analysis on the data from the <strong>Analysis<\/strong> tab. You can create visualizations by adding columns and measures into the label axis. Also, you can select from the different types of charts like bar<em> chart, horizontal bar chart, pie chart, line chart, heat chart, <\/em>etc.<\/p>\n<p>There are several other types of visualizations such as <em>tag cloud, box plot, radar, multiple radar chart, <\/em>etc.<\/p>\n<p>Also, you can view the data in four different forms i.e. as <em>charts, tables, grids<\/em>, and <em>HTML tables<\/em>.<\/p>\n<p>Some additional features include being able to add the visualizations into favorites using the <strong>star<\/strong> icon on the top right bar. And, adding filters during visual analysis.<\/p>\n<h3>Summary<\/h3>\n<p>This concludes our tutorial on SQL data profiling in SAP HANA. Here, we learned how to organize data to optimize the performance of SAP HANA.<\/p>\n<p>In case of any suggestions and queries, please drop your comments in the comment section below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial we will be talking about SQL data profiling in SAP HANA. We will learn the basics of data profiling and understand what is it? Later, we\u2019ll understand some more technical aspects&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":56798,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18002],"tags":[19845,19846,19844],"class_list":["post-56783","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sap-hana","tag-data-profiling-in-sap-hana-benefits","tag-data-profiling-in-sap-hana-studio","tag-sql-data-profiling-in-sap-hana"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SQL Data Profiling in SAP HANA - Grasp the Complete Process! - DataFlair<\/title>\n<meta name=\"description\" content=\"Data profiling task in SAP HANA can be done by using stored profiles from SQL Server Integration Services package. Learn data profiling in SAP HANA Studio.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/sql-data-profiling-in-sap-hana\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQL Data Profiling in SAP HANA - Grasp the Complete Process! - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Data profiling task in SAP HANA can be done by using stored profiles from SQL Server Integration Services package. Learn data profiling in SAP HANA Studio.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/sql-data-profiling-in-sap-hana\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-24T10:53:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-04T07:31:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/SQL-Data-Profiling-in-SAP-HANA.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"802\" \/>\n\t<meta property=\"og:image:height\" content=\"420\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SQL Data Profiling in SAP HANA - Grasp the Complete Process! - DataFlair","description":"Data profiling task in SAP HANA can be done by using stored profiles from SQL Server Integration Services package. Learn data profiling in SAP HANA Studio.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/sql-data-profiling-in-sap-hana\/","og_locale":"en_US","og_type":"article","og_title":"SQL Data Profiling in SAP HANA - Grasp the Complete Process! - DataFlair","og_description":"Data profiling task in SAP HANA can be done by using stored profiles from SQL Server Integration Services package. Learn data profiling in SAP HANA Studio.","og_url":"https:\/\/data-flair.training\/blogs\/sql-data-profiling-in-sap-hana\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2019-05-24T10:53:37+00:00","article_modified_time":"2021-12-04T07:31:43+00:00","og_image":[{"width":802,"height":420,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/SQL-Data-Profiling-in-SAP-HANA.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/sql-data-profiling-in-sap-hana\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/sql-data-profiling-in-sap-hana\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"SQL Data Profiling in SAP HANA &#8211; Grasp the Complete Process!","datePublished":"2019-05-24T10:53:37+00:00","dateModified":"2021-12-04T07:31:43+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/sql-data-profiling-in-sap-hana\/"},"wordCount":1145,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/sql-data-profiling-in-sap-hana\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/SQL-Data-Profiling-in-SAP-HANA.jpg","keywords":["Data Profiling in SAP HANA Benefits","Data Profiling in SAP HANA Studio","SQL Data Profiling in SAP HANA"],"articleSection":["SAP HANA Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/sql-data-profiling-in-sap-hana\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/sql-data-profiling-in-sap-hana\/","url":"https:\/\/data-flair.training\/blogs\/sql-data-profiling-in-sap-hana\/","name":"SQL Data Profiling in SAP HANA - Grasp the Complete Process! - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/sql-data-profiling-in-sap-hana\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/sql-data-profiling-in-sap-hana\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/SQL-Data-Profiling-in-SAP-HANA.jpg","datePublished":"2019-05-24T10:53:37+00:00","dateModified":"2021-12-04T07:31:43+00:00","description":"Data profiling task in SAP HANA can be done by using stored profiles from SQL Server Integration Services package. Learn data profiling in SAP HANA Studio.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/sql-data-profiling-in-sap-hana\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/sql-data-profiling-in-sap-hana\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/sql-data-profiling-in-sap-hana\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/SQL-Data-Profiling-in-SAP-HANA.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/05\/SQL-Data-Profiling-in-SAP-HANA.jpg","width":802,"height":420,"caption":"SQL Data Profiling in SAP HANA Topics"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/sql-data-profiling-in-sap-hana\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"SAP HANA Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/sap-hana\/"},{"@type":"ListItem","position":3,"name":"SQL Data Profiling in SAP HANA &#8211; Grasp the Complete Process!"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/56783","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=56783"}],"version-history":[{"count":8,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/56783\/revisions"}],"predecessor-version":[{"id":104890,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/56783\/revisions\/104890"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/56798"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=56783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=56783"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=56783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}