cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Using FOR XML RAW in Spark SQL

AzaharNadaf
New Contributor III

How can I convert below SQL server query to spark SQL 

Query - SELECT distinct HashBytes('md5', (SELECT a, b, c for xml raw)) as xyzzy  FROM table name

Need help here community 🙂

1 ACCEPTED SOLUTION

Accepted Solutions

AzaharNadaf
New Contributor III

The Idea here was to create a unique id based upon the number of columns, 

I have used dense Rank to resolve this issue

Thanks

View solution in original post

2 REPLIES 2

AzaharNadaf
New Contributor III

Also need to find out here how to use multiple columns in md5 function as above

AzaharNadaf
New Contributor III

The Idea here was to create a unique id based upon the number of columns, 

I have used dense Rank to resolve this issue

Thanks

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group