replacement for DFirst() function in SQL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AlAsh

    replacement for DFirst() function in SQL

    i am translating and access application to SQL application and i need to know what you use instead of Dfirst function


    thanks
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32668

    #2
    I don't believe there is a direct equivalent. You would probably use a subquery instead.

    Comment

    • ck9663
      Recognized Expert Specialist
      • Jun 2007
      • 2878

      #3
      Not that I know of, Neo. Subquery or CTE is probably the efficient solution for this.

      ~~ CK

      Comment

      • NeoPa
        Recognized Expert Moderator MVP
        • Oct 2006
        • 32668

        #4
        Quite right CK. I should have mentioned the CTE, or Common Table Expression, facility introduced in SQL 2005. It can make for much tidier, more readable and more efficient code.

        Comment

        Working...