Im working on a table that has a column in JSON format and I want to extact the coordinate value from that column. So I run the following code: And I get the following error after 5 mins of running Msg 13609, Level 16, State 1, Line 27 Json text is not properly formatted. Unexpected character ‘”&#…
SQL join 2 times same table
I have a flight table like CREATE TABLE flight (id int, name varchar(25), origin int, destination int); INSERT INTO flight (id, name, origin, destination) VALUES (1, ‘Alpha’, 1,2); INSERT INTO flight (…
SQL How to select from multiple values in joined table
I have two tables A and B joined with a common id field. Table A has single entries per id. Table B has multiple entries per id. Table B has two columns “name” and “customertype”. …
Select from many to many relations table
Given these tables: I would like to query scenarios with all the connected suites. results: **scenario** **suites** loginScenario loginSignup, endToEnd, smoke addToCart …
Insert values into Database with Java
Hello I have a Jtable and a JFormattedTextField where I input the values to insert into the database. I used PreparedStatement but the output gives an error [SQL0418] Utilização de marcador de …
Datetime changing on JSON response
I am selecting start and end date of a project from project_stage named table. Here is the table elements Here datatype is DATETIME Here is the code Result on JSON response Here date time is changing its not the actual datetime which is in the table,why the date is changing on result.Here is the expected outp…
How to escape several with in the query?
I need to refactor my query, but I have no idea, how to do this. I can see several duplicates of using the same logic, but I continue to repeat this manner of querying from query to query, and I feel, that this kind of querying becomes my main frame of thinking of SQL and I don’t want this. Could
SQL – to query record that created after latest specific time
I currently have a database which have the created as a timestamp of each record that it was created. I try to query all the data that was created after the latest midday time (12:00). So, let’s said …
How can I convert date format from YYYY-MM-DD to YYYY-MM in sql
I have a specific date in the format of YYYY-MM-DD but want to convert it to YYYY-MM format in a table. I want this change to apply to the full table. can anyone help me out, please? Thank you.
How do you generate a random value from another table’s column in SQL?
So far I’ve been able to get this query that delivers these results: But the problem I still have is that these results are meant to be random for EVERY ROW instead of the value is constant for all …