?
Solved

Is there anything wrong with storing SELECT statements in a table.

Posted on 2011-10-25
4
Medium Priority
?
162 Views
Last Modified: 2012-05-12
Is there anything wrong with storing SELECT statements in a table.

Like the question asked on https://forums.oracle.com/forums/thread.jspa?messageID=4228161
0
Comment
Question by:Mr_Shaw
  • 2
  • 2
4 Comments
 
LVL 57

Assisted Solution

by:Raja Jegan R
Raja Jegan R earned 2000 total points
ID: 37023849
It depends upon the scenario..
If you want to create your SELECT statements dynamically based on several parameters, then you can store the base SELECT query in the table and then add WHERE clauses and ORDER BY clauses dynamically..
0
 

Author Comment

by:Mr_Shaw
ID: 37023899
The C# devs who I work with joked about the table.....but I can't see anything really bad about it.
0
 
LVL 57

Accepted Solution

by:
Raja Jegan R earned 2000 total points
ID: 37023979
Yes, if there is no necessity to dynamically form queries, then there is no need for that table.
But if you need to dynamically form queries which should be much customizable, then you can have a table like that..
0
 

Author Closing Comment

by:Mr_Shaw
ID: 37023993
thanks
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
MSSQL DB-maintenance also needs implementation of multiple activities. However, unprecedented errors can hamper the database management. In that case, deploying Stellar SQL Database Toolkit ensures fast and accurate database and backup repair as wel…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question