Skip to main content

Question list filters

Filter by
Sorted by
Tagged with
Score of -4
2 answers
196 views

I need to join a table, that might not exist. Is it possible to specify a condition in the query, so that the join is only performed if the table actually exists? My idea would be that the ...
Score of -4
2 answers
151 views

I am trying to join two tables in BigQuery. However, my code is generating an error that one of the table names is not recognized and I don't know why. Can you explain why this is happening, and fix ...
Score of -3
0 answers
76 views

I'm trying to modify an existing report using Oracle SQL to add a "total" to the values in column NET_AMOUNT based on the location. The current output looks like: ref_no year location make ...
Score of 0
0 answers
88 views

I'm on OceanBase CE 4.3.4 (5.7.25-OceanBase_CE-v4.3.4.0), MySQL mode, single-node. Same session: DROP TABLE IF EXISTS tt_column_row; CREATE TABLE tt_column_row ( c1 int PRIMARY KEY, c2 int, c3 ...
Score of 3
2 answers
138 views

I'm writing a query in Oracle SQL. I'm using a count - group by query, for example: select column_a, count(*) from table_1 group by column_a COLUMN_A COUNT(*) value_1 5 value_2 6 value_3 ...
Score of 0
2 answers
124 views

SQLite/Drizzle: JSON column vs. normalized child tables for question data? I’m using SQLite with Drizzle ORM. My questions table is currently normalized, with separate child tables for each question ...
Score of 2
1 answer
213 views

I have completed my SQL code to exclude weekends, but how can I incorporate my dbo.Holidays table into my code to exclude those dates from being added to the 3 days? In below example, for ContactID = ...
Score of 0
1 answer
77 views

The screenshot shown below shows the tables along with the existing relations between them, as well as the new connections or relations that I want to create: I want to add two one-to-many ...
Score of 7
4 answers
326 views

I am working with a time series dataset of crime events. I need to find a specific sequence of consecutive events (ordered by time) based on their crime type. My table schema is: CRIMES (TS LONG, TYPE ...
Score of 0
1 answer
104 views

I have a table that stores records for multiple companies. The table uses a composite primary key: PRIMARY KEY (ruc, codigo) Where: ruc identifies the company codigo identifies a specific record ...
Score of -5
0 answers
103 views

I have two tables as shown below. Table sb_bans has authid which I can use to match with authid in table sb_named. Table sb_named has name which I want to take the value from here and put it in the ...
Score of 1
2 answers
102 views

I have a repeatable planning-time performance issue caused by the interaction between PlanCache and plan-time partition pruning for prepared statements on partitioned tables in PolarDB-PG. My server ...
Score of 0
0 answers
141 views

I have an SQL query that left joins tableB to tableA as shown below: CN.Open() 'The view vTimeTest relates the Time to JobMaster and Employees grouped by JobMaster.Name, Time.QB, Employees.ID and Time....
Score of 1
2 answers
170 views

I need to filter rows for security in my SQL queries. Query filters look the best options for this. Let's say I have the following model classes: public class Brand { public int Id { get; set; } ...
Score of 0
0 answers
117 views

I have defined two object types as follows create or replace type co.mytype_1__ as object (c1 varchar2 (3885)) / create or replace type co.mytype1_ as object (c1 varchar2 (3884)) / And run following ...

15 30 50 per page
1
2 3 4 5
44905