Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Qkv_123
New Member

Fabric LakeHouse SQL Query

Hi Team,

 

I have loaded XML file and SQL query to check the date availability if date is missing in the sequence then add and fill the value based on latest Known value (column).

Table : XML 
columns : Rate, Date, Curr code
Task: if table missing sequence date then add and fill the rate from latest kown date.

 

Sceen1.png

 

Kindly advise me.

 

Thanks,

Qkv_123

1 ACCEPTED SOLUTION

@v-nikhilan-msft If I remember correctly, we can't write to a LH table from the LH SQL endpoint. I think we can only create views, functions, and stored procedures in the SQL endpoint. But we can write to a LH table using PySpark in a notebook.

 

Or am I mistaken?

View solution in original post

8 REPLIES 8
v-nikhilan-msft
Community Support
Community Support

Hi @Qkv_123 

Thanks for using Fabric Community.

Can you please explain your ask further? What should be the expected output? Please provide these details, so that I can help you better.

Thanks.

Hi @v-nikhilan-msft 

I have table in that table Date column missing sequence date, I have to fill the date

I the above table missing 16th Date
So I need to add in SQL query and fill the value 

Hi @Qkv_123 

I understand about the date column. But what about the other columns? Should they be null for the new entry?

Yes, null value in the date column should be filled with latest date

@v-nikhilan-msft If I remember correctly, we can't write to a LH table from the LH SQL endpoint. I think we can only create views, functions, and stored procedures in the SQL endpoint. But we can write to a LH table using PySpark in a notebook.

 

Or am I mistaken?

You are right @Element115 .
As mentioned by @Element115  DML statements are not yet supported in Lakehouse SQL endpoint. You can write into a Lakehouse table using Notebooks.

Hope this helps. Please let me know if you have any other questions.

Hi @Qkv_123 ,
We haven’t heard from you on the last response and was just checking back to see if your query got resolved. Otherwise, will respond back with the more details and we will try to help.
Thanks

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.