I'm having trouble passing a Unicode string to an SQL query via parameter. Initiate the connection and execute the query: conn = pymssql.connect(server='serverN
So I got an admin dashboard which are not linked by ID but by name. So developer.name is the core name, dateName and absentName are meant to j
I am using Hacker Rank to learn SQL sufficiently to pass coding interviews. I have noticed an error in the online compiler when I run it using DB2. In Oracle,
How do I filter records by date? I have the value 1639082700 which is equal to 2021-12-09 23:45:00. I need to find all data for 2021-12-09 which is equal to 163
I'd like to connect to a power BI database and query it using SQL. My first instinct was to use Python's pyodbc package, like so: conn = pyodbc.connect( 'DRIVER
keeps loading what should I do?
I'm trying to get a hash of a decimal value and convert it to an integer. But the query results in the following error: Numeric value 'b902cc4550838229a710bfec4
The table name is "OrderDetails" and columns are given below: | OrderDetailID | Order Value | | --- | -- | | 1 | 1000 | | 2 | 1200 | | 3 | 1500 | | 4 | 2000 | |
I have a MySql table called contracts. I try to filter contracts applicable between two dates 2022-05-03 and 2022-05-07. MySQL query must be return id numbers:
In joining two tables, I would like to select all columns except 2 of them from a large table with many columns on pyspark sql on databricks. My pyspark sql: %
I have this query below and when I include the last join, I keep getting duplicate applicationid is the query result select distinct a.id, a.applicatio
Recently I started to work on BigQuery and there's something that makes me still confused. What's the alternative for this query on Big Query? select a.abc, c.x
I'm using psql to check if a table exists in a given database. The command below works fine to return t for True or f for False: psql -U $user -d $db -t -c "SEL
I am attempting to join two tables to create a visualization that shows the relationship between weight, BMI, and total steps using the following code: SELECT
In First Image Only Select Statement is run , it works fine . but In Second Image when we added CTE and executed the query , it shows error. Can you please hel
So I'm asked to do this query for a college project: SELECT l.city AS name, AVG((pr.ap_price::double precision * 7 - pr.weekly::doub
Suppose I have column with strings with digits and non-digits. For example 1a2b~#3c. How can I find sum of the digits in these strings. I can't use CTE and my q
Preface: this isn't homework - I am learning SQL. I was given the problem to make a multiplication chart. Here's my solution: create table x (x int) create tabl
as you can see in my picture i have got an eer-model with 6 tables. Now I want from the table "catalog" the "ItemID", from "Users" the "UserID" and from "Roles
Select firstname as name, time as asof, salary as bal into temp employee from people.person p where p.id =1; Need to create a temporary table employee by inser