Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on 

BigQuery SQL get rid of duplicates

Hi


In BigQuery SQL I am getting duplicates in Core_LB_CustomerNumber. THe image below shows this. How di I get around this?


SELECT Distinct CORE_LB_CustomerNumber,
*  
FROM `emea-sales-gbl-emea-pd.sellout_bqdset_eu_pd.MAP_CUSTOMER_CLUSTER` LEFT OUTER JOIN `emea-sales-gbl-emea-pd.d_customer_eu_pd.t_customer_master` ON  `emea-sales-gbl-emea-pd.d_customer_eu_pd.t_customer_master`.CORE_LB_CustomerNumber = Cast(`emea-sales-gbl-emea-pd.sellout_bqdset_eu_pd.MAP_CUSTOMER_CLUSTER`.CUSTOMER_CODE as string)

Open in new window


User generated image

SQL

Avatar of undefined
Last Comment
slightwv (䄆 Netminder)
ASKER CERTIFIED SOLUTION
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
SQL
SQL

SQL (Structured Query Language) is designed to be used in conjunction with relational database products as of a means of working with sets of data. SQL consists of data definition, data manipulation, and procedural elements. Its scope includes data insert, query, update and delete, schema creation and modification, and data access control.

61K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo