Rewrite SQL on a specific content type node on Drupal 7 I'm trying to rewrite SQL on a specific node type on Drupal 7. I found this, But it only works on Drupal 6-. What's about Drupal 7? Thank you.

https://api.drupal.org/api/drupal/includes%21database.inc/function/db_rewrite_sql/6
While the question is vague as to your purpose, you may be interested in 


hook_query_alter
hook_query_TAG_alter


to alter queries in Drupal 7.