Skip to content

all combination of two symbol with nth length

I need a solution using only oracle sql query Input two static symbol ‘A’ and ‘B’ n – number Output if N=3 must give all combination using this symbols AAA AAB ABA BAA … Output if N=4 must give all combination using this symbols AAAA AAAB AABA ABAA … Answer Old style …

Append data from one table to another table

I have a Destination table with 3 columns, ID, Name, Source. I have 10+ Source tables, each with multiple columns, but I only require the ID, Name, and the table name itself to be appended into Destination table. Do note the naming of the column names are different in each table, but the required ID and Name …

How do I write my SQL Code in MS Access SQL?

Table Name: Records ID Date Time Status BoxType Material Rack EmployeeNr Transaction 1 25-05-2020 13:11:12 70 36757 4 4 188 2 2 25-05-2020 13:12:40 71 31178 2 5 188 2 3 25-05-2020 13:13:31 71 31178 2 5 188 102 4 27-05-2020 13:14:14 71 38444 3 2 181 3 5 27-05-2020 13:14:15 71 38444 3 2 181 3 6 27-05-2020 13:14…

Joining two JSON objects in Snowflake

What’s up, I have two JSON objects, generated from the same Snowflake table (Table 1 here). I want to join/merge them on their “_id” field, in order to produce this nested json kind of structure. How can I do this? I tried aliasing them and using SELECT * from dc JOIN rs ON rs.:_id = dc:_id …