Skip to main content
Microsoft
Visual Basic
Visual Basic
  • Home
  • DevBlogs
    • App Center
    • Azure DevOps
    • Notification Hubs
    • Visual Studio
    • Visual Studio Code
    • Visual Studio for Mac
    • Azure Artifacts
    • Azure Boards
    • Azure Pipelines
    • Azure Repos
    • Azure Test Plans
    • DevOps
    • C++
    • Java
    • Java Blog in Chinese
    • JavaScript
    • PowerShell
    • Python
    • Q#
    • Scripting
    • TypeScript
    • Visual Basic
    • Visual C#
    • Visual F#
    • .NET
    • ASP.NET
    • NuGet
    • Xamarin
    • Apps for Windows
    • Azure Government
    • Azure SDKs
    • Bing Dev Center
    • Command Line
    • Developer Support
    • DirectX Developer Blog
    • IoT Developer
    • Math In Office
    • Microsoft Edge Dev
    • Microsoft Azure
    • Office 365 Development
    • Old New Thing
    • PAX Graph
    • PAX Media
    • PAX Windows
    • Perf and Diagnostics
    • PIX on Windows
    • Startup Developers
    • Surface Duo
    • Sustainable Software
    • Windows Search Platform
    • Azure Cosmos DB
    • Azure Data Studio
    • Azure SQL
    • Azure Synapse Analytics
    • OData
    • Revolutions R
    • SQL Server Data Tools

    Visual Basic Blog

    A group blog from members of the VB team

    Converting SQL to LINQ Archives | Visual Basic Blog

    Converting SQL to LINQ, Part 10: Like (Bill Horst)
    Converting SQL to LINQ, Part 10: Like (Bill Horst)
    AvatarVBTeamMay 7, 2008May 7, 200805/7/08
    This post assumes you’ve read my previous Converting SQL to LINQ posts. I haven’t had much in the way of specific requests for more LINQ posts, so I’d still welcome any suggestions that people want to offer.  I did get one request about how to mimic the LIKE keyword functionality in VB LINQ. In SQL, the LIKE ...

    0
    Converting SQL to LINQ, Part 9: Full Outer Join (Bill Horst)
    Converting SQL to LINQ, Part 9: Full Outer Join (Bill Horst)
    AvatarVBTeamFebruary 12, 2008Feb 12, 200802/12/08
    This post assumes you’ve read the previous posts in this series.  It makes the same assumptions as Part 8, and I will pick up where I left off, covering Full Outer Join.  Once again, I recognize this isn’t an ideal situation, so if you’d like to see better support of Full Outer Join in a future VB release, you can ...

    0
    Converting SQL to LINQ, Part 8: Left/Right Outer Join (Bill Horst)
    Converting SQL to LINQ, Part 8: Left/Right Outer Join (Bill Horst)
    AvatarVBTeamJanuary 31, 2008Jan 31, 200801/31/08
    This post assumes you’ve read the previous posts in this series.          After my post on joins, I’ve had some questions about outer joins.  As you can see in part 6, VB9 doesn’t have smooth support for Left or Right join.  I showed how to get similar functionality with ...

    0
    Converting SQL to LINQ, Part 7: UNION, TOP, Subqueries (Bill Horst)
    Converting SQL to LINQ, Part 7: UNION, TOP, Subqueries (Bill Horst)
    AvatarVBTeamJanuary 8, 2008Jan 8, 200801/8/08
    This post assumes you’ve read the previous posts in this series:           Converting SQL to LINQ, Part 1: The Basics           Converting SQL to LINQ, Part 2: FROM and SELECT           Converting SQL to LINQ, Part 3: DISTINCT, WHERE, ORDER BY and Operators           Converting SQL to LINQ, Part 4: ...

    0
    Converting SQL to LINQ, Part 6: Joins (Bill Horst)
    Converting SQL to LINQ, Part 6: Joins (Bill Horst)
    AvatarVBTeamDecember 31, 2007Dec 31, 200712/31/07
    This post assumes you’ve read the previous posts in this series:           Converting SQL to LINQ, Part 1: The Basics           Converting SQL to LINQ, Part 2: FROM and SELECT           Converting SQL to LINQ, Part 3: DISTINCT, WHERE, ORDER BY and Operators           Converting SQL to LINQ, Part 4: ...

    0
    Converting SQL to LINQ, Part 5: GROUP BY and HAVING (Bill Horst)
    Converting SQL to LINQ, Part 5: GROUP BY and HAVING (Bill Horst)
    AvatarVBTeamDecember 18, 2007Dec 18, 200712/18/07
    This post assumes you’ve read the previous posts in this series:           Converting SQL to LINQ, Part 1: The Basics           Converting SQL to LINQ, Part 2: FROM and SELECT           Converting SQL to LINQ, Part 3: DISTINCT, WHERE, ORDER BY and Operators           Converting SQL to LINQ, Part 4: ...

    0
    Converting SQL to LINQ, Part 4: Functions (Bill Horst)
    Converting SQL to LINQ, Part 4: Functions (Bill Horst)
    AvatarVBTeamDecember 12, 2007Dec 12, 200712/12/07
    This post assumes you’ve read the previous posts in this series:           Converting SQL to LINQ, Part 1: The Basics           Converting SQL to LINQ, Part 2: FROM and SELECT           Converting SQL to LINQ, Part 3: DISTINCT, WHERE, ORDER BY and Operators This post will discuss scalar and aggregate functions...

    0
    Converting SQL to LINQ, Part 3: DISTINCT, WHERE, ORDER BY and Operators (Bill Horst)
    Converting SQL to LINQ, Part 3: DISTINCT, WHERE, ORDER BY and Operators (Bill Horst)
    AvatarVBTeamDecember 4, 2007Dec 4, 200712/4/07
    This post assumes you’ve read the previous posts in this series: Converting SQL to LINQ, Part 1: The Basics Converting SQL to LINQ, Part 2: FROM and SELECT Continuing with specific query clauses, I will cover topics related to DISTINCT, WHERE and ORDER BY. DISTINCT SQL SELECT statements can include the DISTINCT specifier, which causes ...

    0
    Converting SQL to LINQ, Part 2: FROM and SELECT (Bill Horst)
    Converting SQL to LINQ, Part 2: FROM and SELECT (Bill Horst)
    AvatarVBTeamNovember 28, 2007Nov 28, 200711/28/07
    This post assumes you’ve read Converting SQL to LINQ, Part 1: The Basics. I’ve made the following name changes since the last post, which I hope will make the code examples clearer: ·         Customers -> CustomerTable ·         Orders -> OrderTable ·         cust -> Contact ·         ...

    0
    Converting SQL to LINQ, Part 1: The Basics (Bill Horst)
    Converting SQL to LINQ, Part 1: The Basics (Bill Horst)
    AvatarVBTeamNovember 19, 2007Nov 19, 200711/19/07
    As you may already know, VB LINQ statements enable SQL-like syntax for queries in the VB language.  LINQ syntax doesn't match SQL syntax exactly, so if you are already working with SQL or familiar with SQL queries, you may find yourself wanting to convert an existing SQL query to LINQ.This will be the first in a series of posts about ...

    0
    Topics
    .NETAdam BradenAlan BermanAlex TurnerAlexandre MouraAmanda SilverAnalyzersAnders HejlsbergAndroidAngularannouncementAnthony D. Greenasyncasynchronous programmingAvner AharoniawaitBeth MassiBill HorstBinary LiteralsByRef ReturnC#C# 6.0Cameron McCollClickOnceConverting SQL to LINQCorrina BarberCross PlatformDaniel WalzenbachData_DesignDebuggerdebuggingDeploymentDid you know?DLRDoug RothausDustin CampbellEdit and ContinueEncodingEncryptionEntity Framework CoreEric KnoxExtension_MethodsF#F# 4.0GitHubGlobalizationHidden Gems in VB10I'm A VB!IDEInterviewiOSIQueryableJared ParsonsJay SchmelzerJoe BinderJohn RivardJohn StalloJonathan AnejaKaren LiuKasey UhlenhuthKathleen McGrathKevin HalversonKinnectKit GeorgeKlaus LoeffelmannLanguage FeaturesLINQ CookbookLINQ/VB9Lisa FeigenbaumLive Unit TestingLuca BologneseLucian WischikMary LeeMatt GertzMessage LoopmetadataMicroframeworkMilind LeleMS Open TechMSINET CoreNET StandardNetduinoObject IDOffice DevelopmentOpen SourceOrcasOSSPagesparallel programmingPatrick DenglerPaul VickPaul YuknewiczPDC2008PerformancePInvokePower PacksPromisesRoslynSamplesSarika CallaScott TuckerScott Wisniewskiscreen saversShyam NamboodiripadSilverlightSilverlight 4 FirestarterSlavi MarinovSmart DevicesSMBSophia SalimSpot the Bug!Spotty BowlesSQLSteve SteinSyntax VisualizerTasktask cancellationTDDTechEd2008TechEd2009threadsTimothy NgTodd ApleyTroubleshootingTuplesTyler WhitneyUnit TestinguniversalUWPVBVB XML CookbookVB_ExpressVB2005VB2008VB2010VB2015VB2017VB6_Migration/InteropVisual BasicVisual Basic HistoryVisual Basic KinectVisual StudioVladimirWCFWebWebMatrixWindows PhoneWindows StoreWorkflowWPFXBox 360XMLXNAYoung Joo
    Top Bloggers
    .NET Team

    .NET Team

    Archive
  • March 2020
  • November 2018
  • June 2018
  • October 2017
  • September 2017
  • August 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • May 2015
  • April 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • June 2014
  • May 2014
  • April 2014
  • January 2014
  • December 2013
  • July 2013
  • September 2012
  • June 2012
  • May 2012
  • April 2012
  • February 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • November 2006
  • October 2006
  • September 2006
  • July 2006
  • June 2006
  • April 2006
  • March 2006
  • January 2006
  • December 2005
  • November 2005
  • October 2005
  • September 2005
  • July 2005
  • June 2005
  • May 2005
  • April 2005
  • March 2005
  • January 2005
  • November 2004
  • October 2004
  • September 2004
  • August 2004
  • July 2004
  • June 2004
  • May 2004
  • Stay informed

    Login
    Code Block
    What's new
    • Surface Duo
    • Surface Laptop Go
    • Surface Pro X
    • Surface Go 2
    • Surface Book 3
    • Microsoft 365
    • Windows 10 apps
    • HoloLens 2
    Microsoft Store
    • Account profile
    • Download Center
    • Microsoft Store support
    • Returns
    • Order tracking
    • Virtual workshops and training
    • Microsoft Store Promise
    • Financing
    Education
    • Microsoft in education
    • Office for students
    • Office 365 for schools
    • Deals for students & parents
    • Microsoft Azure in education
    Enterprise
    • Azure
    • AppSource
    • Automotive
    • Government
    • Healthcare
    • Manufacturing
    • Financial services
    • Retail
    Developer
    • Microsoft Visual Studio
    • Windows Dev Center
    • Developer Center
    • Microsoft developer program
    • Channel 9
    • Microsoft 365 Dev Center
    • Microsoft 365 Developer Program
    • Microsoft Garage
    Company
    • Careers
    • About Microsoft
    • Company news
    • Privacy at Microsoft
    • Investors
    • Diversity and inclusion
    • Accessibility
    • Security
    English (United States)
    • Sitemap
    • Contact Microsoft
    • Privacy
    • Manage cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2021