Question & Additional Information
 
Difference between sql statements and metasql statements?
Add to My IQ
 

 | 
Inappropriate
Answer Title
Answer

The SQl statements are used to fetch/retrieve, update, insert, delete data from the database. In PeopleSoft we use the sql stmts using sqlexec or createsql.Differnet sql statements are:Select, Insert, Update, Delete.
Metasql statement->
Differnet RDBMS have differne date and time formats. though the component processor takes care of the automatic convesion but at the time of using the sqlexec the automatic conversion does not take place. So in order to understand this the meta sql concept has come. Whcih we can use in diff sql stmts. for example %datetimein, %date, %time, %currentdatetime,  %datetimeout etc.
%dateIn: This is used in the where caluse of "Select and update"
%dateout: This is used while selecting the data.

Question Tag Title
Tags
Question Asked At Title
Asked At
None
Question Job Title
Job Titles


Check out our newest job listings!

Post a Job! $49 for 60 days



Your Name:
Add your comment text
 
Related Questions
Related Questions
It depends what the logic is. If you need to do complex manipulation of data already in the database, it is probably better than trying to run sql queries and fetch the data into the middle tie and perform the manipulation in the middle tie, then send the large amount of data back to the database using sql insert or update. On the other hand, you can do to something simple using sql, but you have to write quite a lot of code in stored procedure, why do that.

For stored procedure vs. dynamic sql queries, assuming you are not talking about case where you can call stored procedure within a sql query or you can use dynamic sql inside a stored procedure, dynamic query has a downside (at least in Oracle db), that it has to be compiled if the exact sql string is not used recently (seconds I think) by any session, which could takes some time, and use some system resource. On the other hand, logic in stored procedure is not necessary automatically better.

I think you have to compare approaches based on how easy it is to write the code to do what you want, how easy it is for others to understand and maintain the code, and what is the performance cost in a target database, etc.
Create Date
:
Monday, May 05, 2008
Asked At
:
None
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Flag this interview question as inappropriate Inappropriate
See Answer
Window a windows NT user account with administrator privileges,SQL Server cannot schedule task  and alerts, or perform replication.
Create Date
:
Tuesday, April 01, 2008
Tags
:
Asked At
:
None
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Constraints are proactive, meaning they react before modifications are made to the database. This is more efficient because no logging takes place, whereas triggers are reactive. They are invoked after changes are made to the database. Triggers can cascade changes where as constraints cannot. You can write Transact-SQL statements for other actions to take places.
Create Date
:
Wednesday, April 02, 2008
Tags
:
Asked At
:
None
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Constraints are proactive, meaning they react before modifications are made to the database. This is more efficient because no logging takes place, whereas triggers are reactive. They are invoked after changes are made to the database. Triggers can cascade changes where as constraints cannot. You can write Transact-SQL statements for other actions to take places.
Create Date
:
Wednesday, April 02, 2008
Tags
:
Asked At
:
None
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Constraints are proactive, meaning they react before modifications are made to the database. This is more efficient because no logging takes place, whereas triggers are reactive. They are invoked after changes are made to the database. Triggers can cascade changes where as constraints cannot. You can write Transact-SQL statements for other actions to take places.
Create Date
:
Wednesday, April 02, 2008
Tags
:
Asked At
:
None
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Constraints are proactive, meaning they react before modifications are made to the database. This is more efficient because no logging takes place, whereas triggers are reactive. They are invoked after changes are made to the database. Triggers can cascade changes where as constraints cannot. You can write Transact-SQL statements for other actions to take places.
Create Date
:
Wednesday, April 02, 2008
Tags
:
Asked At
:
None
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :