Skip to main content
4 votes
1 answer
99 views

I'm trying to figure out an efficient way to do this, preferably as a single MySQL query. I have two tables that look approximately like this (I simplified it as best I could): table1 CREATE TABLE `...
Landonious's user avatar
3 votes
1 answer
182 views

I am building a SQL interceptor in Java to implement multi-tenant isolation. My goal is to parse incoming SQL statements using JSqlParser and inject a mandatory predicate tenant_id = '123' into every ...
Vikas Choudhary's user avatar
1 vote
2 answers
12 views

I am doing a SQL course and I can't figure out the solution to this question. In a Car database, there is a Sale table with columns: SaleID, CarID, CustomerID, LocationID, SalesRepID, SaleAmount, ...
Ch1llyB1lly's user avatar
Advice
0 votes
4 replies
93 views

I'm grokking data analytics as part of the Google DA course, and I realize I'm going to need a bit more about databases than the course teaches. Any ideas for a great introductory database book? I'm ...
Chris Leach's user avatar
0 votes
1 answer
100 views

I'm a MySQL DBA moving to PolarDB IMCI. I know we can force columnstore queries like: SELECT /*+ SET_VAR(cost_threshold_for_imci=0) */ COUNT(*) FROM t1 WHERE a > 1; or disable them: SELECT /*+ ...
user32001271's user avatar
Advice
0 votes
2 replies
120 views

At my company, we're starting our data department. Currently, all the information is managed in Google Drive, and knowing this isn't ideal, I want to begin migrating the data to a database. Since we ...
KLM's user avatar
  • 49
0 votes
1 answer
76 views

I just started a new position in a company, and they're asking me to migrate their old SQL queries to DBT, the problem is that I'm trying to do a DELETE+INSERT on a range of dates without a unique_key ...
JUAN CAMILO VARGAS's user avatar
-1 votes
0 answers
82 views

I have 4 tables in a MS Access database, namely Table1 (values - A, B, C, D) Table2 (values - P, Q, R, S) Flags (values - Y, N) Table3 has two columns, TYPE and DESCRIPTION The TYPE column is a ...
Vijayarajan's user avatar