Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variables

Status
Not open for further replies.
Jun 12, 2009
123
0
0
GB
Hi All,

I am new to oracle, please can someone tell me what the variables below are doing?

select t.date,
a.acc_id,
t.user_id,
a.curr,
t.amnt
from ods.user_acc t
where t.costcentre = '5432'
and t.acc_id = @variable('A) Enter Account ID')
and t.date >= @variable('B) Enter >= Start Date')
and t.date < @variable('C) Enter < End Date')

Many Thanks
 
They are setting the values for your filter. This query will bring back the data that falls between a start and end date for a specified account.
 
Thanks, but how do those filters get populated? Do i change them on the query or they feed into something?

cheers
 

This query does not look like Oracle syntax, better try the T_SQL Forum.
[thumbsdown]
.



----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top