Top "Multiple-tables" questions

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

MySQL WHERE <multiple-column> IN <subquery>

Is there a way (without JOIN) to use the WHERE clause on 2 columns (OR) IN a subquery? Currently, I'm doing …

mysql where-clause multiple-tables in-subquery
mySQL Left Join on multiple tables with conditions

I have a problem. I have 4 tables: Invoice_Payment, Invoice, Client, and Calendar Basically, I have the below query, which …

mysql left-join multiple-tables
MySQL - Select last record from second table matching with first table

I have two tables customers and orders, below is the structure. Table - customers id customer_name Table - orders …

mysql join multiple-tables
MySQL: how to drop multiple tables using single query?

I want to drop multiple tables with ease without actually listing the table names in the drop query and the …

mysql sql sql-delete multiple-tables
Foreign key with multiple columns from different tables

Let's take a stupid example : I have many domestic animals, each one with a NAME as an id and a …

sql database database-design foreign-keys multiple-tables
MySQL - SHOW COLUMNS from Multiple Tables

I am trying to get the column names from 2 tables. I tried a query like: (SHOW COLUMNS FROM users) UNION (…

php mysql multiple-tables describe
Selecting distinct values from two tables

I have two rather large databases (+1 million rows each). Both tables have the same structure. How can I check if …

mysql count distinct multiple-tables
Using "imhist" function in Matlab to plot multiple histograms on the same figure

I'm new to Matlab and am trying to do a bit of image processing. I have two color images that …

matlab image-processing histogram multiple-tables figure
Cakephp Auth with multiple "Users" tables

I would like to know how to deal with only ONE authentification process and "users" in multiple tables. I have 4 …

cakephp authentication cakephp-1.3 multiple-tables
MySQL JOIN 3 tables using multiple columns/keys

Complete newbie to mySQL. So any help will be appreciated. I have 3 tables -- carts, users, actions. carts: +------------+-------------+…

mysql sql join key multiple-tables