Skip to content

Tag: sql

Inner join with Count, multiple tables

I’m having an issue with MS Access to get correct counts on multiple tables. I’m not at all an expert in SQL requests. I have a set of tables which is structured as follow : Table1 : UID, Name, other informations Table2 : UID, FK_UID_Table1, Name, other informations Table3 : UID, FK_UID_Table2, Na…

How does spark SQL access databases

Suppose you access a SQL database with spark SQL. With RDD spark partitions the data into many different parts that all together make the data set. My question is how does Spark SQL manages this access from the N nodes to the database. I can see several possibilities: Each nodes of the RDD access to the datab…

SQL: Delete XML node in an UPDATE statement

I keep getting this error: In search of a solution to this answer I came across this SO article about updating in a SELECT statement: How do I UPDATE from a SELECT in SQL Server? Example… Note: the field CustomProperties is nvarchar(max) which I convert to xml. I also tried a cursor (nasty things), but …

How to break sequence

i have a table named sequence with a single column val and table looks like val —– 1 2 3 5 8 9 10 i need to identify the range of numbers if there is a break in sequence and output like …