Jump to content

Union Statement Not Working In Mysql


ryanjsells

Recommended Posts

I am trying to use the Union statement in a sql statement in MySQL and it's not working. When using the Union statement it is NOT supposed to return duplicate entries from the 2 tables, but for some reason mine is. Is there a setting I am missing?

 

SELECT CUST_NUM, CUST_LNAME, CUST_FNAME

FROM customer

UNION

SELECT CUST_NUM, CUST_LNAME, CUST_FNAME

FROM customer_2;

Link to comment
https://forums.phpfreaks.com/topic/270858-union-statement-not-working-in-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.