Related
CompleteNeewb background I have three tables: MetaMachine(MM) MetaShift (MS Machine Data (MD) MM contains all relevant static data about a specific machine, including data on the shifts of the operating workers. MS contains different shifts, sub-shifts, StartT
CompleteNeewb background I have three tables: MetaMachine(MM) MetaShift (MS Machine Data (MD) MM contains all relevant static data about a specific machine, including data on the shifts of the operating workers. MS contains different shifts, sub-shifts, StartT
CompleteNeewb background I have three tables: MetaMachine(MM) MetaShift (MS Machine Data (MD) MM contains all relevant static data about a specific machine, including data on the shifts of the operating workers. MS contains different shifts, sub-shifts, StartT
CompleteNeewb background I have three tables: MetaMachine(MM) MetaShift (MS Machine Data (MD) MM contains all relevant static data about a specific machine, including data on the shifts of the operating workers. MS contains different shifts, sub-shifts, StartT
CompleteNeewb background I have three tables: MetaMachine(MM) MetaShift (MS Machine Data (MD) MM contains all relevant static data about a specific machine, including data on the shifts of the operating workers. MS contains different shifts, sub-shifts, StartT
Bella Table 1 id class_id class
1
2
3
Table 2 sameid class_id
2 20
3 30
1 40
table 3 class_id desc
30 forest
40 urban
20 water
I want to insert Table3.class_id and Table3.desc into Table1.class_id
Balgav Cantum I have 3 tables: Table Maths: ID Marks1
(1 , 80)
Table English: ID Marks2
(2 , 85)
Table Student: ID Name
(1 , Raj)
(2 , Sam)
(3 , John)
I need an SQL query (Oracle) to get the following output: ID Name Marks1 Marks2
(1 ,
Balgav Cantum I have 3 tables: Table Maths: ID Marks1
(1 , 80)
Table English: ID Marks2
(2 , 85)
Table Student: ID Name
(1 , Raj)
(2 , Sam)
(3 , John)
I need an SQL query (Oracle) to get the following output: ID Name Marks1 Marks2
(1 ,
Josh Poole Let me illustrate the problem with the following example: (Long but easy to understand) This is what my MySQL database looks like: Table Name:general_info Movie_ID movie_title
1 Iron Man
2 Superman
3 Batman
Table Na
Josh Poole Let me illustrate the problem with the following example: (Long but easy to understand) This is what my MySQL database looks like: Table Name:general_info Movie_ID movie_title
1 Iron Man
2 Superman
3 Batman
Table Na
Josh Poole Let me illustrate the problem with the following example: (Long but easy to understand) This is what my MySQL database looks like: Table Name:general_info Movie_ID movie_title
1 Iron Man
2 Superman
3 Batman
Table Na
Mihek Mark I have the following table in a database called racing : Race race_id Meeting_id off-duty time title Meeting Meeting_id Meeting_date result result_id race_id Location horse I've been given a query task that will get all today's race titles + non-rac
Michael Mark I have the following table in a database called racing : Race race_id Meeting_id off-duty time title Meeting Meeting_id Meeting_date result result_id race_id Location horse I've been given a task to execute a query that will get all today's race t
2020db9 I have 3 tables, let's call them for this exercise: Products, Price, and Discount. I'm trying to join the Products and Price tables only if the ProductID is found in Discount.ProductID (ProductID column in the discount table). product: Product number s
Josh Poole Let me illustrate the problem with the following example: (Long but easy to understand) This is what my MySQL database looks like: Table Name:general_info Movie_ID movie_title
1 Iron Man
2 Superman
3 Batman
Table Na
Josh Poole Let me illustrate the problem with the following example: (Long but easy to understand) This is what my MySQL database looks like: Table Name:general_info Movie_ID movie_title
1 Iron Man
2 Superman
3 Batman
Table Na
Josh Poole Let me illustrate the problem with the following example: (Long but easy to understand) This is what my MySQL database looks like: Table Name:general_info Movie_ID movie_title
1 Iron Man
2 Superman
3 Batman
Table Na
Josh Poole Let me illustrate the problem with the following example: (Long but easy to understand) This is what my MySQL database looks like: Table Name:general_info Movie_ID movie_title
1 Iron Man
2 Superman
3 Batman
Table Na
Michael Mark I have the following table in a database called racing : Race race_id Meeting_id off-duty time title Meeting Meeting_id Meeting_date result result_id race_id Location horse I've been given a task to execute a query that will get all today's race t
User 11727742 The company database has information about table ID, ORDER_DATE, STATUS, CUSTOMER_ID, and the column name table name is ORDERS. 1. Need to extract the info which is not delivered.
2. If there is more than 5 orders select one with lowest order id
Leonia table ip2countryThere are 250,000 rows (ip ranges inserted in ascending order by from_ip) sessionsThere are 50 lines Obvious and slow (2.687 seconds): SELECT
s.*,
ip.country
FROM
sessions s
JOIN ip2country ip ON s.ip_addr BETWEEN ip.from_ip AND
Leonia table ip2countryThere are 250,000 rows (ip ranges inserted in ascending order by from_ip) sessionsThere are 50 lines Obvious and slow (2.687 seconds): SELECT
s.*,
ip.country
FROM
sessions s
JOIN ip2country ip ON s.ip_addr BETWEEN ip.from_ip AND
Jeremy I can join two tables on one value, but how can I join two tables with different values using a third table that contains two values? Such as: Table A
CustomerID
info
info
Table B
CustomerName
info
info
Table C
CustomerID
CustomerName
Mr Mahajan I'm trying to solve the problem https://sqlzoo.net/wiki/Self_join , self-join question 10 , specifically: Find a route involving two buses that can travel from Craiglockhart to Lochend. Displays the bus number and company of the first bus, the name
Mr Mahajan I'm trying to solve the problem https://sqlzoo.net/wiki/Self_join , self-join question 10 , specifically: Find a route involving two buses that can travel from Craiglockhart to Lochend. Displays the bus number and company of the first bus, the name
vim I have two tables, one is sensor_info and the other is bays_info. this is the table id Sensor_Name stn_id value Station_id
1 Sensor1 0 4.4 1
2 Sensor2 0 2.1 1
3 Sensor3 0 3.2 1
4 Se
lottery Suppose I have three tables: One of the customer information with a unique ID ( CUST_ID) One of the customer's pants buys 3 columns ( CUST_ID, PANT_TYPE, PANT_DATE) One of the customer's shirts purchased 3 columns ( CUST_ID, SHIRT_TYPE, SHIRT_DATE) Als
Rebecca I have a state table with the following rows: pk Status
1 Employed
2 Unemployed
3 Retired
There is also a table called User where the details are stored as pk_User F_Status M_Status
1 1 2
2 2
Yaniv Mixed two tables: project | item_id | user_id | data |
----------------------------
| 10 | 100 | A |
| 11 | 100 | C |
| 12 | 101 | E |
| 13 | 101 | G |
item_detail | id | item_id | ignore | detail1 | detai