Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
79 views

I have completely working code, which returns the desired result. var query = @$"SELECT boats.*, gallery.*, textblock.*, engine.*, generator.*, media.* FROM {...
Rajiv Ranjan's user avatar
0 votes
1 answer
54 views

This is an IIT question I am trying to solve this problem. And I can individually do (i)P LEFT JOIN Q ON P.A = Q.A AND P.B = Q.B and (ii) Q RIGHT JOIN R ON Q.A = R.A But to JOIN the results of these ...
BaskarA's user avatar
  • 75
1 vote
3 answers
218 views

I have 15 dataframes, that I have merged together. Here I'm loading my files. data_files <- list.files() # Identify file names for(i in 1:length(data_files)) { ...
Mathias Lauber's user avatar
0 votes
2 answers
227 views

Below is the expected table structure: Users -> user_id (PK) RoleA -> role_a_id (PK) RoleB -> role_b_id (PK) User_Roles -> user_id (FK), role_a_id (FK), role_a_id (FK) Below are the ...
Gaurav Verma's user avatar
0 votes
1 answer
2k views

I want to join three tables respectively from the below SQLFiddle http://sqlfiddle.com/#!9/5dd558/4 Now I want to create one table from this table based on date and Brand. Like, I want data in this ...
Rohit Chauhan's user avatar
0 votes
2 answers
131 views

I am writing a SQL with Oracle Client 12 driver. I have two tables simplified as appended, and I want to get a table with following logic. The "B.TIME_B <= A0.TIME_A" seems created massive joining ...
ju.'s user avatar
  • 1,096
0 votes
1 answer
3k views

I have a table with 2 foreign keys. I need to create a query that aggregates results that use both foreign keys. i.e. Table A "b_id" is a foreign key to Table B "id", Table A "c_id" is a foreign key ...
r.l.'s user avatar
  • 41
-1 votes
1 answer
175 views

I'm needing rows from the Employee table that have null values in OwnerID field and GMID field. SELECT b.FirstName + space(1) + b.LastName AS OwnerName, c.FirstName + space(1) + c....
Chris Catignani's user avatar
0 votes
1 answer
2k views

I have the following tables: Apps id name 1 a 2 b 3 c Parts id name app_id 1 x 1 2 x 2 3 y 2 4 z 1 5 z 2 6 z 3 Settings id name ...
Tjab's user avatar
  • 403
0 votes
0 answers
453 views

There are 3 tables that I need to Join with different filters. EG: Select 'First' as Header, * from A join B on A.ID=B.ID where A.Type=1 and B.Startdate>Getdate() Union Select 'Second' as ...
JayaPrakash's user avatar
0 votes
1 answer
2k views

I have to use LEFT JOIN on 3 tables: UNITS, ROOMS_CHECK_IN and COMMENTS. Basically I want to show UNITS and for each unit count of rooms check in and count of comment. But I am getting same 4 digit ...
maddie's user avatar
  • 39
0 votes
1 answer
2k views

ERROR [HY000] ERROR: Update canceled: attempt to update a target row with values from multiple join rows Is there a way to avoid this error and update each row that contains E, despite having ...
JustBeingHelpful's user avatar