Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 803341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:44:41+00:00 2026-05-14T23:44:41+00:00

I am actually stuck in 3-tier structure. I surfed the internet and found two

  • 0

I am actually stuck in 3-tier structure. I surfed the internet and found two terminologies “Database Abstraction Layer” & “Data Access Layer”.

What are the differences between the two?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T23:44:42+00:00Added an answer on May 14, 2026 at 11:44 pm

    My understanding is that a data access layer does not actually abstract the database, but rather makes database operations and query building easier.

    For example, data access layers usually have APIs very similar to SQL syntax that still require knowledge of the database’s structure in order to write:

    $Users->select('name,email,datejoined')->where('rank > 0')->limit(10);
    

    Data abstraction layers are usually full blown ORM’s (Object-Relational Mappers) that theoretically prevent the need to understand any underlying database structure or have any knowledge of SQL. The syntax might be something like this:

    Factory::find('Users', 10)->filter('rank > 0');
    

    And all the objects might be fully populated with all the fields, possibly joined with any parent or child objects if you set it that way.

    However, this abstraction comes with a price. I personally find ORM’s like doctrine or propel to be unnecessary and inefficient. In most cases a simple data access layer will do fine, with manual SQL for anything that requires special attention, instead of having to destroy your application’s performance for some syntactic sugar. This area is a pretty heated debate so I won’t go into it anymore.

    If you meant database abstraction layer, then it would be something along the lines of PDO, so that your code can be used for a larger number of database vendors. PDO works with MySQL, PostgreSQL, and mysqli among others, I believe.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am actually stuck in merging the result of this two queries: first query:
NOTE: This is actually a database of a forum. I am stuck in an
These are my initial days of working on BackBone.js. I am actually stuck with
Actually I have two questions. (1) Is there any reduction in processing power or
I am again stuck in php regex part of my app :( Actually I
I am actually stuck in my current project. I've got a XML of the
Actually I am stuck in my work. I want to import a txt file
I have been stuck with this issue now all morning. I actually saw this
I've been stuck on this question for a while. I have a data file
I am stuck here. actually I am trying to fill a PDF form using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.