Top "Multiple-tables" questions

This tag will generally be used by those unfamiliar with SQL, asking basic questions about joins.

SELECT * FROM multiple tables. MySQL

SELECT name, price, photo FROM drinks, drinks_photos WHERE drinks.id = drinks_id yeilds 5 rows (5 arrays), photo is the only …

mysql multiple-tables
How to perform Join between multiple tables in LINQ lambda

I am trying to perform a Join between multiple tables in LINQ. I have the following classes: Product {Id, ProdName, …

c# linq join lambda multiple-tables
Multiple left joins on multiple tables in one query

I've got one master table, which has items stored in multiple levels, parents and childs, and there is a second …

sql postgresql join left-join multiple-tables
Select from one table matching criteria in another?

I'd really appreciate some help with an SQL query across tables. I realise this sort of thing is asked constantly, …

sql multiple-tables
Drop multiple tables in one shot in mysql

How to drop multiple tables from one single database at one command. something like, > use test; > drop table …

mysql sql multiple-tables drop-table
sql - insert into multiple tables in one query

assuming that i have two tables, names and phones and i want to insert data from some input to the …

sql mysql multiple-tables insert-into
Multiple Table Joins with WHERE clause

I'm using Mysql and I'm having a difficult time trying to get the results from a SELECT query. I am …

mysql database where multiple-tables
How to update column in a table from another table based on condition?

I am having two tables student table it contains (Student_id,school_code,name,year,...) school table it contains (school_…

sql-server subquery sql-update multiple-tables
How to do Outer Join on >2 Tables (Oracle)

I'm not sure how to describe my table structure, so hope this makes sense... I have 3 tables in hierarchical relationship …

oracle outer-join multiple-tables
Select the minimum value for each row join by another table

I have the following table: Table1 Table2 CardNo ID Record Date ID Name Dept 1 101 8.00 11/7/2013 101 Danny Green 2 101 13.00 11/7/2013 102 Tanya Red 3 101 15.00 11/7/2013 103 Susan Blue 4 102 11.00 11/7/2013 104 …

sql join group-by multiple-tables minimum