# Guide: Using Macros to Select Different Table Names in Development and Production

**URL:** <https://discourse.getdbt.com/t/guide-using-macros-to-select-different-table-names-in-development-and-production/57>\
**Category:** Archive\
**Created:** [June 15, 2018, 5:19pm UTC](https://discourse.getdbt.com/t/guide-using-macros-to-select-different-table-names-in-development-and-production/57 "2018-06-15T17:19:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhmazur](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/mhmazur/32/29_2.png) [@mhmazur](https://discourse.getdbt.com/u/mhmazur)\
**Post date:** [June 15, 2018, 5:19pm UTC](https://discourse.getdbt.com/t/guide-using-macros-to-select-different-table-names-in-development-and-production/57/1 "2018-06-15T17:19:17Z")

</div>

I ran into an issue when I was originally setting up dbt due to my development environment’s table names differing from the production table names. Drew showed me how to solve the issue with the help of macros. I documented in this post how it works and am sharing it here for posterity:

> **[Using Macros in dbt to Select Different Table Names in Development and...](https://mattmazur.com/2018/06/11/using-macros-in-dbt-to-select-different-table-names-in-development-and-production/)**
>
> I’ve been experimenting a lot with dbt, a command line tool for transforming data within a data warehouse. I’ll have more to write about dbt later, but want to share a few lessons learn…

Thanks as always for the help Drew!
