Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
73 views

Why am I getting wrong inserts in some chained insert triggers in SQLite (Cloudflare D1)? Table arrivals has an insert trigger that inserts rows via INSERT OR IGNORE into table places. Table places ...
Mitya's user avatar
  • 34.8k
-3 votes
5 answers
122 views

There is a table called users that looks like this: mall_id name position 1 Max boss 1 Dan employee 1 Mike employee 2 Ben boss 3 Susan boss 3 Larry employee 3 Pat employee Each shopping center (mall) ...
WeekendCoder's user avatar
  • 1,079
Advice
0 votes
2 replies
33 views

I am currently designing the database for a medical-related software project using GBase 8s. After generating the schema design with the help of an AI tool, the normalized design resulted in around ...
Cong Li's user avatar
4 votes
2 answers
101 views

I have a table with a bunch of data that can be simplified down into a non-unique optional names and indexes: SELECT * FROM unnest(ARRAY[ NULL, NULL, 'foo', 'foo', 'foo', NULL, NULL, NULL, ...
GammaGames's user avatar
  • 2,034
0 votes
2 answers
99 views

I am trying to use a subquery to compile the data below into 4 temporary fake but referenceable columns. events_key person_name person_key event_percentile event_level 1 A 1 50 composite 2 A 1 75 ...
Rachel Helm's user avatar
0 votes
0 answers
49 views

I’m experimenting with GridDB and testing some SQL queries on a time-series dataset. I noticed that queries filtering by timestamp range become slow as the dataset grows. Here is a simplified example. ...
Imtiaz Ghous's user avatar
Best practices
0 votes
5 replies
69 views

I need assistance understanding prompts for SQL to get better at it. I know SELECT, WHERE, and FROM are the basics. There are more advanced ways to writing a prompt for SQL to get better data ...
Cameron Hamilton's user avatar
1 vote
3 answers
124 views

Character string list contains fixed values 'I','Q','C','K','X','T','S','NE' known in query creation time. This list should be returned in random order. Tried select unnest( ARRAY['I','Q','C','K','X'...
Andrus's user avatar
  • 28.3k
0 votes
2 answers
126 views

I'm trying to write a query to find "matching" data from two different fields within the same table. For example, a table has a client column, amount charged column and location column. I ...
spotty laste's user avatar
Advice
1 vote
15 replies
155 views

I am passionate about writing a personality/psychology/dating website. I know how to use variables a bit, but I don't know which is the best way to store them. There are cookies, sessionstorage and ...
CleanProgramming's user avatar
Advice
0 votes
6 replies
120 views

I have a task required where we are pulling in data originally from another data source and we have the data imported to SQL Server as a flat table called MigratedCustomer. We need to insert the data ...
MH2486's user avatar
  • 1
0 votes
2 answers
117 views

I have 2 tables Family: family_Name | family_id and Types: family_fk | type Request #1: I want to get all family_ids when it has only one type = 'multiple' Request #2: I want to get all family_ids ...
MAMMIA's user avatar
  • 3,294
-5 votes
0 answers
89 views

I have this data that shows state, number of fatalities in accident, and state population. enter image description here What is wrong with this line of SQL, the output is wrong. enter image ...
halemley's user avatar
-2 votes
0 answers
168 views

I am trying to understand why my query is not working correctly. I am currently experimenting with SQL queries while working with GridDB. I am trying to retrieve specific data from a table, but my ...
wali murtaza's user avatar
Best practices
0 votes
10 replies
84 views

I have implemented MERGE statement to capture INSERT and UPDATE records from staging table to Target table. My ask is when I tried to insert already existing records in staging table its simply ...
srikanth b's user avatar

15 30 50 per page
1
2 3 4 5
44952