Skip to content

Tag: sql

Transform and group row data into columns

I’m looking for a way to combine different rows into a single row with columns. Let’s take this example table: Desired output: Please note that Data centers are not necessarily these three, they can be N different data centers that I will not know in advance. Answer With a known set of sourceDataC…

Access UPDATE query using Regular Expressions

I have created the following Regular expression in javascript to test if the string works. which works perfectly fine. However no i have tried to convert this SQL (using the ms access sample database) i have tried the following which hasn’t worked as i get an error. which didn’t work. I think I&#8…

SQL INSERT INTO from multiple tables

this is my table 1: this is my table 2: and now I want a table 3 which shows me all information: I tried first to insert into table 3 only the values from table 1 and then I inserted into table 3 the values from table 2 with an inner join where Id = Id is. But all I

Use string contains function in oracle SQL query

I’m using an Oracle database and I want to know how can I find rows in a varchar type column where the values of that column has a string which contains some character. I’m trying something like this (that’s a simple example of what I want), but it doesn’t work: I also want to know if …

How to set a connection from eclipse to SQLServer?

I am trying to connect to SQL Server from eclipse and i get the following error. I mention that i verified and the SQL Server Browser is running on the host and i have no firewall active. This is the code i’ve written: Answer First thing before DB programming. Test each “step”. Before execut…