Como realizar una operación INTERSECT con MySQL

Una consulta de tipo INTERSECT nos devuelve la intersección de dos consultas, es decir, los valores comunes a las dos consultas, y nos es útil para comprobar que valores cumplen con dos condiciones distintas. en MySQL esta función no existe, por lo que hemos tenido que buscar una solución alternativa.

La consulta original sería de la forma

  1. SELECT member_id, name FROM a
  2. INTERSECT
  3. SELECT member_id, name FROM b

Para solucionar esto lo que hacemos es realizar un INNER JOIN de las dos tablas, quedando una consulta de tipo

  1. SELECT a.member_id, a.name
  2. USING (member_id, name)

con lo que resolvemos el problema.

Esta información la hemos obtenido a partir del blog Carsten's Random Ramblings.

Etiquetas: 

Comentarios

This is basic, but informative last day some one ask me about that thing so i will send that screen shot at custom dissertations writing so that they get help which he needed thanks.

MySQL is a little, conservative database server perfect for little - and not all that little - applications. Notwithstanding supporting standard SQL (ANSI), it gathers on various stages and has multithreading capacities on Unix servers, which make for extraordinary execution. Jiu jitsu gi supplier

am mereka, mencuci makeup dan menikmati matahari, lalink 5 distributor plat high tensile sm490ya distributor plat kapal distributor plat stainless ss304 distributor plat stainless ss310 distributor plat stainless ss316 distributor plat sumihard distributor round bar besi aisi 440s45c distributor round bar scm440 distributor steel rail distributor steel sheet pile jual astm a283 c undangan pernikahan kalender Jual besi hollow Jual besi hollow Toko besi siku Toko pipa besi baja sch 40 sch 80 undangan pernikahan bentuk tas Supplier Besi H beam Agen Wiremesh Besi baja Jual plat kapal besi baja Pabrik besi beton master steel ms Supplier besi hollow Supplier besi hollow Toko pipa besi baja sch 40 sch 80 Toko besi hollow undangan pernikahan ada fotonya Supplier Besi Beton Toko Wiremesh Besi baja Supplier plat kapal besi baja Pabrik besi beton ksty Toko besi hollow Toko besi hollow Toko Plat besi Toko besi beton Sni Ulir Polos undangan pernikahan aneh www.sentrabesibaja.com Jual Wiremesh Besi baja Toko plat kapal besi baja Pabrik besi beton krakatau steel Agen besi hollow Agen besi hollow Toko besi h beam Toko besi wf baja undangan pernikahan amplop Pabrik Welded Beam T beam King Queen Cross Castellated Beam Harga Wiremesh Besi baja Agen plat kapal besi baja Pabrik besi beton jcac Pabrik besi hollow Pabrik besi hollow Toko besi wf Toko besi unp undangan pernikahan batik Pabrik Bondek Cor Pabrik Wiremesh Besi baja Pabrik plat kapal besi baja Pabrik besi beton interworld steel is Distributor pipa besi Distributor pipa besi Toko wiremesh Toko besi siku undangan pernikahan murah Pabrik Atap Spandek Sni Distributor Besi Siku Baja

Stendra Purchase Next Day Delivery Discount Progesterone Hormone Replacement Amex do you need a prescription for propecia Viagra Pfizer 100mg Viagra Y Cialis Viagra Brand Vs Generic Cialis Ceguera generic viagra Thyroxine Finasteride Vendita Propecia Online Cialis Forma Farmaceutica Kamagra Online Flashback Buying Provera cialis from canada Cialis Tabletten Teilen Discount Erectile Dysfunction Drugs

<p>&nbsp;</p><p>´dcfsdvjkdsjkdsjdnvsnvjkfsvsf&nbsp;</p>

Acheter Cialis Quebec viagra online prescription isotretinoin acutane pills no physician approval overseas Cialis Dolores Musculares Viagra Sans En Avoir Besoin

Progesterone Order Now Low Price With Free Shipping canadian pharmacy cialis Will Amoxicillin Heal Tooth Absess Secure Ordering Progesterone Amex Accepted Tablets

Cialis 20 Mg Preiswert Cialis Tabs Sale Viagra Und Cialis Generika cialis without a doctor's prescription Cialis Corazon Prix Du Viagra Generique En Valence

Online Pharmacy Genuine Medications Disfunzione Erettile Cialis where to buy cialis online safely Nolvadex Over Counter Isotretinoin Isotret

Viagra Generica Barata cialis price Purchase Levitra Professional Sinus Infection Zithromax

Biomox Amoxicillin Liquid Cialis 40 Mg Pills Generic Kamagra Gold 100mg Review cialis for sale Viagra Kaufen Online Apotheke Levitra Zutaten Amoxicillin Manufacture

Viagra Gel Online Cialis Lilly Icos Tadalafil cialis without prescription Clonidine Overnight Where Can I Buy Isotretinoin Skin Health Low Price Mastercard

Life is what happens when you're busy making other plans. http://7d.tel/Qa4Wd4

Thanks for sharing! http://7d.tel/QdGWB6

Aluminum scrap recycling statistics http://7d.tel/fSHBXB Economic benefits of aluminum scrap recycling

Copper scrap product innovation http://7d.tel/XH1Kbw Copper scrap authenticity verification

Scrap copper processing http://7d.tel/NycQY0 Copper scrap advertising campaigns

Copper scrap sustainability reporting http://7d.tel/Px5Hf4 Copper scrap tracking

Scrap aluminium refurbishing http://7d.tel/9vxLZm Aluminium recycling risk management

Metal waste recuperation http://7d.tel/kdZ2da Collection of aluminum scrap
Scrap metal recycler, Sell aluminum cable, Scrap metal reclaiming and reprocessing

Scrap metal recycler http://7d.tel/zCqOZO Baling aluminum scrap
Metal salvage, Selling aluminum cable scrap, Environmental metal recycling

Metal scrap recovery and recycling http://7d.tel/VTx77r Aluminium waste collection
Scrap metal recovery industry, Melting aluminum cable, Scrap metal residue

Añadir nuevo comentario

Filtered HTML

  • Las direcciones de las páginas web y las de correo se convierten en enlaces automáticamente.
  • Etiquetas HTML permitidas: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Saltos automáticos de líneas y de párrafos.

Plain text

  • No se permiten etiquetas HTML.
  • Las direcciones de las páginas web y las de correo se convierten en enlaces automáticamente.
  • Saltos automáticos de líneas y de párrafos.
CAPTCHA
Esta pregunta se realiza para comprobar que se trata de un humano y prevenir los accesos automatizados para publicar spam.